New site update just dropped and a dedicated relay!
Https://pornstr.net
wss://relay.pornstr.net
Login to reply
Replies (14)
Awesome. Will we possibly have nsfw-specific blossom media server(s) too? Original legal content makers are lacking them, at least @Naked Nomad I believe is interested.
Is the website FOSS? Or planned to be FOSS? What about building it based on Nostube source code? AFAIK it already has some webtorrent-based p2p integration (used in PeerTube as well) already which is important for concurrent gooners that will be sharing too few blossom servers in too few locations right now. And the player just works (I believe it's one of the most painful things to debug on every single platform ever).

GitHub
GitHub - flox1an/nostube: Nostr based video platform
Nostr based video platform. Contribute to flox1an/nostube development by creating an account on GitHub.
Nsfw-specific DMs are a possible future feature too; I've talked about it previously (the last two paragraphs and the comment):
I find it ironic to read that using the censorship-resistant protocol 🌚
#devstr
At some point it was expected to see nsfw here: the protocol specs even mention nsfw/content-warning tags as examples. Yet due to repetitive irresponsible Blossom servers use, it seems like nobody's currently willing to maintain them, specifically for nsfw. Or due to related political age verification cringe, for example: this may affect hosting providers / domain registrars at some point, suddenly requiring KYC from blossom admins as a result, if not worse. DCMA takedown letters are a risk as well. Or it's due to whatever other moral reasons too, I dunno.
I guess some of us believe that we shouldn't focus on this content right now, that this stuff should go last. Soft erotic nsfw possibly acceptable to many here, though. To me personally, if whatever legal nsfw content is properly distinguishable with the nsfw tag—this still should be okay. Whoever who specifically produces original legal content and publishes their nostr events with the tag could run a blossom server for themselves and for likely minded people; nobody can technically disallow that here. Some small fee from producers will also make it reasonable to maintain the server.
> dudes with no tact sending DMs
DMs probably not worth reading here right now for this purpose. I've seen pronouns/gender spec proposals, and I think it's useful here: an nsfw-oriented client could have ignored all DMs from those who didn't set their pronouns or have an irrelevant one. As well as disallow sending any DMs until the pronoun is not yet set. As well as adding the proper nsfw/content-warning tag on every event (both public and the DMs even) and ignoring all non-nsfw events (which will be simultaneously an incentive to not publish events without the appropriate tag at all). WoT and whatever would help too but they are ironically almost empty of those who'd want to send such DMs (which is not necessary a bad thing).
If we stop fighting this stuff and transform it properly, those who don't want nsfw content will see it less often as a result. I think it's a win-win.
View quoted note →
Some form of moderation will be inevitable at least on the Blossom servers, because they are in practice getting attacked with DMCA content (and notices), CSAM and non-NSFW content (yet labeled with the nsfw tag); so sooner or later it may end up as a mixed, unmanageable mess that may be suddenly suspended by a hosting provider in particular. Some hosting providers disallow just referencing DMCA'ed/etc. content as well.
To simplify moderation, the Blossom servers could ensure that only those who used NIP-42 auth can upload files, so it will be easier to ban entire unrelated npubs or temporarily allow only based on some trust rank/WoT/etc.). There's `restrict_uploads` in nostrfy in particular (which is allowlist-only currently):
https://github.com/iqbqioza/nostrfy/blob/main/docs/CONFIGURATION.md#10-blossom--blossom-file-server-media-hosting
Yet with the NIP-42 the users should be aware that they're about to send their IP-npub association to the servers, so I think the frontend should recommend, right under the 18+ warning, using a separate pseudonymous npub (and I think in general it should always recommend it, to avoid confusing everyone with the mixed content).
> intended only for consenting adults aged 18 years or older
This is hilarious btw, I like it 🤙
> webtorrent-based p2p integration
I'm not sure about this one though; at least I don't see it currently connects to any webtorrent trackers.
Honestly I wouldn’t take blossom seriously for any long form video usecase, most clients don’t even seem to be doing blossom resolutions… treat it as if it was a mere a centralized http server.
Your best bet seems to be webtorrents indeed.
> Your best bet seems to be webtorrents indeed.
I wish it was that easy. A few more details then.
#p2p #cdn #blossom #devstr
More precisely, p2p-media-loader is actually used in PeerTube: it's a wrapper that combines the usage of traditional CDN + WebTorrent, and they definitely have this complex design not out of the blue; others didn't really work.
In an ideal world, I wish it was just normal Torrent (which is at least impossible from browser engines).
And with just WebTorrent (Torrent on top of WebRTC)—there are some WebRTC-related traps:
- at least the warm-up is too slow, according to p2p-media-loader devs
- due to privacy settings or/and ISPs behind certain kind of NATs, one may not have a functioning WebRTC-based peering at all (only connections through TURN, which is not supported in p2p-media-loader; because that would be an unnecessary complication since they have to use the CDN anyway).
There are more. There's no way to escape the WebTorrent tracker and use DHT due to some browser limitations, and at the same time you can't have too many of the trackers (iOS/Safari in particular may aggressively close WebSocket connections out of the blue if it decides there are too many of them, and it can be challenging to handle this properly if at all).
These are just a few things I recalled from when I was setting up vidstack player + p2p-media-loader on my website.
In two words, thing that will work in practice is (an event kind 10063 server list) of Blossom-based CDNs (at least for warm up) + p2p-media-loader (only helpful in case of multiple concurrent connections) + stable 1Gbps+ network.
Other paths are known frustrating traps; it's hard to even test/debug this stuff because you can't easily simulate the identical weird NATs some ISPs have.
GitHub
GitHub - Novage/p2p-media-loader: An open-source engine for P2P streaming of live and on demand video directly in a web browser HTML page
An open-source engine for P2P streaming of live and on demand video directly in a web browser HTML page - Novage/p2p-media-loader
> stable 1Gbps+ network
I mean, on the Blossom servers.
> WebSocket connections
WebTorrent is peering through WebRTC + tracking through WebSocket.
The NAT issues only apply to people behind CGNATs which also don’t have IPv6… which should be precisely nobody, unless of course some ISPs are violating some rules there, which could get them fined etc.
But you can simulate a CGNAT at home, assuming you have IPv4 connectivity, just connect a second router onto your main router and then tada, you have double NAT, which is basically what CGNAT is. If you want more fun chain a third router and then you effectively have a double nat behind a cgnat, which now that I think of it shouldn’t be too uncommon either, given the amount of poorly set up “wifi range extenders” out in the blue and/or people manually disabling ipv6 or whatever.
> But you can simulate
Yeah yeah, I tried that stuff with the hardware I possessed at that moment and read others experiences. This is frustrating. I don't know that many details; I might be wrong still, but it appears you still can achieve some unusual behaviors.
@bitvid I see your website welcomes with the:
> Give it a sec—videos might take 10 to 60 seconds to load initially.
Most likely you're aware of why exactly and all this, so just FYI. Some people will still complain inevitably, because some videos will never load (not just when there are no peers available).
Thanks for building though!
#webtorrent
The web just sucks man.
ZeroNet made it look easy back in the day, but then it runs as a daemon on your machine handling the p2p stuff in the background, but worked with any browser.
Brave has native support for IPFS but IPFS is slow as balls.
Only other option I can think of right now is:
- do server side rendering of the home page (client updates the dom afterwards)
- since the server rendered that page before it should be able to fech the first 30 seconds of each video and cache that
- do some HLS wizardry to switch the streams
Actually… I guess I am reinventing the library you mentioned.
Maybe we should just reinvent zeronet with nostr and nsites and whatever more, that way one daemon can serve as a local relay for caching/redistributing the nsites you visit and handle the p2p shit.
Yep, fair call, and thanks for flagging it. bitvid is a fully static client with no backend, so if the host a video points to goes down (or the torrent has no seeds), there's honestly nothing we can do to bring it back. We do probe sources (HEAD check on the URL, peer check on the magnet) and hide or flag the obviously dead ones, but it misses some, especially hosts that just hang. That banner is clearly past its prime too. If you hit any specific videos that never load, send me the links, they're really useful for tuning the probe. 🙏
Good ideas. SSR plus caching the first ~30s would definitely fix the cold start, but at that point it's a CDN, and bitvid is deliberately a static client with no server. What we can do client-side: we already try the direct URL first, fall back to WebTorrent if it stalls, and play HLS via hls.js when a host provides it. Next up is smarter probing (Range requests instead of HEAD, remembering dead hosts across sessions) and warming the first few seconds on hover. A ZeroNet-style nostr/nsite daemon that acts as a local caching relay + seeder is the real fix tbh. If someone builds it, bitvid would happily talk to it. Keep the ideas coming.
I think someone might actually be working on something like that (zeronet for nostr) already, but I can’t remember who.
Maybe it was one of the FIPS guys, judging by the podcasts.