{"id":13499254,"url":"https://github.com/ElementsProject/lightning-jukebox","last_synced_at":"2025-03-29T04:30:58.629Z","repository":{"id":65997551,"uuid":"125465147","full_name":"ElementsProject/lightning-jukebox","owner":"ElementsProject","description":"A Lightning powered Jukebox :zap: Pay with Bitcoin to choose your music.","archived":false,"fork":false,"pushed_at":"2021-09-20T12:55:53.000Z","size":60,"stargazers_count":36,"open_issues_count":1,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-26T18:16:14.197Z","etag":null,"topics":["bitcoin","jukebox","lightning","lightning-charge","micropayments","nanopayments"],"latest_commit_sha":null,"homepage":"https://blockstream.com/2018/03/28/lightning-jukebox-offers-a-fun-end-to-our-week-of-lapps.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElementsProject.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-03-16T04:51:14.000Z","updated_at":"2024-09-02T05:20:59.000Z","dependencies_parsed_at":"2024-01-14T03:50:45.241Z","dependency_job_id":"251d478c-a4a2-4a9d-a03b-b182e4425f2a","html_url":"https://github.com/ElementsProject/lightning-jukebox","commit_stats":null,"previous_names":["shesek/lightning-jukebox"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElementsProject%2Flightning-jukebox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElementsProject%2Flightning-jukebox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElementsProject%2Flightning-jukebox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElementsProject%2Flightning-jukebox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElementsProject","download_url":"https://codeload.github.com/ElementsProject/lightning-jukebox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140565,"owners_count":20729797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","jukebox","lightning","lightning-charge","micropayments","nanopayments"],"created_at":"2024-07-31T22:00:31.500Z","updated_at":"2025-03-29T04:30:58.376Z","avatar_url":"https://github.com/ElementsProject.png","language":"JavaScript","readme":"# Lightning Jukebox\n\n[![npm release](https://img.shields.io/npm/v/lightning-jukebox.svg)](https://www.npmjs.com/package/lightning-jukebox)\n[![MIT license](https://img.shields.io/github/license/shesek/lightning-jukebox.svg)](https://github.com/shesek/lightning-jukebox/blob/master/LICENSE)\n[![Pull Requests Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n[![IRC](https://img.shields.io/badge/chat-on%20freenode-brightgreen.svg)](https://webchat.freenode.net/?channels=lightning-charge)\n\nA Lightning powered Jukebox. Pay with Bitcoin to choose your music from YouTube.\n\n[See it in action on YouTube](https://www.youtube.com/watch?v=AgGYpFJsh24)\n\nPowered by :zap: [Lightning Charge](https://github.com/ElementsProject/lightning-charge)\n\n## HOWTO\n\n1. [Setup Lightning Charge](https://github.com/ElementsProject/lightning-charge/blob/master/README.md#getting-started).\n\n2. Install Lightning Jukebox and start `jukeboxd`:\n\n   ```bash\n   $ npm install -g lightning-jukebox\n\n   $ jukeboxd --charge-token mySecretToken --price '0.0001 BTC'\n   Jukebox server running on http://localhost:6100\n   ```\n\n   You may pick a different theme from [bootswatch](https://bootswatch.com)\n   by specifying `--theme [name]` (the default is `darkly`).\n\n3. Navigate to `http://localhost:6100/` on the computer playing the music\n   and click `Spawn YouTube player`.\n   This will open a new YouTube window in a new tab.\n   *Make sure to keep both* the page on `localhost:6100` and the youtube window open.\n   You can use the YouTube window to start playing some initial music.\n\n   \u003cimg src=\"https://i.imgur.com/l9PNsdS.png\" width=\"47%\"\u003e\u003c/img\u003e\n\n4. Make the payment page (`http://localhost:6100/pay`) available over the internet or set it up on a local device, like a tablet, near \n   the jukebox. The payment page allows users to pay for music selection.\n\n   \u003cimg src=\"https://i.imgur.com/H9kFDQW.png\" width=\"47%\"\u003e\u003c/img\u003e\n   \u003cimg src=\"https://i.imgur.com/pTZkZ0H.png\" width=\"47%\"\u003e\u003c/img\u003e\n\n   Once a payment is made, a push notification will be sent to the player window (via websockets),\n   which will open the requested song in the spawned youtube window.\n\n   Payments can also be made directly to the jukebox API:\n\n   ```bash\n   # with a search string\n   $ BOLT11=`curl http://localhost:6100/invoice -d video='are you shpongled full album'`\n   $ lightning-cli decodepay $BOLT11\n   $ lightning-cli pay $BOLT11\n\n   # with a specific video id\n   $ lightning-cli pay `curl http://localhost:6100/invoice \\\n                        -d video=https://www.youtube.com/watch?v=IDiZG-eAk30`\n   ```\n\n## CLI options\n\n```bash\n$ jukeboxd --help\n\n  A Lightning powered Jukebox\n\n  Usage\n    $ jukeboxd [options]\n\n  Options\n    -c, --charge-url \u003curl\u003e      lightning charge server url [default: http://localhost:9112]\n    -t, --charge-token \u003ctoken\u003e  lightning charge access token [required]\n\n    -P, --price \u003cprice\u003e         price to play music [default: 0.0001 BTC]\n    -m, --theme \u003cname\u003e          pick theme from bootswatch.com [default: darkly]\n    -l, --title \u003cname\u003e          website title [default: Lightning Jukebox]\n\n    -p, --port \u003cport\u003e           http server port [default: 9115]\n    -i, --host \u003chost\u003e           http server listen address [default: 127.0.0.1]\n    -h, --help                  output usage information\n    -v, --version               output version number\n\n  Example\n    $ jukeboxd -t chargeSecretToken -P '0.0005 EUR'\n```\n\n## Why a separate YouTube tab instead of embedding the video player?\n\nSo that \"auto play next\" works.\n\n## License\n\nMIT\n","funding_links":[],"categories":["Applications"],"sub_categories":["Misc"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElementsProject%2Flightning-jukebox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FElementsProject%2Flightning-jukebox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElementsProject%2Flightning-jukebox/lists"}