Sjors Provoost

sjors@sprovoost.nl

November 2026

↻ Sjors Provoost reposted
Git Nostr ToolsHow Git Nostr Tools integrates NIP-34 into Git, from remotes and pull requests to state announcements that independent testers can subscribe to.Read the articleClose the article

A few days ago, I announced Git Nostr Tools. I expected someone to ask how the tools compare to and interact with ngit, grasp, and Iris git. The automated response misses the point in several respects, so I want to explain the internals and motivation behind the tools a little bit.

Like ngit and nak git, git-nostr implements NIP-34. It should not be surprising that all three tools cover the same grounds. Also, the fact that multiple tools "claim" the nostr:// URL scheme is not a conflict, but the whole purpose of a standardized protocol. It is not true that the git-nostr repository lives on GitWorkshop. While its code is hosted on GitHub, its NIP-34 metadata is stored on two independent relays. The GitWorkshop project page is merely one place to view that metadata.

The difference that matters when choosing a tool is how it fits into the way you want to use Git. My claim is that by leaving choices like where to host your repositories, what to name your branches, and which command aliases to use up to you, git-nostr can fit into a wider range of workflows.

Command-line integration

nak provides a git subcommand. To clone a NIP-34 repository from a nostr:// URI with nak, you run nak git clone. ngit, on the other hand, provides a git-remote-nostr helper, so to clone a nostr:// URI with ngit, you just run git clone. But for other operations, you sometimes have to use the ngit command instead.

In contrast, git-nostr adds both a nostr remote helper and a nostr subcommand to git. This allows you to easily use git's functionality to define aliases for commands that you often use and to encode your personal preferences, like:

git config --global alias.fork 'nostr fork --interactive'

It fully integrates into the git ecosystem. It uses git config for configuration, git credential for storing your key, and respects your preferred editor setting when it needs you to edit a file.

To demonstrate how git-nostr works, I want to guide you through a few common operations and explain what happens internally.

Repository and state announcements

Let's assume that Alice owns an open-source project on GitHub. She has configured her local clone such that she will fetch via HTTPS and push via SSH. git remote --verbose shows her:

origin	https://github.com/alice/widget.git (fetch)
origin	git@github.com:alice/widget.git (push)

The .git/config file in her clone contains:

[remote "origin"]
	url = https://github.com/alice/widget.git
	pushurl = git@github.com:alice/widget.git

Alice wants to announce her project on Nostr, because Bob wants to contribute and refuses to open an account on GitHub. So first Alice configures a relay:

git config --global --add nostr.relay wss://nos.lol

She then runs the following command inside the clone of her project:

git nostr init widget --interactive

She has to pick a project identity. git-nostr does not try to derive a project identity from the name of the working directory or the remote URL. She picks widget as the identity of her project. Because she uses the --interactive option, her preferred editor that she also uses for writing git commit messages will open a file where she can customize the human-readable name of the project, its description and some other metadata. As soon as she saves the file and closes the editor, she will be prompted for a Nostr key, because this is the first time that git-nostr has to sign an event. She pastes a bunker:// URL that she got from an app on her mobile phone.

In the background, git-nostr signs and publishes a Repository Announcement note (kind 30617) with the metadata that Alice provided and the HTTPS fetch URLs (plural, there might be multiple) in the clone tag. It will also replace all URLs of the remote to a single nostr:// address and for each pushurl it creates special pushinsteadof entries.

The .git/config file now contains:

[remote "origin"]
	url = nostr://<npub>/widget
[url "git@github.com:alice/widget.git"]
	pushinsteadof = https://github.com/alice/widget.git

And if Alice invokes git push, the following happens behind the scenes:

  1. git recognizes that the URL of the remote uses the nostr:// scheme, so it invokes git-remote-nostr and communicates with it over stdin/stdout. It tells the helper which URL to push to.
  2. git-remote-nostr resolves the Repository Announcement (kind 30617) from that address. It checks push permission and reads the clone tag. It then invokes git push with the first clone URL, but with GIT_PROTOCOL_FROM_USER=0 defined, because that URL was retrieved from the network.
  3. git recognizes that a pushinsteadof entry is defined for the HTTPS URL from the announcement, so the git objects will be transferred via SSH.
  4. Once the actual push was successful, git-remote-nostr reads the repository state from the remote (which will be retrieved via HTTPS, because it is not a push operation) and it will publish that information as Repository State Announcement (kind 30618).

