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

@quantpartners/pca

v1.1.7

Published

Persistent Context Architecture CLI for AI-native development

Readme

PCA — Git for AI context

License Version Node Local-first No telemetry

Quick Start · What is PCA? · Commands · How it works · Git Sync · License


PCA — Git for AI context

PCA is a local-first CLI that keeps project context, decisions, and AI handoff notes close to your code. It solves context drift between Git changes and AI agents.

Builders using AI agents (Cursor, Claude, Codex, Gemini) lose project context between sessions. You repeat yourself. The agent forgets decisions. Prompts grow. PCA fixes that.

Install

npm install -g @quantpartners/pca

Requires Node.js >= 20.

Quick start

cd your-project
pca setup
pca init
pca bootstrap
pca context

pca setup configures mode and API key. pca init initializes project memory. pca bootstrap fills project context interactively. pca context generates the current project context, copies it to your clipboard, and saves .pca/last-context.md.

Commands

CORE

| Command | Description | | --- | --- | | pca init | Initialize project memory | | pca bootstrap | Fill project context interactively | | pca context | Generate project context and copy to clipboard | | pca commit "<msg>" | Record a context milestone | | pca staged | Manage staged context commits | | pca logs | List context history | | pca status | Show project and context state |

GIT SYNC (automatic)

Hooks run automatically on git commit, checkout, merge and rebase. No manual commands needed.

MAINTENANCE

| Command | Description | | --- | --- | | pca health | Check context file sizes | | pca doctor | Diagnose PCA setup | | pca forget | Deprecate obsolete context | | pca diff | Show context diff | | pca audit | Audit context history | | pca recovery | Restore a deprecated context commit | | pca sync | Sync context to vector store | | pca query "<query>" | Query project memory | | pca task "<task>" | Generate agent-ready task context | | pca setup | Configure mode and API key | | pca mcp | Start MCP server |

AUTH

| Command | Description | | --- | --- | | pca login | Sign in | | pca logout | Sign out | | pca whoami | Show active account | | pca config | Manage configuration |

How it works

  • Markdown files hold project memory and agent-facing context.
  • SQLite in .pca/pca.db stores context commits, staged items, branches, and status.
  • Git hooks stage context from commits and track branch, merge, and rebase events.
  • pca context builds a paste-ready Markdown snapshot for your AI agent.

Git sync

pca init installs hooks for commit, checkout, merge, and rewrite/rebase events. The hooks stage context automatically, switch branch-local context, and archive old branch context when confirmed. Use pca staged list, pca staged commit, pca staged drop <index>, or pca staged clear to manage staged context.

License

MIT