npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nostr-git-sync

v0.0.3

Published

Decentralized git sync daemon using Nostr (NIP-34) with optional Bitcoin anchoring

Readme

nostr-git-sync

Decentralized git sync daemon using Nostr (NIP-34).

Overview

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│   Publisher     │     │  Nostr Relays   │     │   Subscribers   │
│  (git push)     │────▶│  (30618 events) │────▶│  (git pull)     │
└─────────────────┘     └─────────────────┘     └─────────────────┘

When a publisher pushes to a repo, they broadcast a NIP-34 kind:30618 event announcing the new state. Subscribers watching for that repo automatically pull the update.

Key Features

  • Unified identity: Same secp256k1 key for Nostr, Bitcoin (Blocktrails), and ACLs
  • NIP-34 compatible: Uses standard kind:30618 repo state events
  • ACL-based trust: Only pull from did:nostr:npub... keys you trust
  • Optional Blocktrails verification: Require Bitcoin-anchored commits

Install

npm install
cp repos.json.example repos.json
# Edit repos.json with your config

Usage

Subscriber (daemon)

# Start watching for updates
npm start

# Or with custom config
node bin/nostr-git-sync.js /path/to/repos.json

Publisher (after git push)

# Announce new repo state
node src/publish.js <nsec> <repo-id> [repo-path]

# Example
node src/publish.js nsec1... JavaScriptSolidServer .

Configuration

{
  "relays": ["wss://relay.damus.io", "wss://nos.lol"],
  "repos": {
    "JavaScriptSolidServer": {
      "path": "/var/www/jss",
      "cloneUrl": "https://github.com/...",
      "branch": "gh-pages",
      "trusted": ["did:nostr:npub1..."],
      "requireAnchor": false,
      "postSync": "npm install"
    }
  }
}

| Field | Description | |-------|-------------| | path | Local path to git repo | | cloneUrl | Git remote URL (for future clone support) | | branch | Only sync this branch (optional) | | trusted | Array of did:nostr:npub... keys allowed to trigger sync | | requireAnchor | Require Blocktrails verification before sync | | postSync | Command to run after successful sync |

NIP-34 Event Structure

Kind 30618: Repository State

{
  "kind": 30618,
  "pubkey": "<publisher-hex>",
  "tags": [
    ["d", "JavaScriptSolidServer"],
    ["refs/heads/gh-pages", "7a356be..."]
  ],
  "content": ""
}

Identity Model

The same secp256k1 keypair is used across:

  • Nostr: Signs 30618 events (npub1...)
  • Bitcoin: Controls UTXOs via Blocktrails key tweaking
  • ACL: did:nostr:npub... format in trusted list

Roadmap

  • [ ] 30617 discovery (fetch clone URLs from Nostr)
  • [ ] Blocktrails anchor verification
  • [ ] Git hook for auto-publish
  • [ ] Systemd service file
  • [ ] Multi-branch support

License

MIT