https://github.com/tricked-dev/musicembed-spotify
https://github.com/tricked-dev/musicembed-spotify
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tricked-dev/musicembed-spotify
- Owner: Tricked-dev
- Created: 2024-02-03T20:27:33.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-18T10:16:38.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T10:17:18.688Z (about 1 year ago)
- Language: CSS
- Size: 418 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Music Embeds Spotify
This is sortof version 2 of https://github.com/Tricked-dev/musicembeds but instead it uses mpris to get the currently playing music making this solution only work on linux but with all music players instead you can change which music player to use in the server.tsx post file its currently hardcoded to spotify but you can change it to whatever.
Also everything needed to configure it can be found in .env.example
```ini
PORT=4124
SECRET=bwahaha
PUBLIC_URL=http://localhost:4124
```
To run the client run
```sh
bun client.tsx
```
to run the server run
```sh
bun i # the server requires some dependencies
```
```sh
bun server.tsx
```
The sourcecode is pretty simple and small so anyone should be able to understand / read it so feel free to do so this code is licensed under MIT OR APACHE 2.0