Skip to main content

Nostr Git

Decentralized code hosting. Git repositories with Nostr identity and collaboration.

Overview

Nostr Git enables:

  • Code hosting on Nostr — Repos announced via events
  • Cryptographic ownership — Signed by maintainer keys
  • Decentralized issues/PRs — Collaboration via Nostr events
  • No single point of failure — Distributed across relays

How It Works

Repository Announcement

Maintainers publish events announcing their repos:

{
"kind": 30617,
"tags": [
["d", "my-project"],
["name", "My Project"],
["description", "A cool project"],
["clone", "https://git.example.com/repo.git"],
["web", "https://github.com/user/repo"]
],
"content": "Project README..."
}

Issues and PRs

Collaboration happens via Nostr events:

  • Issues as kind 1617 events
  • Patches as kind 1618 events
  • Comments threaded via replies

Benefits

GitHubNostr Git
CentralizedDistributed
Account requiredJust a keypair
Can be bannedCensorship-resistant
Microsoft ownedCommunity owned

Clients

  • gitstr — CLI client
  • Web clients — In development
  • Website: nostrgit.org
  • NIPs: Git-related Nostr Implementation Possibilities

See Also