TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Nostr is a stupid simple P2P protocol that works, built by builders

248 pointsby kdragonover 2 years ago
I have been seeing a lot of shilling for mastodon lately, so I thought I would step in and shill Nostr for a bit.<p>https:&#x2F;&#x2F;github.com&#x2F;nostr-protocol&#x2F;nostr<p>Fun facts about Nostr:<p>* Nostr stands for &quot;Notes and Other Stuff Transmitted by Relays&quot;. It is an odd acronym, but I like it.<p>* Nostr uses websockets and relays to build a really simple P2P network. We also steal a few ideas from bitcoin (ECDSA ids, schnorr-signed events).<p>* Relays are simply dumb data stores for events that clients publish and subscribe to.<p>* Clients don&#x27;t trust relays to be honest, so all events are self-signed. Your pubkey is your userid.<p>* It is stupid simple to build a Nostr client. You can easily do it in less than 400 lines of JavaScript. And it runs in the browser.<p>(shameless self plug) https:&#x2F;&#x2F;github.com&#x2F;cmdruid&#x2F;nostr-emitter<p>* Nostr is powerful enough to host chat apps very easily. Here is a rip of Telegram, running on Nostr:<p>https:&#x2F;&#x2F;anigma.io<p>* There&#x27;s a lot of fun things you can do with Nostr. Check out all these cool projects!<p>https:&#x2F;&#x2F;github.com&#x2F;aljazceru&#x2F;awesome-nostr<p>* We are constantly discussing how to improve the protocol. Come join the conversation here:<p>https:&#x2F;&#x2F;t.me&#x2F;nostr_protocol https:&#x2F;&#x2F;anigma.io https:&#x2F;&#x2F;damus.io https:&#x2F;&#x2F;github.com&#x2F;nostr-protocol&#x2F;nips<p>Thank you for reading my nostr shill post. I did not create nostr, nor do I get any monies for promotion. I just think it&#x27;s really cool and I have a lot of fun building stuff that punches though nats.<p>If you have any questions about nostr please feel free to ask.<p>Also, Happy Thanksgiving to everyone! I hope we&#x27;re all feeling fat and sassy today. :-D

21 comments

