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

@estoc/cli

v0.3.0

Published

estoc — the command-line client for Estoc vaults. `estoc init` marks a folder as yours by adding a .estoc directory (git model: your files stay untouched, the machinery lives in .estoc) with one seed-sealed keystore; `estoc object …` hashes, signs and ver

Readme

@estoc/cli

estoc — the command-line client for Estoc vaults.

A vault is any folder you own with a .estoc directory inside. The model is git's: the folder holds your content, .estoc holds the machinery — one seed sealed under a passphrase (@estoc/keystore v3), from which every key is derived by name. estoc init never touches your files; it only adds .estoc. Commands discover the enclosing vault by walking upward from the working directory, exactly like git finds its repository. The layout is docs/vault-format.md; the app writes the same .estoc into the browser's private file system.

cd ~/my-vault
estoc init                   # prompts for a passphrase; seals a seed, mints the anchor key
estoc status                 # vault path, label, anchor, keys — no passphrase needed
estoc key list               # the same keys as JSON, for pipelines
estoc key new org/estoc      # derive another key by name (same seed, same passphrase)

Folder-objects (@estoc/folder-object) are signed with vault keys:

estoc object hash   posts/hello/object                       # root CID of the canonical tree
estoc object sign   posts/hello/object --key org/estoc        # prints the card
estoc object sign   posts/hello/object --key org/estoc --out posts/hello --zip hello.zip
                                                             # posts/hello/{object/, card.jws} + a zip of the same
estoc object verify posts/hello                              # or hello.zip, or a bare object dir

A signed object is {object/, card.jws}; anything else in the directory (a rendered page, the zip) is not part of it and is left alone.

sign defaults to the vault's anchor key. Every command that unlocks the seed first re-derives the anchor and compares it with config.json — a seed that does not derive the recorded anchor is the wrong seed for this vault.

Passphrases come from ESTOC_PASSPHRASE if set, else a no-echo prompt on a TTY, else one line of stdin per prompt (printf 'pw\npw\n' | estoc init).

Vault layout

my-vault/
  your files, untouched…
  .estoc/                # mode 0700
    config.json          # {"format":"estoc","version":1,"label":…,"identity":{"anchor":{key,did}},"mediation":null}
    keystore.json        # @estoc/keystore v3: sealed seed + a cache of key names, mode 0600

The CLI only ever writes these two singletons. Everything else the format allows (mediation, contacts, logs) is the app's business until the CLI grows an agent. Keystore writes go through a same-directory temp file plus rename, so a crash never leaves a truncated keystore behind.

Commands

estoc init [--label <label>]               create a vault here (refuses if .estoc exists)
estoc status                               show the enclosing vault and its keys
estoc key list                             list keys as JSON (no passphrase needed)
estoc key new <name>                       derive a key by name and record it
estoc object hash   [<dir>]                root CID
estoc object sign   [<dir>] [--key <name>] [--out <signedDir>] [--zip <file>]
estoc object verify [<signedDir | signed.zip | objectDir>] [--card card.jws]

--vault <dir> (or ESTOC_VAULT) points a command at a specific vault instead of searching upward.

License

Apache-2.0