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

@cogcoin/genesis

v1.0.0

Published

Genesis artifacts for the Cogcoin protocol.

Readme

@cogcoin/genesis

@cogcoin/[email protected] is the canonical artifact bundle for developers building Cogcoin indexers, verifiers, and other protocol tooling. It extends the on-chain trust chain rooted in the GENESIS transaction at Bitcoin block 937337 to every consensus-critical artifact needed for offline verification.

Use this package as the local source of truth for genesis artifacts. Install it, run verification, then load the included files directly.

Links

Quick Start

Install the package:

npm install @cogcoin/genesis

Then, from your project root, run:

node node_modules/@cogcoin/genesis/verify.mjs

Run verification before using the package in an implementation.

Contents

  • LICENSE: MIT license text shipped with the package
  • genesis_tx.json: raw GENESIS transaction plus explicit treasury script bytes
  • genesis_params.json: byte-exact parameters file committed on-chain by SHA-256
  • genesis_announcement.json and genesis_announcement.sig: signed package trust extension
  • canonical_constants.json: consensus-critical constants not present in genesis_params.json
  • bip39_english.txt: pinned BIP-39 English wordlist
  • scoring_bundle/*: scoring bundle committed by genesis_params.json -> scoring_bundle_sha256
  • cogcoin_whitepaper.md: authoritative protocol specification
  • verify.mjs: self-contained package verifier

Trust Chain

  1. The GENESIS transaction OP_RETURN commits the SHA-256 of genesis_params.json.
  2. genesis_params.json commits scoring_bundle/manifest.sha256 via scoring_bundle_sha256.
  3. genesis_pubkey in genesis_params.json identifies the same key as the treasury recipient in genesis_tx.json.
  4. That key signs the SHA-256 hash of genesis_announcement.json, and the announcement's package_manifest commits the signed package artifacts by SHA-256.

The signed package manifest excludes genesis_announcement.json, genesis_announcement.sig, README.md, and package.json. LICENSE is also shipped outside the signed set as package/legal metadata. The package is immutable. The trust model is the Bitcoin anchor plus the signed manifest, not the npm registry.

Verification

Verify the installed package before using any artifact:

node node_modules/@cogcoin/genesis/verify.mjs

If you are already inside the package directory itself, npm run verify runs the same verifier.

The verifier checks:

  • the on-chain genesis_params.json hash commitment
  • the scoring bundle manifest and all scoring bundle artifact hashes
  • every hash listed in genesis_announcement.json -> package_manifest
  • the GENESIS txid and OP_RETURN payload
  • treasury address, scriptPubKey, and pubkey-derived address consistency
  • the Bitcoin message signature over the SHA-256 hash of genesis_announcement.json

Run the verifier after installation. If verification fails, do not use the package artifacts.

Critical Clarifications

  • bootstrap_award_per_registration_cogtoshi applies at DOMAIN_ANCHOR, not DOMAIN_REG. The genesis parameter key name is a locked on-chain misnomer.
  • The scoring WASM export settle_block_wasm is non-consensus. Use the WASM bundle for scoring only, and implement settlement per Sections 5.1.2-5.1.5 of cogcoin_whitepaper.md.

Signature

genesis_announcement.sig contains the Bitcoin message signature over the SHA-256 hash of genesis_announcement.json. The verifier checks that signature together with the package manifest, transaction data, and on-chain anchors.