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

@pasajero_0/agent-stack

v0.1.0

Published

CLI that deploys a Claude Code harness (hooks, subagents, skills, guards) onto your repo and manages MCP servers

Readme

CI

agent-stack

CLI that deploys a Claude Code harness onto any repository and manages MCP servers. One command drops in a battle-tested .claude/ setup — deterministic guards, session/git context, a disciplined migration loop, and scoped subagents — specialized to your project.

Install

npx @pasajero_0/agent-stack init        # no install
# or
npm i -g @pasajero_0/agent-stack

Requires git, jq, and (for the verify hook) python3 on PATH for the deployed hooks to run.

What it deploys

agent-stack generate (or init) writes a .claude/ tree plus CLAUDE.md / CODEMAP.md, specialized to the detected project (package manager, lockfile, build outputs, default branch, forge):

.claude/
├── settings.json          # hook registration + permission allow-list
├── settings.local.json    # read-deny for build/generated noise
├── hooks/                 # 6 deterministic shell hooks (run outside the model)
│   ├── guard-bash.sh        # block `git push` + foreign package managers
│   ├── guard-file.sh        # block edits to generated files / lockfile; confirm .env
│   ├── session-start-context.sh
│   ├── stop-flag-reflect.sh
│   ├── post-edit-lint.sh    # self-disables if no linter is installed
│   └── post-edit-verify.sh  # post-apply diff check during migrations
├── agents/                # task-analyzer, code-reviewer, test-writer, pattern-scout
├── commands/              # /reflect, /review
├── skills/                # migration, mr-description, + reference docs
└── rules/                 # EMPTY by design — generate per-repo (see below)

The hooks are the core value: they enforce hard prohibitions at tool-call time and inject context, deterministically, regardless of the model.

Commands

| Command | Description | |---------|-------------| | agent-stack init | Wizard: detect environment → deploy harness → optionally install MCP servers | | agent-stack generate | Deploy the harness into the current repo | | agent-stack sync | detect + generate | | agent-stack detect | Report project context + whether Claude Code is installed | | agent-stack mcp install | Install MCP servers from the catalog | | agent-stack mcp list | List configured MCP servers |

After deploying

  1. Exclude the harness from git (it is personal) — add to .git/info/exclude:
    .claude/
    CLAUDE.md
    CODEMAP.md
  2. Generate rules.claude/rules/ ships empty on purpose: path-scoped rules must reflect your code, not another project's. Open claude in the repo and run the pattern-scout subagent; it drafts rules you review and keep.
  3. Smoke-test the guards — a git push or a foreign package-manager command should be blocked; a normal command should pass.

MCP server catalog

Defined in mcp/catalog.json, installed via claude mcp add:

| Server | Description | |--------|-------------| | GitHub | Issues, PRs, repos | | Fetch | Web content as markdown | | Memory | Persistent knowledge graph | | Sequential Thinking | Structured reasoning |

Architecture

agent-stack/
├── bin/cli.mjs            # executable shim → dist/index.js
├── src/
│   ├── cli.ts             # commander program
│   ├── commands/          # init, detect, generate, sync, mcp
│   ├── detect/            # project + harness-param detection
│   ├── claude/            # harness emitter (templates → .claude/)
│   ├── mcp/               # MCP catalog loader + installer
│   └── utils/             # shell helpers, logger
├── templates/claude/      # harness core (tokenized) — the source of truth
├── mcp/catalog.json       # MCP server catalog
└── tests/                 # vitest unit tests

templates/claude/ holds the harness with {{TOKEN}} placeholders; the emitter in src/claude/ substitutes values from the detector and writes the tree. This tool targets Claude Code only.

Development

pnpm install      # pnpm only — npm/yarn/bun are not supported
pnpm build
pnpm test
pnpm typecheck    # the static gate (no linter yet)

Conventions

Conventional Commits enforced by commitlint + husky (commit-msg). Default branch main; git push is manual. GitHub PRs (gh).

License

MIT