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

product-spec

v0.5.1

Published

product-spec CLI for installing product-management command assets into Claude Code and Codex projects

Readme

product-spec

CI Passing npm release node release License

The product management counterpart to spec-kit. product-spec brings product management disciplines to spec-driven development, following Amazon's Working Backwards methodology from domain context through current product truth.

While spec-kit handles engineering specifications, product-spec handles the product narrative: domain context, press releases, FAQs, durable narrative, roadmap, and current truth that define what you're building, why it matters, and what is actually true once engineering work is aligned.

Installation

Recommended: install globally from npm

npm install -g product-spec

Then inside any project:

product-spec add claude
product-spec add codex
product-spec add both
product-spec check both

Option 2: run directly without a global install

npx --yes --package product-spec product-spec add claude

Use the same pattern for other commands:

npx --yes --package product-spec product-spec check both

Option 3: install from GitHub source

This is the least recommended path, but it is useful when testing unpublished changes:

npm install -g github:ehud-am/product-spec

CLI Usage

Project integration commands:

product-spec add claude
product-spec add codex
product-spec add both
product-spec remove claude
product-spec remove codex
product-spec remove both
product-spec check both
product-spec doctor both
product-spec version
product-spec help

| Command | Purpose | |---------|---------| | product-spec add <target> | Add product-spec-managed assistant commands and shared templates to the current project | | product-spec remove <target> | Remove only product-spec-managed files for the selected target | | product-spec check [target] | Validate that managed integrations are present and healthy | | product-spec doctor [target] | Show richer diagnostics and recovery guidance | | product-spec version | Print the installed CLI version | | product-spec help | Show command help and examples |

Assistant Commands

After adding an integration, use the installed slash commands inside the assistant:

/product-spec-help [optional question]
/product-spec-domain ...
/product-spec-press ...
/product-spec-narrative ...
/product-spec-roadmap ...
/product-spec-faq
/product-spec-align

| Target | Command directory | Slash commands | |--------|-------------------|----------------| | Claude Code | .claude/commands/ | /product-spec-help, /product-spec-domain, /product-spec-press, /product-spec-faq, /product-spec-narrative, /product-spec-roadmap, /product-spec-align | | Codex | .Codex/commands/ | /product-spec-help, /product-spec-domain, /product-spec-press, /product-spec-faq, /product-spec-narrative, /product-spec-roadmap, /product-spec-align |

How It Works

product-spec creates a docs/product/ folder in your project that maintains a living view of the product across releases. Primary documents stay focused on the current state of thinking, while companion history documents preserve notable changes over time. Existing projects that still use product/ or .product/ are migrated toward docs/product/ during normal product-spec add refreshes when the move is safe.

Use /product-spec-help anytime when you want an overview or a focused explanation of one artifact. It explains the workflow but is not itself a workflow step.

Documents

| File | Purpose | |------|---------| | docs/product/domain.md | Industry context, target users, terminology, competitive landscape | | docs/product/press.md | Current press release and customer-facing promise | | docs/product/faq.md | Current external and internal FAQs that challenge the promise | | docs/product/narrative.md | Durable internal story: customer, tension, future state, and principles | | docs/product/roadmap.md | Forward-looking sequencing of bets, phases, and dependencies | | docs/product/current-truth.md | Maintained current-state product specification grounded by alignment | | docs/product/history/*.md | Companion history files for key product artifacts |

Workflow

/product-spec-domain  -->  /product-spec-press  -->  /product-spec-faq  -->  /product-spec-narrative  -->  /product-spec-roadmap
    (context)       (promise)         (challenge)              (story)                    (bets)
                                                                                                   |
                                                                                                   v
                                                                                    /speckit.specify  -->  /speckit.clarify  -->  /speckit.plan  -->  /speckit.tasks  -->  /speckit.implement
                                                                                         (scope)              (refine)              (design)             (break down)             (build)
                                                                                                   |
                                                                                                   v
                                                                                           /product-spec-align  -->  docs/product/current-truth.md
                                                                                                 (reconcile)                (current state)
  1. /product-spec-domain establishes the domain context: who the users are, what problem matters, and who the alternatives are.
  2. /product-spec-press writes a press release as if the next release has already shipped.
  3. /product-spec-faq challenges the press release with hard questions from customers and stakeholders.
  4. /product-spec-narrative turns the promise and challenge into a durable internal product story.
  5. /product-spec-roadmap sequences future bets and dependencies without replacing current truth.
  6. /speckit.specify creates the engineering feature specification for the next bet.
  7. /speckit.clarify, /speckit.plan, /speckit.tasks, and /speckit.implement refine that bet into an execution-ready plan and working implementation.
  8. /product-spec-align reconciles product docs with the evolving engineering scope and maintains docs/product/current-truth.md.

Key Concepts

Current Truth

current-truth.md is the maintained answer to "what is actually true in the product today?" It is updated by alignment work and should stay distinct from the future-facing roadmap.

Companion History

Primary product docs stay focused on the current state. Companion files under docs/product/history/ preserve important prior decisions, revisions, and reasoning.

Working Backwards

The methodology is Amazon's PR/FAQ approach:

  • start with the customer experience, not the technical solution
  • force hard questions early before committing engineering resources
  • treat the press release as a contract for value, clarity, and scope

Release and Publishing

GitHub Actions now handles:

  • CI validation on pushes and pull requests
  • packaging tagged releases
  • publishing the npm package when a v* tag is pushed
  • publishing through npm trusted publishing from GitHub Actions instead of a long-lived PAT/token secret

The publish workflow now uses npm trusted publishing from GitHub Actions via OIDC instead of a long-lived NPM_TOKEN or PAT-style publish credential. The workflow runs on Node 24 so the bundled npm satisfies trusted publishing requirements, requests id-token: write, and publishes with npm publish without writing token credentials into .npmrc.

For public releases published through trusted publishing, npm automatically generates provenance attestations. The npm package must have a trusted publisher configured for this repository and .github/workflows/publish.yml before release publishing will succeed.

Rename Notes

product-spec is now the canonical package name, CLI name, assistant command prefix, and project-local manifest path.

Requirements

  • Node.js and npm
  • Claude Code and/or Codex for assistant integration targets
  • spec-kit for the /speckit.specify through /speckit.implement portion of the workflow

Changelog

Project history lives in CHANGELOG.md.

License

MIT