๐Ÿ“ฆ jordojordo / daphine

API for streaming music/videos

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ GNU General Public License v3.0
expresskubernetesnodejsstreaming
๐Ÿ“ฅ Clone https://github.com/jordojordo/daphine.git
HTTPS git clone https://github.com/jordojordo/daphine.git
SSH git clone git@github.com:jordojordo/daphine.git
CLI gh repo clone jordojordo/daphine
renovate[bot] renovate[bot] chore(deps): update dependency @types/node to v24.4.0 (#134) 205af34 4 months ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ public
๐Ÿ“ src
๐Ÿ“„ .containerignore
๐Ÿ“„ .gitattributes
๐Ÿ“„ .gitignore
๐Ÿ“„ Containerfile
๐Ÿ“„ eslint.config.mjs
๐Ÿ“„ LICENSE
๐Ÿ“„ package.json
๐Ÿ“„ pnpm-lock.yaml
๐Ÿ“„ README.md
๐Ÿ“„ renovate.json
๐Ÿ“„ tsconfig.json
๐Ÿ“„ README.md

Build Tests

Daphine

An api for streaming music and videos. See it in action on yokanga.xyz.

Usage

An example Vue app using this API can be found here.

Depending on your requirements you can run Daphine as a deployment in Kubernetes, a Podman or Docker container, or by simply running as a Nodejs service on your server. However, the setup for each requires a few different steps.

Kubernetes deployment using Helm

Deploy Daphine easily in your Kubernetes cluster using Helm. First, add the Helm repository:

helm repo add jordojordo https://jordojordo.github.io/helm-charts

Then, install Daphine using the Helm chart:

helm install daphine jordojordo/daphine

For more details about the installation process, including prerequisites and how to configure the Helm chart, see the Daphine Helm Chart README.

Docker container

You can use the latest release as your image to run, it only requires a few settings to run properly. A Docker Volume

docker run -d \
  --name daphine \
  -v <VOLUME_NAME>:/assets \
  ghcr.io/jordojordo/daphine:latest

Nodejs service

The data you wish to stream will need to be accessible to the application and the paths will need to match within ./api/music.js and ./api/stream.js. For ease of use you can place the data in a directory titled "assets" within the root of the app.

Add the url of your frontend to the CORS_OPT.origin

npm install
npm run build
npm start