Towards Liberty Podcast · Max
Max covers signed Git workflows, browser publishing, Nostr client updates, protocol implementation, and how URI links and event references work. Guests: nostr:npub1klkk3vrzme455yh9rl2jshq7rc8dpegj3ndf82c3ks2sk40dxt7qulx3vt Newsletter 39 · Nostr Compass Android source 0:00 Signed git workflows move CI, private repositories, and releases onto Nostr Max opens this edition’s nine recordings with the ngit v3 launch and its signed Git workflow over Nostr. ngit-grasp v3 adds private repositories through GRASP-08, while ngit-ci 0.1 carries CI instructions and results as signed Nostr events. Max discusses working privately before a public release and considers sharing spare CI capacity. 3:13 nsite-clay makes browser publishing recoverable An August 31 signer-prompt fix, publication recovery, and September 2 editing controls make nsite-clay a browser publishing tool for a single-page site. A user edits the document object model in place, serializes the result, uploads it as a content-addressed Blossom blob, and republishes the site's NIP-5A manifest. No local build or server is required. 4:53 NIP-A3 payment targets reach three clients From September 1–3, Amethyst, Grimoire, and Pollerama implemented NIP-A3 kind 10133 payment targets. Amethyst offers an opt-in handoff only when a compatible target exists and does not turn it into a zap; Grimoire uses a fixed registry before building wallet URIs; Pollerama validates Monero addresses and fetches the author's relay list before querying targets. Each client still needs an allowed payment method, a relay route, and an accurate display. 5:16 Ditto expands Blossom fallback and mirroring Max explains how Ditto tries fallback Blossom servers when the preferred server is unavailable. He also discusses mirroring uploaded blobs so media can remain available through other servers. 5:46 Nostr Implementation Possibilities NIP-01 clarifies limit: 0 as a live-only subscription: no stored events, an EOSE message, and continued delivery of matching new events. NIP-78 recommends NIP-42 authentication and author-only access for app data kinds 78 and 30078; this is not a confidentiality guarantee. The open NIP-AC proposal uses ephemeral WebRTC signaling events and kind 30600 discovery. 8:08 NIP Deep Dive: URI Links and References in Event Text A Nostr identifier needs a transportable meaning before another application can open it. NIP-21 puts a NIP-19 identifier after the nostr: URI scheme, giving browsers, operating systems, and applications one dispatchable form. NIP-27 defines what that same URI means inside readable event content. 8:28 URI dispatch and NIP-19 semantics NIP-21's grammar is nostr: followed by one NIP-19 bech32 entity. nsec is excluded because it encodes a private key. There is no authority, path, or query component, so a conforming link is nostr:npub1..., not nostr://npub1.... A platform or client may register as the handler; the specification does not choose the installed application or define a web...
Automatically transcribed; source-based terminology corrections; unclear speech marked. Audio has not been listened to. 0:00 Max Hello and welcome to Nostr Compass episode 39. We have another big week of building going on in the Nostr ecosystem, so let's do a quick rundown. As always, this is done with our asynchronous podcasting application, so if you want to be a part of this podcast, check out the Nostr Compass logbook. Sign in with your Nostr key and leave a voice note for projects that you are interested in and want to talk more about. Starting today, we have ngit with a version 3 release across a whole bunch of different parts of its infrastructure. So ngit is Git over Nostr where all metadata is hosted in a Nostr native environment. This includes a new version of GitWorkshop, their web interface or application that shows you all the open issues, pull requests, and the code of a specific repo. Also updates to ngit-grasp, those are the Grasp servers that are basically a Git server with some additional Nostr checks, they had a major release introducing private repositories. So this means that now this Grasp server can manage access rights and require users who request certain data to actually authenticate themselves via NIP-42, and it then only gives access to repo data if that requesting pubkey is part of the whitelist for that repository. So this is useful if you want to push something to ngit before you make your official public release, and you can already use all of the features like the issues, pull requests, and multi-device syncing, but only for those pubkeys whom you allow on your whitelist, that can be you and your agents or parts of your team, or early testers. But then hopefully, in the long run, you will make repos public and free and open source. But that's really cool. Also a major release of ngit CI version 0.1. This is the continuous integration service now natively running over Nostr. One of the major requested features that keeps people still on GitHub, but now you can run your own CI infrastructure and communicate with it over Nostr to make sure that you have all of your checks for each commit done. And this also enables a marketplace. Very often, CI infrastructure, if you're self-hosting it, has very low usage of a couple percent per day, so why not sell your available compute to other projects that need CI. This is still in its early versions, so expect more improvements to come. But if you haven't yet used ngit because you were needing a good CI system, [unclear] Stay tuned because they are making solid progress on this. 3:13 Max Another fantastic launch this week is nsite-clay. This is a tool for Nsites, which are the Nostr native static websites where all the page contents are published to Blossom and then the website manifest and structure is a Nostr event signed by your key. So this means that anyone can validate and recover your website from these root events. What so far hasn't been there is that you could actually edit the website inside the website. So this is exactly what nsite-clay is doing. You can now log in to an Nsite, just like you would log into our logbook Nsite. But if you want to make changes to it, you can have a edit button where you then change how the website looks or feels or what it does. Inside the website itself and if you click save, it publishes all of the new website scripts or code into Blossom and creates a new root manifest with these updates. So this is quite fantastic that you can actually change the website inside the website a little bit like WordPress, but totally without servers and just some Blossom and Nostr relays. Really cool idea and obviously this can be done for any Nsite that you would imagine. So if you have an existing Nsite and you want to be able to make a quick fix while you're in it, then check out nsite-clay. 4:53 Max - Also, multiple apps have worked on NIP-A3 payment targets. These are an amount of sats that you would like to receive on a certain event, and it shows anyone how much percentage of your target is reached. So, quite useful for fundraising. This was implemented in Amethyst, Grimoire, and Pollerama. 5:16 Max So, the Nostr client has worked on its Blossom fallback and recovery scheme, so now Blossom uploads can have a fallback server, meaning if your first preference is down it will simply upload it to the second, and also mirroring of blobs, meaning you can download a blob from one server and then upload it to multiple others to make sure that your blobs are actually kept around in the long run. 5:46 Max And the Nostr implementation possibilities, the NIPs repo got a couple updates as well. Two we've already talked about in the last weeks, and that is that now NIP-01 clarifies that the limit zero filter, what it exactly does. So this is merged and just makes a couple rules very clear that a relay must return no stored events. It must send the end of stored events tag when the initial query completes, and it must keep the subscription active for new matching events. So this is just clarifying what relays and clients should expect in a proper implementation. So clients can open the live only subscription with just that one filter field, that's the limit zero, and still retain the local history and get new events when they come in. We also have merged for NIP-78, the file metadata, or sorry, the app data requirements. This now says that relays should require the NIP-42 authentication to download and put these events. So for both kind 78 and 30078, they should serve them only to the authenticated event author, and that's something that would help some clients, but it's not a strict requirement. But what is new this week in the NIPs repository is the proposal for NIP-AC. That is a open WebRTC signaling proposal. The idea here is that we use ephemeral kinds for ping, connect requests, offers, answers, and ICE candidates. These are addressed to the receiver with the p tag, and then have a session e tag, and these are kind 30600 for how you can discover a potential connection. So relays should broadcast and must not store those signaling events, since they are ephemeral, and therefore they only give them to peers who are currently already asking for these types of events. This is still a work in progress, so if you have any strong opinions, then leave a comment on the NIPs repo. 8:08 Max And that is the end of our news section, and that brings us to the NIP deep dives. Today we're having a look at NIP-21, these are Nostr native URI dispatchers, and NIP-27, which is the URI inside a readable event content. 8:28 Max So let's talk first about NIP-21. This clearly defines a URI scheme, which are these clickable hyperlinks that you might know as HTTPS colon slash slash. And this basically means that an application can register to open these type of hyperlinks. And then if someone sends you a link, you can click it and it opens a specific application to open that content. And so we use this in Nostr with the hyperlinks that start with nostr:, and then followed by either an npub or a note, that's an event ID, the nprofile, which has relay hints together with the pubkey. The nevent is about a specific event ID, as well as the relays and authors that have done this. And an naddr is the same for the replaceable or addressable event kinds, which carry the additional d tag. Interesting is that nsecs are explicitly removed from this. So you should not have a hyperlink for your Nostr private key. And if you are on any application on the operating system, you can request that whenever the user clicks this nostr: URI, that your application gets popped up. And if there are multiple applications installed, then usually a picker comes like with which application do you want to open this link? And that would then be multiple different Nostr identifiers. This is really useful. And by the way, you can just come up with your own [unclear] for this as well. One example that comes to mind is marmot:// is also a URI standard that the marmot applications specifically support. So very useful. And if you want to make the life of your users easier so that they don't have to copy and paste these identifiers, but just click them and magically land in your applications. Very much check out NIP-21. 10:35 Max And then next up we have NIP-27. This clearly specifies on how we can use the NIP-21 URIs in the Nostr events directly. So this is the fact if you want to write a kind 1 post and you want to reference another user. The usual UX is that you type the @ sign and then search for a username. But what actually happens under the hood is that your client generates this nostr:npub or nprofile and puts that directly in the actual content of the Nostr event. So with this you have a good UX for simply picking a username but then it is written in the event such that any other client can easily display it as well. So your client should parse these nostr: events or lines and actually display a human-friendly version of that. Either rendering a repost or so that would be another event that is referenced in one event or just a username and then there's many different ways that this can be done. One interesting nuance is that you should also then add the or choose to add the relevant additional tags to the kind 1. So this would for example be a p tag if you actually want to get the receiving user notified when he gets mentioned for example. So this means any additional tag which would be the npub or relay hints etc can be added together with displaying the nostr:npub in the actual content part of the message. 12:19 Max And as you can see, these two NIPs go really well hand in hand and are quite relevant for clients to consider. So basically whenever you see this nostr: string, then some smart parsing and display logic should be activated. And here one nuances that some of these references point to specific clear things like a public key or nevent. This is a byte for byte commitment that you're referencing in a note. But for example, for the naddrs, I'm not sure how to pronounce these, but the replaceable event pointers, here the actual content might change after your note was published. So this is one thing to consider. And then how you display this is basically up to clients. It does make sense to have some inline previews, but maybe not all the time. And you could, for example, truncate the public key or then pull the kind zero and get the actual profile metadata. That really depends on what you would like to do with it. And the NIP-21 standard also is very useful if again you want to highlight that your app is capable of opening these types of links and that's a good user discovery. So both quite important and they're very well implemented in many Nostr clients, so consider to upgrade your client to do this as well. This brings us to the end of our Nostr Compass podcast. So thank you very much for all the builders who have shipped cool stuff. And thanks to all others that come on this asynchronous podcast, which again is a shout out that this is an open for all podcasts that if you want to be part, go to nostrcompass.org and find the logbook where you can sign in and say your words about whatever it is you've been working on very much until next week.