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

ctxbin

v1.1.1

Published

Minimal deterministic CLI to store/load context, agents, and skills via Redis hashes

Readme

ctxbin

Minimal, deterministic CLI to save and load context, agents, and skills in Upstash Redis hashes. It is designed for fast handoff between AI agents working on the same repo/branch, with branch-based context keys inferred inside git repositories.

Docs: https://superlucky84.github.io/ctxbin/

Core idea: ctxbin exists to make AI-agent handoffs reliable and repeatable.

⚠️ Prerequisite: ctxbin requires Upstash Redis for storage. Create a free database, then run npx ctxbin init to configure.

Agent workflow (core)

This is the most important usage. Let agents consistently save and load branch context.

Option 1: Zero-setup (simplest)

Just ask your AI agent directly:

"Run `npx ctxbin help`, read the output, then save the current context."

The agent will self-discover the usage guide and follow it.

Option 2: Add-on file

For consistent behavior across sessions, copy the add-on into your agent instruction file:

  • Add: agent add-on guide → copy the block into your project's agent instruction file (e.g. AGENT.md, CLAUDE.md, or any equivalent).
  • Then you can simply ask:
    • "Use npx ctxbin to save the current context."
    • "Use npx ctxbin to load the current context."

The add-on tells agents how to format context (summary, next steps, decisions) and how to use npx ctxbin ctx save/load correctly.

You can also ask agents to save/load skills with simple commands like --url or --dir. See Quick Start for examples.

Features

  • Branch-scoped ctx keys (auto-inferred from git repo + branch)
  • agent and skill storage for reusable prompts and workflows
  • skillpack: tar.gz + Base64 directory bundles (deterministic)
  • skillref: GitHub directory reference (default branch or pinned commit)
  • list command with type mapping (--value, --dir, --url)

Install

Recommended (no install):

npx ctxbin --version

Or add it to your toolchain:

pnpm add -g ctxbin

Upstash requirement

ctxbin stores data in Upstash Redis. You need an Upstash database and its REST URL/token.

  • Create a database at: https://upstash.com/
  • Use the REST URL and token as CTXBIN_STORE_URL / CTXBIN_STORE_TOKEN

Configure storage

Use environment variables (recommended):

export CTXBIN_STORE_URL="https://..."
export CTXBIN_STORE_TOKEN="..."

Or create ~/.ctxbin/config.json via interactive init:

npx ctxbin init

Quick usage

ctx (branch-scoped, key optional in git repos)

npx ctxbin ctx save --value "summary / next steps"
npx ctxbin ctx load
npx ctxbin ctx list
npx ctxbin ctx delete

When the key is omitted, ctxbin infers it only inside a git repository. See Key Inference for details.

Explicit key example (useful outside git repos; not recommended for normal use):

npx ctxbin ctx save my-project/main --value "summary / next steps"
npx ctxbin ctx load my-project/main
npx ctxbin ctx delete my-project/main

agent (string-only)

npx ctxbin agent save reviewer --value "# Agent role"
npx ctxbin agent load reviewer
npx ctxbin agent list
npx ctxbin agent delete reviewer

skill (string, skillpack, or skillref)

npx ctxbin skill save my-skill --value "# Skill markdown"
npx ctxbin skill load my-skill
npx ctxbin skill list
npx ctxbin skill delete my-skill

Skillpack (directory bundle):

npx ctxbin skill save fp-pack --dir ./skills/fp-pack
npx ctxbin skill load fp-pack --dir ./tmp/fp-pack

Skillref (GitHub directory reference):

# Track default branch
npx ctxbin skill save fp-pack \
  --url https://github.com/OWNER/REPO \
  --path skills/fp-pack

# Pin to a commit
npx ctxbin skill save fp-pack \
  --url https://github.com/OWNER/REPO \
  --ref <40-hex-commit-sha> \
  --path skills/fp-pack

skill load for skillpack/skillref requires --dir.

Built-in guidance

Print the bundled ctxbin usage guide:

npx ctxbin help

Development

pnpm install
pnpm build
pnpm test

License

MIT