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

@mnemonik-xyz/cli

v0.1.5

Published

Command-line interface for the Mnemonic Protocol. Thin wrapper around @mnemonik-xyz/sdk that adds Node-only persistence (~/.mnemonic/), interactive OAuth loopback, and TTY-aware output formatting.

Readme

@mnemonik-xyz/cli

Project site: mnemonik.xyz · Hosted MCP: https://mcp.mnemonik.xyz/mcp

mnemonic — command-line interface for the Mnemonic Protocol. A thin wrapper over @mnemonik-xyz/sdk that adds Node-only persistence under ~/.mnemonic/, an interactive PKCE loopback OAuth flow, and TTY-aware output formatting. Same OAuth + COSE substrate as the Cursor / VS Code / Claude.ai connectors and the webapp; the CLI just swaps the renderer.

Install

npm install -g @mnemonik-xyz/cli

Bun and Deno work too — Bun bun install -g @mnemonik-xyz/cli, Deno deno install -A -n mnemonic npm:@mnemonik-xyz/cli/bin/mnemonic.js. Requires Node ≥ 20 (or equivalent Bun / Deno).

Quick start

mnemonic init && mnemonic login && mnemonic sign "hello"

init creates ~/.mnemonic/identity.json (mode 0600). login opens your browser, completes the OAuth 2.1 + PKCE handshake against https://mcp.mnemonik.xyz, and persists the JWT to ~/.mnemonic/token.json (mode 0600). sign produces a verifiable attestation backed by the COSE_Sign1 envelope of your local keypair.

Commands

mnemonic init [--force]

Generate a fresh keypair at ~/.mnemonic/identity.json. Refuses to overwrite an existing identity unless --force is passed.

$ mnemonic init
identity created: /Users/you/.mnemonic/identity.json
pubkey: 6ZsT...3kQp
did:    did:sol:6ZsT...3kQp

mnemonic login [--token <jwt>] [--base-url <url>]

Two modes:

  • Interactive (default): binds a one-shot 127.0.0.1:0 loopback server, opens your browser at /oauth/authorize, awaits the callback, and exchanges the code for a JWT. PKCE state and redirect_uri are validated before any token request.
  • Headless (--token <jwt>): persist a pre-issued JWT. The token is parsed locally (alg=HS256, fresh exp, present sub) but not verified against the server.
$ mnemonic login
opening browser: https://mcp.mnemonik.xyz/oauth/authorize?...
login OK
sub: 6ZsT...3kQp
expires: 2026-04-29T18:32:11.000Z

mnemonic sign <content> [--tags <list>] [--base-url <url>]

Sign a memory. Content is read from the positional argument or — if absent and stdin is piped — from stdin. Tags are comma-separated.

$ mnemonic sign "hello world" --tags=demo,test
attestation_id: 01HX9F2KQ7...
signed_at:      2026-04-28T11:14:22.901Z
status:         signed
content_hash:   blake3:6c7f...

mnemonic recall <query> [--top-k <n>] [--tag <tag>] [--base-url <url>]

Semantic recall over your stored memories. Default --top-k is 5; --tag filters to a single tag.

$ mnemonic recall "hello" --top-k=3
2 hit(s) of 14:
  01HX9F2KQ7  sim=0.987  [demo,test]  hello world
  01HX9F0YBZ  sim=0.812  [demo]       hello again

mnemonic verify <attestation_id> [--base-url <url>]

Verify an attestation. Exit codes: 0 verified, 3 tampered, 1 not found.

$ mnemonic verify 01HX9F2KQ7...
status: verified
signer: 6ZsT...3kQp

mnemonic whoami [--with-count] [--base-url <url>]

Print the user's local identity and JWT — client-side, no server call by default (Decision 14). --with-count adds an optional recall(' ', topK=0) round-trip for a memory total.

$ mnemonic whoami
pubkey:       6ZsT...3kQp
did:          did:sol:6ZsT...3kQp
jwt sub:      6ZsT...3kQp
jwt issued:   2026-04-28T11:00:00.000Z
jwt expires:  2026-04-29T11:00:00.000Z
signer_match: yes

mnemonic prove [--challenge <hex>]

Sign a challenge with the local key — entirely offline. Defaults to a fresh 32-byte challenge if --challenge is omitted. Output can be verified offline with the printed pubkey + Ed25519 verify.

$ mnemonic prove --challenge=00112233
pubkey:    6ZsT...3kQp
did:       did:sol:6ZsT...3kQp
challenge: 00112233
signature: 7f3a...c411

mnemonic identity import [--ticket <uuid> | --file <path>] [--force] [--base-url <url>]

Import a keypair from either a webapp "Send to CLI" ticket (via /api/cli-bootstrap/redeem) or a local JSON file in the same shape as ~/.mnemonic/identity.json. --ticket and --file are mutually exclusive. Refuses to overwrite an existing identity unless --force.

$ mnemonic identity import --ticket 7c3f9b2a-...-...
identity imported: /Users/you/.mnemonic/identity.json
pubkey: 6ZsT...3kQp
did:    did:sol:6ZsT...3kQp

mnemonic identity export --file <path>

Write the current ~/.mnemonic/identity.json to <path> with file mode 0600 (Windows: ACL restricted to the current user via icacls). There is no clipboard option — clipboard leakage is a documented security concern.

$ mnemonic identity export --file /tmp/k.json
identity exported: /tmp/k.json
pubkey: 6ZsT...3kQp
mode:   0600 (file permissions restricted to current user)

Output flags

Top-level flags are accepted before the subcommand.

| Flag | Effect | | --- | --- | | --json | Emit machine-readable JSON to stdout; hints / progress to stderr. | | --quiet | Suppress non-essential stdout. Combine with --json for a single payload. | | --no-color | Force plain text. Implicit when stdout is not a TTY. |

mnemonic --json sign "hello"
mnemonic --quiet --json recall "demo"
mnemonic --no-color whoami

Exit codes

Per Decision 10. Tested in packages/cli/test/.

| Code | Meaning | | --- | --- | | 0 | Success. | | 1 | User error — bad input, missing identity, verify not_found. | | 2 | Server / network error — 5xx, connection refused, malformed response. | | 3 | Integrity failure — verify <id> returned tampered. | | 4 | Auth error — 401 / 403, expired JWT, OAuth state mismatch. |

Manual smoke checklist

Pre-release smoke flow lives in SMOKE.md. Run before publishing a new version.

License

Apache-2.0.