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

gitchain-sol

v0.4.2

Published

Software provenance & lineage protocol on Solana — fingerprint, register, and verify code on-chain

Readme

gitchain

Software provenance & lineage protocol on Solana. Fingerprint your code, register it on-chain with stake-backed provenance, detect AI rewrites, and resolve disputes deterministically.

Install

npm install -g gitchain-sol

Prerequisites

  1. Node.js 18+
  2. Solana CLI (for wallet management):
    sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
  3. Create a wallet (one-time):
    solana-keygen new
    solana config set --url devnet
  4. Fund your wallet (devnet):
    solana airdrop 2 --url devnet
    If airdrop fails (rate-limited), use https://faucet.solana.com

Quick Start

cd your-project
gitchain init                          # initialize tracking
gitchain publish origin main           # fingerprint + register + push
gitchain status                        # check on-chain state

Commands

Publish (register + push)

gitchain publish origin main --stake 0.2
  1. Fingerprints all source files (SHA-256 Merkle tree + AST structural hashes)
  2. Scans on-chain registry for lineage/overlap
  3. Registers on Solana with SOL stake (default: 0.1 SOL)
  4. Uploads file hashes + structural hashes on-chain
  5. git push to your remote

Verify (check any code against on-chain records)

gitchain verify ./suspect-code
gitchain verify ./suspect-code --json     # machine-readable output
gitchain verify ./suspect-code --verbose  # show all function matches

Compares a local directory against all registered projects. Reports:

  • Content overlap %
  • Structural overlap % (AST-level, catches AI rewrites)
  • Signature/skeleton overlap
  • AI rewrite score (0-100)
  • Composite verdict with confidence

Clone (with provenance check)

gitchain clone https://github.com/user/repo.git

Status

gitchain status

Lineage

gitchain lineage          # show ancestry tree + overlap scan
gitchain lineage --json

Challenge (V2 Provenance Court)

gitchain challenge <defendant-pda>

File a dispute against a project you believe copied your code. Compares file hashes on-chain and submits overlap proof.

Resolve

gitchain resolve <dispute-pda>

Resolve an open dispute. Deterministic: >=40% overlap = challenger wins, <40% = defendant wins. Stake transfers to the winner.

Withdraw

gitchain withdraw

Reclaim your stake after verification or 30-day period.

Disputes

gitchain disputes         # disputes for current project
gitchain disputes --all   # all disputes on-chain

How It Works

GitChain creates a multi-layer fingerprint of your source code:

  1. File hashes — SHA-256 of each source file (CRLF/LF normalized)
  2. Merkle root — Merkle tree of all file hashes
  3. Structural hashes — AST-level function fingerprints (catches AI rewrites where every line is different but the structure is the same)
  4. Function signatures — name + param count hashing for cross-file rename detection

These are stored in Solana PDAs tied to your wallet and project name. The V2 Provenance Court adds:

  • Stake-backed registration — put SOL behind your claim of originality
  • On-chain challenges — anyone can dispute with overlap proof
  • Deterministic resolution — hash comparison on-chain, no subjective judging
  • Stake slashing — plagiarists lose their stake to the challenger

Program

  • Network: Solana Devnet
  • Program ID: 5bHSYFLoEtoxQnqi6vuDvjFGbcuwnLJbi6wJbHmHW8R4
  • Explorer: https://explorer.solana.com/address/5bHSYFLoEtoxQnqi6vuDvjFGbcuwnLJbi6wJbHmHW8R4?cluster=devnet

License

MIT