egypturnashover 2 years ago
So how does nostr propose to solve the problem where there is, in fact, quite a lot of content that you <i>want</i> to filter out, whether because it makes for a better experience for the people using this protocol to talk to each other, or because there are some pretty solid laws about things that various governments require people to filter out?<p><a href="https:&#x2F;&#x2F;abovethelaw.com&#x2F;2022&#x2F;11&#x2F;hey-elon-let-me-help-you-speed-run-the-content-moderation-learning-curve&#x2F;" rel="nofollow">https:&#x2F;&#x2F;abovethelaw.com&#x2F;2022&#x2F;11&#x2F;hey-elon-let-me-help-you-spe...</a> is a pretty decent rundown of a mix of these things; it is specifically pointed at Elon Musk&#x27;s decision to buy Twitter and make it a haven for &quot;free speech&quot; but it is a glimpse at what is in the future for <i>anyone</i> setting up a &quot;free speech&quot; platform.<p>My experience as someone who has been running a Mastodon server since 2017 is that while &quot;we are all for FREE SPEECH, we only block what the government ABSOLUTELY requires us to block!&quot; sounds noble, in practice nodes of the Fediverse that say this become havens for people who are only there to be assholes to other people, and any sane admin will sigh and block the whole server, because it&#x27;s just going to be a continual source of rude nasty bullshit.
评论 #33750574 未加载
评论 #33747559 未加载
评论 #33747681 未加载
评论 #33749196 未加载
评论 #33747167 未加载
评论 #33752488 未加载
评论 #33752578 未加载
评论 #33750301 未加载
评论 #33749652 未加载
评论 #33749053 未加载
Cameriover 2 years ago
I don&#x27;t agree Nostr is P2P since clients must connect to relays and there&#x27;s no provision at the time for client to client connectivity. I found out about Nostr and due to the simplicity of the protocol I was able to start building right away. I implemented a relay using Typescript: <a href="https:&#x2F;&#x2F;github.com&#x2F;Cameri&#x2F;nostr-ts-relay" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Cameri&#x2F;nostr-ts-relay</a> I also wrote this dead simple SMTP to Nostr gateway: <a href="https:&#x2F;&#x2F;github.com&#x2F;Cameri&#x2F;smtp-nostr-gateway" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Cameri&#x2F;smtp-nostr-gateway</a>
评论 #33748991 未加载
评论 #33751324 未加载
olah_1over 2 years ago
I&#x27;m beginning to think that ActivityPub will never add anti-censorship features into the core protocol (for example, independent IDs that don&#x27;t live on a relay server). Because I spoke with a core developer on ActivityPub stuff a couple of years ago about the issue of servers going offline and losing your account and he said that he was working on it.<p>But I wouldn&#x27;t be surprised if he was discouraged from continuing this work because ultimately people <i>like</i> ActivityPub <i>because</i> server admins can be little dictators that censor and ban at will.
评论 #33751003 未加载
评论 #33749269 未加载
StillBoredover 2 years ago
A huge advantage to many large projects is separations of concerns, particularly in the case of protocol (or API&#x2F;etc) vs policy.<p>From the sounds of it, you have the protocol but not the policy. Which is by itself huge that they are separate, but now the clients (?) needs flexible policy, no? Otherwise its just going to turn into a billion people all talking in the same room, or your going to have a ton of tiny rooms with no activity. The discoverability of interesting rooms will be difficult. Its sorta the IRC problem in a nutshell (or discord&#x2F;etc). Balancing the noise, vs the quiet is the difficult part (AFAIK).
评论 #33750535 未加载
bawolffover 2 years ago
So reading the github page this sounds basically like a variation on RSS.<p>There are a number of web servers that host content (either for free or for money) [called relays].<p>Clients download recent posts<p>Identity is based on public key, allowing users more control and the ability to easily change relays.<p>So is RSS + pubkey based identity the right way to think about this?
评论 #33750659 未加载
评论 #33750371 未加载
评论 #33749515 未加载
klabb3over 2 years ago
Not saying this is the future, but something like it is. All of the core decisions here are solid (pub key identities, signed events, dumb relays).<p>There are still features that many apps will need such as tying multiple devices to an identity, abuse prevention for relay operators, etc.
评论 #33747109 未加载
评论 #33747012 未加载
chromatinover 2 years ago
Link to nostr NIPs (nostr improvement proposals): <a href="https:&#x2F;&#x2F;github.com&#x2F;nostr-protocol&#x2F;nips&#x2F;blob&#x2F;master&#x2F;README.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nostr-protocol&#x2F;nips&#x2F;blob&#x2F;master&#x2F;README.md</a><p>One of the neat things about nostr is that while it has already been used to build a decentralized Twitter like social network, the protocol could also be used to build encrypted P2P chat, traditional discussion forum, alerting&#x2F;push style notifications, and numerous other applications.
评论 #33747540 未加载
akkartikover 2 years ago
Last year: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29749061" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29749061</a>
评论 #33747956 未加载
ilakshover 2 years ago
If everything goes through relays then is it really P2P? Why not even try to have a direct connection of any sort, such as WebRTC?
评论 #33747303 未加载
评论 #33747504 未加载
rgbrgbover 2 years ago
Cool! How do you discover users to follow on nostr?
评论 #33747046 未加载
评论 #33747743 未加载
评论 #33747011 未加载
stonogoover 2 years ago
What does &quot;built by builders&quot; mean?
评论 #33748106 未加载
jasonlotitoover 2 years ago
shill: One who poses as a satisfied customer or an enthusiastic gambler to dupe bystanders into participating in a swindle.<p>It&#x27;s not shilling. It&#x27;s recommending. Shilling is a bad thing. It&#x27;s a simple thing.
评论 #33750582 未加载
epsover 2 years ago
&gt; <i>A relay doesn&#x27;t talk to another relay, only directly to users.</i><p>Can you elaborate on this point? It would seem that meshing relays would&#x27;ve facilitated the dispersal of updates.
评论 #33750397 未加载
Reventlovover 2 years ago
The inability of people to spell Mastodon correctly will always surprise me. Also, isn&#x27;t « nips » a slang for nipples ?
评论 #33748747 未加载
评论 #33747099 未加载
usgroupover 2 years ago
I don’t understand —- this isn’t a P2P protocol since it isn’t peer to peer by definition. And the “relays” don’t even relay anything … a “relay” is a server acting as a Dropbox that you have to query.
fiatjafover 2 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;nostr-protocol&#x2F;nostr" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nostr-protocol&#x2F;nostr</a> literally says &quot;it is not P2P&quot;.
quickthrower2over 2 years ago
How do I discover people and follow on <a href="https:&#x2F;&#x2F;branle.netlify.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;branle.netlify.app&#x2F;</a> ? I can’t figure it out
评论 #33761718 未加载
yjftsjthsd-hover 2 years ago
So, Usenet built out of modern tech? Nice:)
评论 #33749178 未加载
huimangover 2 years ago
At this point I don&#x27;t see much point in adopting something that doesn&#x27;t support ActivityPub. I&#x27;d rather just use Mastodon&#x2F;Pleroma&#x2F;Akkoma with some heavy blocklists.
评论 #33747582 未加载
评论 #33747448 未加载
terminal_dover 2 years ago
Isn&#x27;t this just Urbit with extra steps?
jesusixosover 2 years ago
Cool