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

@builtbyberry/prymer-cli

v0.2.0

Published

The Prymer executing-hook helper: load context at session start and checkpoint at session stop, deterministically, from a scoped channel credential.

Readme

prymer — Prymer executing-hook helper

A small, dependency-free CLI for the executing-hook power mode. The web connectors install instructional hooks that nudge the model to call the Prymer MCP tools. This CLI instead runs the ritual itself, so the load step happens deterministically — even when the model forgets.

It is built on Node's standard library only (no npm dependencies).

Install

npm install -g @builtbyberry/prymer-cli

Authenticate

  1. In Prymer, open Settings → Connected tools and create a hook credential for the channel you want this machine to use. The token (swhk_…) is shown once.
  2. Store it:
prymer login --url https://your-prymer-host --token swhk_xxx

The token reaches exactly one channel and only the load + checkpoint verbs, so a leak is contained to that channel — never your whole account. On macOS it is kept in the login keychain; elsewhere in a ~/.prymer/*.json file with 0600 permissions. Use --profile <name> to keep tokens for several channels side by side.

Use it in hooks

prymer install-hooks --client codex   # writes .codex/hooks.json
prymer install-hooks --client claude  # writes .claude/settings.json

Both write a SessionStart hook that runs prymer inject. Codex and Claude Code both feed SessionStart stdout to the model as additional context, so the channel's context document loads automatically at the start of every session.

Commands

| Command | What it does | | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | | prymer login | Store a hook credential (verifies it before saving). | | prymer logout | Remove a stored credential. | | prymer whoami | Show the stored host + a masked token. | | prymer inject | Print the channel's context document (for SessionStart). Fails quiet so it never breaks a session; use --strict to surface errors. | | prymer checkpoint --title <t> --summary <s> | Append a checkpoint. Idempotent per session + state; only shares when the channel's capture mode is Auto. | | prymer install-hooks --client <codex\|claude> | Write the executing SessionStart hook for a client. |

Checkpointing

inject is fully deterministic — no model needed. A checkpoint, by contrast, needs a summary worth keeping, so it's a step the agent (or you) takes when there is something to record rather than a blind Stop hook:

prymer checkpoint --session "$SESSION_ID" \
  --title "Finished the billing fix" \
  --summary "Switched to Stripe; tests green."

The idempotency key is derived from the session id + title + summary, so re-running the same checkpoint for the same session is a no-op rather than a duplicate.

Test

cd cli/prymer && npm test