Skip to content

Secreto31126/github-music

Repository files navigation

GitHub Music

Listen to your favorite music stored in a public or private GitHub Repository with this simple web app.

Home Page

How to use

Visit https://github-music.vercel.app, go through the most amazing landing page you will ever see, log in with your GitHub account, pick the repo where you have your audio files and you are good to go!

Supported files

  1. Audios:

  2. Images:

    • jpg
    • jpeg
    • png
    • gif
    • webp

How to include images

The app will look for images within the folder contents. Songs will pick the images at same level, while symlinks will search in their origins.

Symlinks

Symlinks have an interesting behavior. All valid symlinks will work as expected. However, due to GitHub's API interpretation of "valid symlink to file", performance will be heavily affected. Hence the support for invalid symlinks.

  • Valid symlinks are those that point to a file that exists in the repository and have a relative path to it.
  • Invalid symlinks are those that point to a file that does exist in the repository, but have an absolute path to it (aka, starts with "/"), where root is the root of the repository.

Although invalid symlinks won't work in a local environment, they will work in GitHub Music.

It's up to you to decide if you want compatibility or performance.

Small UX things that will change

  • To navigate a folder up, you need to press the "Seeing playlist: [name]" text. This will be replaced with a nicer UI in the future.

Shortcuts

  • Space: Play/pause
  • Ctrl + Space: Stop playing
  • Arrow Right: Foward 10 seconds
  • Ctrl + Arrow Right: Next track
  • Arrow Left: Backward 10 seconds
  • Ctrl + Arrow Left: Previous track
  • L: Toggle loop

Attribution

Most of the icons are from Twemoji, which is licensed under CC-BY 4.0.

The code is written in SvelteKit and Tailwind, both under MIT license.

About

Listen to your music files in any GitHub Repository

Topics

Resources

License

Stars

Watchers

Forks

Contributors