Here is where you might notice a difference from GRASP. GRASP requires the Repository State Announcement (kind 30618) before the push, while git-nostr sends it after. This is something that needs to be kept in mind when adding GRASP support to git-nostr.

And you might also notice what is relevant to Iris Git: Iris Git uses Hashtree for repository storage and a separate git-remote-htree helper for htree:// URLs. But if you had a htree:// URL in the Repository Announcement (kind 30617) or in a pushinsteadof rule in your local configuration, the GIT_PROTOCOL_FROM_USER=0 variable would prevent git from using that helper unless you explicitly allow it by setting protocol.htree.allow to always.

Collaboration

While ngit automatically opens a PR whenever you push a branch that begins with pr/, git-nostr does not have any opinion about branch names. Opening a PR is always explicit:

git nostr pr open nostr://bob@nip05.me/widget

The destination of a PR can be any nostr:// URL or a remote that has a nostr:// URL. It defaults to upstream.

Behind the scenes, opening a PR sends a Pull Request note (kind 1618) and associates the branch with its nevent. So after Alice executed the above command while on the fix-build branch, her .git/config would contain:

[branch "fix-build"]
	remote = origin
	merge = refs/heads/fix-build
	nostr-pr = nevent1...

The branch's remote is origin, because that is where Alice pushes her changes. A branch can be associated with multiple PRs. It has one nostr-pr entry per associated PR.

If Alice pushes (potentially with --force) to a branch that is associated with one or more PRs, then git-remote-nostr (in addition to the stuff mentioned above) also sends a Pull Request Update note (kind 1619) for each associated PR.

Keep your existing workflow

git-nostr integrates NIP-34 into git, while staying out of your way where you don't want it to interfere. Host your source code and name your branches the way you like, be free to announce a project on Nostr or open a PR for a branch after it has been created, without the need to migrate anything.

This allows developers to collaborate on a feature of a project that is itself not announced on Nostr. They can send each other patches (kind 1617) and PRs (kinds 1618 and 1619) and once they agree with the state, open a PR on GitHub or wherever else upstream.

It also allows a project to start accepting Nostr issues and pull requests while GitHub continues to host the repository. It could then refer contributors to a page like GitWorkshop and disable pull requests on GitHub while keeping issues enabled, or vice versa. If their long-term plan was to get off GitHub, they could migrate issues, PRs, wiki, CI, and hosting on separate schedules.

Independent CI

In my talk Effective CTest at C++Now 2025, I advocated for a separation of responsibilities between project maintainers and build pipeline maintainers and I have my concerns about ngit's CI integration. To me, it looks like their goal is not to provide a decentralized development workflow like I described, but a decentralized version of GitHub, with all its feature bloat. I actually prefer the separation of concerns, which is also why I prefer native git with NIP-34 agnostic relays over GRASP.

Setting up a Nightly build for an arbitrary project and sending the build results to a dashboard was always possible and did not require permission from the project. This is what projects like VTK supported for 25 years. But what if you wanted to set up CI that builds for each opened PR or push to a particular branch? With GitHub, you would need to send a webhook to the tester, which only project maintainers can configure. With clients announcing the repository state (kind 30618), pull requests (kind 1618), and revisions (kind 1619), testers can simply listen for the appropriate events.

This article on Nostr

