Static browser dashboard for discovering decentralized workers and submitting download jobs over Nostr.
Open index.html through a local static server. The page:
- signs a kind
5662Nostr event with a browser-local key stored inlocalStorage - sends the YouTube URL in tag
["i", "<url>"] - sends audio requests with tag
["param", "format=audio"] - optionally sends
["duration", "<seconds>"] - optionally sends
["blossom", "<server-url>"] - discovers workers from kind
30000announcements tagged["d", "worker-capabilities"] - listens for worker kind
6000responses - displays
WAITING_FOR_PAYMENTresponse content containinginvoice
The standalone Android worker currently responds with:
{
"status": "WAITING_FOR_PAYMENT",
"amount_msat": 9000,
"invoice": "lnbc..."
}Run locally:
python3 -m http.server 5174 --directory web-clientThen open http://127.0.0.1:5174/.