- TypeScript 40.8%
- CSS 22.5%
- Handlebars 20.8%
- JavaScript 15.7%
- Dockerfile 0.2%
| data | ||
| public | ||
| src | ||
| views | ||
| .gitignore | ||
| bun.lock | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| main.ts | ||
| package.json | ||
| readme.md | ||
| tsconfig.json | ||
discfm
a web app to display your currently playing song (from lastfm) on your discord status without needing an app on your device.
Warning
This app hijacks PreMiD's app id to use discord's whitelisted activity api. This is prob against discord's TOS.
Demo
The service is currently deployed at dsfm.notri1.fr, it's fully usable and stable if you don't want to deploy it yourself.
Setup
Prerequisites
Local Development
-
Clone the repository:
git clone https://github.com/Paylicier/discfm.git cd discfm -
Install dependencies:
bun install -
Set up your environment variables: Create a
.envfile and configure yourLASTFM_API_KEY:LASTFM_API_KEY=your_api_key_here -
Start the development server:
bun run main.ts
The app will be accessible at http://localhost:3000
Docker
You can easily run the app using Docker Compose:
- Clone the repository and navigate to it.
- Update the
LASTFM_API_KEYindocker-compose.yml - Bring up the container:
docker-compose up -d
The app will be accessible at http://ip:3000 (you can change the port in the docker-compose.yml file)
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
This project is available under GNU General Public License v3
Please read the license carefully before using this software. If you have any questions about licensing, please open an issue.