↻ Sjors Provoost reposted
I got tired of nostr explorer sites not rending my posts perfectly, so I built a static html generator: #staticstr. It renders threads, website previews, embedded podcasts, etc. And shows off your zaps of course. Finally it has some curation features, especially for threads.
nostr.sprovoost.nl/@sjorsSjors ProvoostNostr notes by Sjors Provoost
"the Government put forth no evidence that a transaction in the mempool conveys an agreement to be sandwiched" - yeah this case is interesting.
I still need to read it, but seems interesting. (ht @Molly White)
reuters.com/legal/government/us-judge-clears-mit-educated-brothers-25-million-c…Us judge clears mit educated brothers 25 million cryptocurrency heist charges
I've been maintaining a giant stack of pull requests on top of Bitcoin Core and HWI that allow multisig between multiple hardware wallet vendors and even a hot wallet. If you want that too, please test and review the underlying PRs. I'd like to ship it this decade.
git.sprovoost.nl/bitcoin/prs/nevent1qqsdslxaac7aezx98275zt30la7hzastc082wha8nyc…MuSig2 with hardware wallets via HWI · Pull request · Bitcoin Core (unofficial mirror)Let a Bitcoin Core wallet use MuSig2 with hardware wallets through HWI. The wallet registers its descriptor with each connected external signer, shows receive addresses on the device, and runs both…
You can bolt12 zap commits now! Well, kind off... 1. It's just me at the moment; I configured bolt12 zaps in @Amethyst 2. You need to copy-paste a lightning-cli command In the sceenshot, you see a zap to @Matt Corallo's 2015 commit. This uses BIP 353 instead. The money arrives, but it's not linked to a account. It does get counted on the commit page.git.sprovoost.nl/bitcoin/commit/6e800c2b41aca7e4a22d341f1e6…
I'm now mirroring the Bitcoin Core master branch and tags >= 32.1 The binaries still live on bitcoincore . org, but there's a magnet link in case that's down. git.sprovoost.nl/bitcoin
↻ Sjors Provoost reposted
↻ Sjors Provoost reposted
So can we call it the Riemann hypothesis vibe proof?
↻ Sjors Provoost reposted
↻ Sjors Provoost reposted
I created an X account 😱 for Dutch language content. It's mirrored directly to Nostr (@sjorsx) using @Sirius' nostr-backup browser extension. This is already a great tool, but with a few hours of vibe coding I'm officially turning it into a killer app! - when you like a tweet, it first cross-posts it with an ad hoc nsec - unless the tweet is already mirrored, e.g. because the author also uses the extension - when you reply or retweet, it reposts the relevant parts of the thread It's probably going to kill my new X account.
git.iris.toIris GitGit repositories on Nostr and Hashtree. Code, collaboration, and an identity you control.
Different nostr clients keep messing up my relay selection. Which itself isn't based on rocket science. @claude can you give me an explainer of how Damus, Primal, Iris, Amethyst, noStrudel and WhiteNoise handle and prefer relay selection (in general)? For the latter, does only the inbox need to be the the whitenoise relay or also the outbox? Or is the inbox model outdated anyway?
Anyone remember these? I think this was at the New York Bitcoin Embassy on Wall Street.
Had my agent post directly to @primal's cache, which unlike the relay doesn't refuse old events, so now I can scroll 15 years back.
Some relay don't like it when you post backdated events. But @npub1u6638vk…es46r8's seems ok with it.
Bitcoinstad #Arnhem represented by @Patrick van der Meijde at #Bitfest
↻ Sjors Provoost reposted
With some help from Claude I created an automation to cross-post my (self-hosted with blossom) @insta pics on Instagram for my fiat friends.
A quick stroll through #Manchester and then onwards to #Bitfest. Yesterday’s #Nostrshire was quite high signal. Ended up swapping my self-hosted Forejego with ngit's Grasp. More client-side JavaScript + fewer API endpoints on my servers = better sleep quality.
↻ Sjors Provoost reposted
The #Manchester tram tap on/off machine just says OK. This confuses my inner state machine. What happens if you tap it twice?
Added the alternateEnclosure tag to the podcast feed for episodes with video, which e.g. @Fountain and Podcast Guru support.
↻ Sjors Provoost reposted
I tried to find a geographic pattern in the ~1000 IP addresses, used by a single actor, that have been probing my server since Friday. But all I got was a pretty map. This excludes Tor and other privacy networks.
Quite the contrast... Signing up for @Freedom Fest UK: pay ticket with lightning, delivered via nostr, name and email optional. Effortless privacy. Crossing the border to physically attend the conference however, requires filling out a form, scanning your passport including its chip, and then taking a passport style selfie against a white wall. The latter seems exclusionary to people who like different colors of paint, or live in a tree house. The app is very inclusive though, as we'll see in a moment. They apply some creepy filter to the camera that makes it look like a street artist is sketching the outline of your face. I suppose it might make someone feel comfortable about their privacy ... if they have no clue how a camera works? Then the government (it wasn't a phishing site) goes full RyanAir and requires you to pay in EUR with a 4% markup, even though I can make GPP payments just and fine and much cheaper. Of course the payment is digital, so it's part of the KYC. I then decided to be a good sport and fill out the satisfaction survey. I rated the experience 4 out of 10 and explained that, although the app works flawlessly, it's dystopian. This confused the survey computer, so it asked me if I was trans. I'm not making this up. Anyway, there's something charming about English-style dystopia, and I'm looking forward to visit - it's been a while. Please don't arrest me for this post! :-)
Ok fine, one more NIP:
GitHub · github.com/nostr-protocol/nips/pull/2550Add NIP-0D: Relay Onion Addresses by Sjors · Pull Request #2550 · nostr-protocol/nipsI had to (temporarily?) block all incoming traffic from Tor exit nodes on my server. That seemed like a good opportunity to add an onion service to my wss://nostr.sprovoost.nl/ relay (specifically)...
Interessante aflevering.
↻ Sjors Provoost reposted
Some digital dog is sniffing my servers, triggering login attempts and password resets. A good opportunity to harden a few things. But just in case they succeed: no, I'm not interested in catching up with you in a video call. Nothing personal.
I was wondering this afternoon which would happen first: - Dutch government minority coalition collapse over their "open marriage" (their own terminology for getting the fiscal budget passed with help from opposition, which just happened, but now one party is angry); or - the Nvidia CEO stepping down. Congrats to the latter.
Here's the setup I'm using for @bitcoinexplained. The audio podcast is hosted on Castopod, with some extra patches, including a Nostube viewer. The video is hosted on my Blossom server, and automatically upload to Youtube as well for the boomers. Transcripts are first generated with Whisper, then sanity checked by the LLM. The rest of the repo documents various tooling used for editing, posting, etc. It's vibe coded and slopp-documented, but it's a start.
gitworkshop.dev/npub1v25jqj332n630klwtqeqxgyrjl4alw4phmluhu2x6lcxzwy9m03suqexw3…gitworkshop - Decentralized GitDecentralized GitHub alternative over Nostr for browsing repositories, managing issues, and collaborating on pull requests.
It's still before sunrise in Washington DC, but Dutch #RTL4 just published a video in broad daylight explaining the Democrat victory. Now I want to see the the other version they made... :-)
YouTube · youtu.be/n_eNuAgiX88De Democraten winnen de midterms | RTL Nieuws
Assuming Democrats also win the presidential election in 2028, this is a good time to prepare for a return of censorship and a massive crackdown on crypto.
I first read about this Soviet technique in Ukraine’s Orange Revolution by Andrew Wilson (published 2006). Amazing to see it actually work (1.6% went to the fake Sullivan, shiting the real candiate from 1.4% ahead to 0.2% behind). So many people are going to change their name now... #midterms Alaska Senate result.
Moving an historically significant train station:
YouTube · youtu.be/_BFMlMwzVPUTimelapse verplaatsen station Vught
I suppose the best way to watch comedian political activists, if at all, is to have your agent plough through the sources in advance and splice in the missing nuance!
YouTube · youtu.be/Un_Gigu0mK8The problem with John Oliver
The kind-1 event links to an mp4 file, while the podcast website embeds a NIP-71 event that supports HLS (different resolutions and incremental downloads). It's a bit annoying that you can't offer HLS in a kind-1 with mp4 as a fallback.
↻ Sjors Provoost reposted
a note
So Nostube by @florian is pretty cool...
flox1an.github.io/nostubeNostubeVideo on Nostr: the web app, the self-hosted server and the embed player