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

promptarch

v1.1.0

Published

Generate and lint AI coding-agent context files (CLAUDE.md, AGENTS.md, Cursor rules) from your repo.

Readme

promptarch

Generate and lint AI coding-agent context files (CLAUDE.md, AGENTS.md, Cursor .mdc rules, GitHub Copilot instructions) straight from your repository.

Powered by the same deterministic linter and Context Pack exporters that run in the PromptArch web app and MCP server, bundled into the CLI, so there's nothing else to install.

  • lint is 100% offline and free: no account, no network. Great for CI.
  • init extracts your repo's context and generates every agent format in one shot (this one calls the PromptArch API and uses credits).

Requirements

  • Node.js ≥ 18
  • A PromptArch account + API key only for init (see Getting an API key). lint needs neither.

Quick start

Lint an existing config without installing anything:

npx promptarch lint CLAUDE.md

Or install globally:

npm install -g promptarch
promptarch lint CLAUDE.md AGENTS.md

Commands

promptarch lint <files...>

Deterministic, offline lint of agent context files. Prints findings and exits non-zero when any error is found (add --strict to also fail on warnings), so it drops straight into CI.

promptarch lint CLAUDE.md
promptarch lint CLAUDE.md AGENTS.md .cursor/rules/*.mdc
promptarch lint CLAUDE.md --strict

| Option | Description | |--------|-------------| | --strict | Treat warnings as failures too (not just errors) |

promptarch login

Store your API key (pk_…) in ~/.config/promptarch/config.json (written with 0600 permissions). Required before init.

promptarch login                  # paste the key when prompted
promptarch login --key pk_xxx     # non-interactive (CI)

| Option | Description | |--------|-------------| | --key <key> | Provide the key non-interactively (for CI) |

To point the CLI at a non-prod API (local dev / self-hosted), set the PROMPTARCH_API_URL env var.

promptarch init

Scan the current repository (stack manifest, build commands, directory tree, README, and any existing agent config), generate a canonical Context Pack via the API, and write every supported format (CLAUDE.md, AGENTS.md, Cursor .mdc, Copilot instructions).

Stack detection spans ecosystems, not just Node: package.json (JS/TS frameworks), Package.swift/.xcodeproj (Swift), pyproject.toml/requirements.txt (Python + FastAPI/Django/Flask), go.mod (Go), Cargo.toml (Rust), and Gemfile (Ruby/Rails). Commands are pulled from npm scripts, Makefile targets, and justfile recipes.

promptarch init --dry-run          # print the extracted payload, no network call
promptarch init                    # generate + write files into the current directory
promptarch init --out ./generated  # write to a specific directory

| Option | Description | |--------|-------------| | --dry-run | Print the extracted payload without calling the API (no key needed) | | --out <dir> | Output directory (default: current directory) | | --force | Overwrite existing files without prompting |

If init would overwrite existing files (e.g. a hand-maintained CLAUDE.md), it lists them and asks for confirmation first. In a non-interactive shell it aborts unless you pass --force. Use --out to write elsewhere.

init consumes credits. The first generation on a new account is free.

Run promptarch --help (or promptarch <command> --help) and promptarch --version at any time.

Getting an API key

  1. Sign in at promptarch.ai.
  2. Go to your Profile → API keys, create a key (an optional label helps you track it), and copy the pk_… value. It's shown once.
  3. promptarch login --key pk_… (or run promptarch login and paste it).

Keys are hashed at rest and can be revoked from the same page.

Configuration

Resolution order (first match wins):

| Setting | Env var | Config file | Default | |---------|---------|-------------|---------| | API key | PROMPTARCH_API_KEY | apiKey in ~/.config/promptarch/config.json | - | | API URL | PROMPTARCH_API_URL | apiUrl in config | https://promptarch.ai |

Env vars are handy in CI:

PROMPTARCH_API_KEY=pk_xxx promptarch init --out ./generated

Related

  • PromptArch - the web app (prompt builder + Context Studio)
  • promptarch-mcp - MCP server exposing lint / generate tools to agents over Streamable HTTP

Develop

npm install
npm run build      # tsup → dist/index.js
node dist/index.js lint ../CLAUDE.md

License

Proprietary. © PromptArch. All rights reserved. This CLI is provided for use with the PromptArch service; it is not open-source, and no rights to copy, modify, or redistribute the code are granted.