lastfm discord rpc without any app running on the user's device https://dsfm.notri1.fr
  • TypeScript 40.8%
  • CSS 22.5%
  • Handlebars 20.8%
  • JavaScript 15.7%
  • Dockerfile 0.2%
Find a file
2026-04-05 20:08:40 +02:00
data feat: implement dashboard view with Handlebars template and presence edit menu 2026-04-04 01:11:07 +02:00
public feat: enchance ui, change activity update 2026-04-05 19:14:03 +02:00
src chore: change logger 2026-04-05 19:45:07 +02:00
views feat: enchance ui, change activity update 2026-04-05 19:14:03 +02:00
.gitignore chore: init 2026-04-02 23:01:50 +02:00
bun.lock chore: change logger 2026-04-05 19:45:07 +02:00
docker-compose.yml feat: enchance ui, change activity update 2026-04-05 19:14:03 +02:00
Dockerfile chore: add dockerfile 2026-04-02 23:10:16 +02:00
LICENSE chore: add license 2026-04-05 20:08:40 +02:00
main.ts chore: change logger 2026-04-05 19:45:07 +02:00
package.json chore: change logger 2026-04-05 19:45:07 +02:00
readme.md chore: add readme 2026-04-05 20:02:35 +02:00
tsconfig.json chore: add dockerfile 2026-04-02 23:10:16 +02:00


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

  • Bun installed locally, OR
  • Docker and Docker Compose

Local Development

  1. Clone the repository:

    git clone https://github.com/Paylicier/discfm.git
    cd discfm
    
  2. Install dependencies:

    bun install
    
  3. Set up your environment variables: Create a .env file and configure your LASTFM_API_KEY:

    LASTFM_API_KEY=your_api_key_here
    
  4. 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:

  1. Clone the repository and navigate to it.
  2. Update the LASTFM_API_KEY in docker-compose.yml
  3. 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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. 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.


Built with ❤️ and 🚈 by Paul