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

@mnemoscope/cli

v0.2.0

Published

Mnemoscope command-line entrypoints, including the Claude Code PostToolUse hook that auto-journals Write/Edit/MultiEdit operations.

Readme

@mnemoscope/cli

Command-line entrypoints for Mnemoscope. Install once, get six binaries that bootstrap a vault, journal every agent write, verify the journal cryptographically, encrypt-and-restore the per-vault key off-vault, and anchor each entry to a Bitcoin-backed OpenTimestamps proof.

100% local. No cloud. Apache-2.0.

Install

npm install -g @mnemoscope/cli

The following binaries land on your PATH:

| Binary | Purpose | |---|---| | mnemoscope-init | Bootstrap a vault (<vault>/.mnemoscope/ + per-vault Ed25519 keypair, mode 0600) | | mnemoscope-record-hook | Claude Code PostToolUse hook that auto-journals every Write/Edit/MultiEdit | | mnemoscope-verify | Replay the journal and exit non-zero on any tampered / out-of-chain / foreign-key entry | | mnemoscope-backup-key | Encrypt the per-vault private key with a passphrase (scrypt + AES-256-GCM) and write a JSON envelope off-vault | | mnemoscope-restore-key | Decrypt a backup back into the vault | | mnemoscope-timestamp | Anchor each journal entry's signature to a public OpenTimestamps calendar |

Quickstart

# Bootstrap
mnemoscope-init /path/to/vault

# Wire the auto-journal hook (in ~/.claude/settings.json)
{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Write|Edit|MultiEdit",
        "hooks": [{ "type": "command", "command": "mnemoscope-record-hook" }]
      }
    ]
  }
}

# Verify
mnemoscope-verify /path/to/vault
# ok    2026-04-26T19:42:13.001Z  write  /vault/notes/foo.md
# 1 entries; 1 valid; 0 invalid

Backup & restore the per-vault key

If you lose <vault>/.mnemoscope/keys/ed25519.key, the journal becomes unverifiable. The backup CLIs encrypt the key with a passphrase and let you restore it later:

mnemoscope-backup-key /path/to/vault /off-vault/backup.enc.json
# … prompts for a passphrase, writes chmod 0600 …

mnemoscope-restore-key /path/to/vault /off-vault/backup.enc.json
# … prompts for the same passphrase, writes the key back into the vault …

Algorithm: scrypt (N=32768, r=8, p=1) + AES-256-GCM, self-describing JSON envelope, no external dependencies. Lose the passphrase and the backup is unrecoverable. Full threat model in docs/key-escrow.md.

Anchor the journal in time with OpenTimestamps

The signed hash chain proves order. To prove absolute time and stay safe against retroactive rewrites if the per-vault key is ever compromised, anchor each entry's signature to a Bitcoin-backed public OpenTimestamps calendar:

mnemoscope-timestamp /path/to/vault
# … POSTs SHA-256(sig) per entry to the calendar, writes .ots proofs
# under <vault>/.mnemoscope/timestamps/. Idempotent.

Pending proofs are upgraded to fully self-verifying Bitcoin proofs with the upstream opentimestamps-client ots upgrade / ots verify CLIs — that part is intentionally not reimplemented. Full flow in docs/timestamping.md.

Hook safety properties

mnemoscope-record-hook never blocks the tool call. Any internal error (missing payload field, unreadable file, etc.) is caught, logged to stderr, and the process exits 0. The vault root is resolved via MNEMOSCOPE_VAULT_PATH or by walking up to the closest .mnemoscope/ directory.

Set MNEMOSCOPE_HOOK_VERBOSE=1 to log every recorded op to stderr (visible in Claude Code's hook logs).

Repo + docs

  • Source, issues, releases: https://github.com/toonight/Mnemoscope
  • Hook setup: https://github.com/toonight/Mnemoscope/blob/main/docs/claude-code-hook.md

License

Apache-2.0.