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

@glorychain/cli

v0.1.2

Published

Glory Chain CLI

Readme

glorychain CLI

Full chain lifecycle management from your terminal. No server required.

npm install -g glorychain

Quickstart

# 1. Generate a keypair (store the private key securely)
glorychain keygen

# 2. Create a chain
glorychain create \
  --key $PRIVATE_KEY \
  --pubkey $PUBLIC_KEY \
  --content "My Organisation Board Decisions" \
  --purpose "governance"

# 3. Append your first real block
glorychain append \
  --chain <chainId> \
  --key $PRIVATE_KEY \
  --pubkey $PUBLIC_KEY \
  --content "Board meeting 2026-03-22: approved new budget. Motion: Jane Smith."

# 4. Verify the whole chain
glorychain verify --chain <chainId>

Commands

keygen

Generate an Ed25519 keypair.

glorychain keygen

Output: publicKey and privateKey (base64url). Store your private key securely — it cannot be recovered.


create

Create a new chain.

glorychain create \
  --key <privateKey> \
  --pubkey <publicKey> \
  --content "Genesis block content" \
  [--purpose "governance"] \
  [--creator "[email protected]"] \
  [--dir ./chains]

append

Append a block to an existing chain.

glorychain append \
  --chain <chainId> \
  --key <privateKey> \
  --pubkey <publicKey> \
  --content "Block content" \
  [--dir ./chains]

verify

Verify the integrity of a chain.

glorychain verify --chain <chainId> [--dir ./chains]

Checks: hash continuity, signatures, block sequence, timestamp validity, schema conformance.


inspect

Display the contents of a specific block.

glorychain inspect --chain <chainId> --block <n> [--dir ./chains] [--json]

--block is required. Use 0 for the genesis block.


fork

Fork a chain from a given block.

glorychain fork \
  --chain <chainId> \
  --block <n> \
  --key <newPrivateKey> \
  --pubkey <newPublicKey> \
  --content "Fork genesis content" \
  [--purpose fork] \
  [--dir ./chains]

Forking preserves the original chain intact. The new chain carries provenance — it knows where it came from. Use it when a signing key is compromised or a governance change requires a new signer.


migrate

Migrate a chain from one directory to another.

glorychain migrate \
  --chain <chainId> \
  --from ./chains \
  --to ./archive

feed

Generate an Atom 1.0 feed of a chain.

glorychain feed --chain <chainId> [--dir ./chains] [--base-url <url>]

export

Export a chain to a JSON file.

glorychain export --chain <chainId> [--out ./export.json] [--dir ./chains]

init

Initialise a directory for use with glorychain.

glorychain init \
  [--dir chains] \
  [--preset <preset>] \
  [--github] \
  [--content "Genesis content"] \
  [--key <key>] \
  [--pubkey <pubkey>]

With --preset: populates CHAIN_CHARTER.md with a ready-to-use charter for a specific chain type. Available presets: governance, board-decisions, audit-log, policy-register, membership-register.

With --github: scaffolds .github/workflows/chain-genesis.yml and chain-append.yml. Requires CHAIN_PRIVATE_KEY and CHAIN_PUBLIC_KEY repo secrets.

With --content: also creates the genesis block immediately.


template

Show usage templates.

glorychain template

Full reference

See docs/reference/cli-reference.md for the complete flag reference for every command.