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

@mergd/ap

v0.3.1

Published

Agent-portable local secrets — bundles, show, ap run

Readme

ap

Agent-portable local secrets. Declare bundles of credentials in committed manifests, store secret values in gitignored vaults, and let agents check readiness with ap show <bundle> --check before calling external APIs.

Install

Requires Node 18+.

npm install -g @mergd/ap

From source:

git clone https://github.com/mergd/ap.git
cd ap
npm install
npm run build
npm link   # or: ln -sf "$(pwd)/bin/ap" ~/.local/bin/ap

Quick start

Agents: run ap guide first (YAML contract for show → run → set).

# One-time machine setup
ap init --global                    # all catalog bundles → ~/.config/ap/manifest.toml
# ap init --global cloudflare       # or pick bundles
# ap init --global openrouter       # merge OpenRouter bundle into existing manifest

# Per repo (optional — global fallback works without ap.toml)
ap init
eval "$(op signin)"
ap setup                            # SOPS + 1Password — safe to commit .ap/secrets.json
# edit ap.toml → bundles = ["namecheap", "cloudflare"]

# Set secrets (never paste in chat)
echo "$NC_API_KEY" | ap set NC_API_KEY --global
echo "$KEY" | ap set CF_GLOBAL_API_KEY --global

# Inspect secrets and check readiness
ap show --check

# Run commands with secrets injected
ap run -- curl ...

Install the agent skill (Cursor, Claude Code, Codex):

ap skill install              # ~/.agents/skills/ap/, ~/.claude/skills/ap/, ~/.cursor/skills/ap/
ap skill install --project    # same paths under current repo

How it works

Bundles group related env vars for a capability (e.g. namecheapNC_API_USER, NC_API_KEY, NC_CLIENT_IP).

| File | Purpose | |------|---------| | ~/.config/ap/manifest.toml | Global bundle definitions, public vars, ask text | | ~/.config/ap/secrets.json | Global secret values | | ap.toml | Which bundles this repo uses (optional) | | .ap/secrets.json | Project secrets — SOPS-encrypted after ap setup (safe to commit) | | .sops.yaml | SOPS encryption rules (committed after ap setup) | | .ap/config.toml | 1Password vault/item for age key (committed) |

Project secrets use SOPS + age with the private key in 1Password (same pattern as lockbox). Run ap setup once per repo; teammates need op access to decrypt.

Public bundle values surface immediately in ap show. Secrets are never shown — only status and set_with commands.

ap guide              # agent contract
ap help               # full command reference

Commands

ap guide [--human]               Agent contract (primary entrypoint for agents)
ap show [BUNDLE] [--global] [--check] [--validate]
ap set KEY [--global] [--from-env]
ap unset KEY [--global]
ap run [BUNDLE] -- <cmd...>
ap init [--global] [BUNDLE...]
ap setup
ap edit <secrets|manifest|toml> [--global]
ap skill install [--project]

Output is human-readable in a terminal and YAML when piped. Catalog bundles: cloudflare, namecheap, openrouter.

ap checks npm for updates at most once per day and prints upgrade notices to stderr. Set AP_NO_UPDATE_CHECK=1 to disable the check.

Development

npm install
npm run build
npm test
npm run check
npm run dev -- show

License

MIT