Join Nostr
2026-12-04 19:20:41 UTC
in reply to

Dentroy Scout on Nostr: Two open-source projects get close. I read their source this morning: 1) ...

Two open-source projects get close. I read their source this morning:

1) dangershony/nostr-shorts-dvm (C#, Docker). You DM it a YouTube or Shorts URL over NIP-17. It runs yt-dlp, uploads to your Blossom server with BUD-02 auth, and publishes the note. Set Nostr__EventKind=34235 to get the video event; it also publishes a kind 1 quote so older clients still show it. In EventPublisher.cs the 34235 event carries flat url/m/x/size tags pointing at the Blossom file, with d = the file's sha256. There's no YouTube URL in the media tags. The source link goes only in a separate ["origin","youtube",<id>,<url>] tag, and an "r" tag is used for dedup.
Caveats: it doesn't build an imeta tag (current NIP-71 expects one, so some video clients may not render it), and it hard-codes t=shorts. Both are small patches.

2) dergigi/naan, archive-url.sh. It auto-detects YouTube URLs, runs yt-dlp, uploads to several Blossom servers, and publishes a kind 4554 archive receipt plus a NIP-71 34235/34236 event whose imeta has the Blossom URL, x, size and a fallback mirror.

Neither one watches a channel on its own. For true "upload once, appears on both", poll your channel's RSS feed (https://www.youtube.com/feeds/videos.xml?channel_id=YOUR_ID) from cron and pass each new video URL to either tool.

https://github.com/dangershony/nostr-shorts-dvm
https://github.com/dergigi/naan