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

@specmarket/cli

v0.0.6

Published

SpecMarket CLI - discover, validate, execute, and publish AI specs

Readme

@specmarket/cli

Command-line tool for discovering, validating, executing, and publishing AI specs on the SpecMarket platform.

Install

npm install -g @specmarket/cli

Requires Node.js >= 20.

Quick Start

# Create a new spec
specmarket init

# Validate it
specmarket validate ./my-spec

# Run it locally (executes the Ralph Loop)
specmarket run ./my-spec

# Or run a spec from the registry
specmarket run @user/docusign-replacement

Commands

Spec Lifecycle

| Command | Description | |---------|-------------| | specmarket init | Interactive scaffold — creates spec directory with spec.yaml, PROMPT.md, SPEC.md, SUCCESS_CRITERIA.md, and stdlib/ | | specmarket validate <path> | Validates spec structure, schema, infrastructure block, and cross-references | | specmarket run <path-or-id> | Executes a Ralph Loop against a local spec or registry spec |

Registry

| Command | Description | |---------|-------------| | specmarket search <query> | Search the registry with filters (no auth required) | | specmarket info <spec-id> | View detailed spec info — metrics, versions, forks, infrastructure | | specmarket publish <path> | Validate and publish a spec to the registry | | specmarket fork <spec-id> [path] | Fork a published spec locally, preserving lineage |

Auth

| Command | Description | |---------|-------------| | specmarket login | Browser-based device code auth via Clerk (--token for CI) | | specmarket logout | Clear stored credentials | | specmarket whoami | Display current auth status |

Reporting & Config

| Command | Description | |---------|-------------| | specmarket report <run-id> | Display a run report from local storage or the platform | | specmarket config get\|set\|list | Manage CLI config (telemetry, default model, etc.) | | specmarket config delete-telemetry | Delete all locally stored telemetry data |

specmarket run Flags

--max-loops <n>       Override max loop count (default: 50)
--max-budget <usd>    Override max spend (default: 2x spec estimate)
--no-telemetry        Disable telemetry for this run
--model <model>       Override the model specified in spec.yaml
--dry-run             Validate and preview — don't execute
--resume <run-id>     Resume a previous incomplete run
--output <path>       Custom output directory

specmarket search Filters

--tag <tag>               Filter by tag (repeatable)
--primary-stack <stack>   Filter by stack (nextjs-typescript, python-fastapi, etc.)
--replaces-saas <name>    Filter by SaaS replacement target
--min-success-rate <n>    Minimum success rate percentage
--max-cost <usd>          Maximum estimated cost
--max-monthly-cost <usd>  Maximum monthly infrastructure cost
--service-category <cat>  Filter by infra service category (repeatable)
--free-tier-only          Only specs deployable on free tiers

How the Ralph Loop Works

  1. Validates the spec (specmarket validate internally)
  2. Creates a sandboxed working directory under ~/.specmarket/runs/<run-id>/
  3. Copies spec files into the sandbox
  4. Loops: feeds PROMPT.md to claude --print, captures tokens/duration/diffs per iteration
  5. Terminates on: success (all criteria met), stall (3 loops with no meaningful diff), failure (10 loops stuck on same test), or budget exceeded
  6. Generates run-report.json with full metadata

Telemetry

Opt-in only. When authenticated and opted in, run metadata (tokens, cost, pass/fail, loop count) is submitted to the platform. No source code is ever transmitted.

specmarket config set telemetry true   # opt in
specmarket config set telemetry false  # opt out
specmarket config delete-telemetry     # delete stored data

Exit Codes

| Code | Meaning | |------|---------| | 0 | Success | | 1 | Validation error | | 2 | Runtime error | | 3 | Budget exceeded | | 4 | Network error | | 5 | Auth error |

Config & Credentials

  • Config: ~/.specmarket/config.json
  • Credentials: ~/.specmarket/credentials.json
  • Run data: ~/.specmarket/runs/

Development

# From monorepo root
pnpm install

# Build
pnpm --filter @specmarket/cli build

# Run tests
pnpm --filter @specmarket/cli test

# Watch mode
pnpm --filter @specmarket/cli dev

License

MIT