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

constitution-cli

v0.17.6

Published

The constitution governance engine: scaffold, audit, firewall-gate, compile, render, and track AI-native product development

Downloads

198

Readme

constitution-cli

The framework's engine and installer. constitution init scaffolds the framework into a product repo — package-managed distribution per ADR-0001; the files it writes are read-only build artifacts, not hand-vendored copies. Beyond init, the binary is the deterministic governance engine: audit, firewall/lock, compile, render/tones, feature/board, doctor, proposals/ratify — run constitution --help, and see ../docs/quickstart.md for the workflow. Engine code lives in src/engine/ (see AGENTS.md for its statutes, including determinism and the failing-first test rule); tests in test/ run via npm test. Engineering conventions for this package's own code are in AGENTS.md, not here.

Status

Published to the public npm registry as constitution-cli (repo: chinmaygit/constitution_project). No token needed to install — GitHub Packages required one even for public packages (a platform limitation), which is why this moved to npmjs.org.

Usage

npm install --save-dev constitution-cli
npx constitution init

constitution with no command, --help, or an unrecognized command prints usage and does not launch the interactive scaffold — only init does. --version prints the installed version.

Building from source (this repo)

cd cli/
npm install
npm run build        # vendors skills/, templates/, process/ into cli/, then compiles

npm run build runs scripts/vendor.js first (via prebuild) — it copies skills/, templates/, process/ from the framework repo root into cli/, since a published package can only contain files inside cli/ itself, not sibling directories. The vendored copies are gitignored build artifacts, same as dist/ — never hand-edited.

Then, from the target product repo (the CLI reads process.cwd()):

node <path-to-this-framework-repo>/cli/dist/index.js init

It prompts for a project name, a ratifier name, and target agents (Cursor / Claude / Antigravity / Copilot), then writes CONSTITUTION.md (skipped if one already exists, generated from templates/constitution.md — never hand-written inline, so it can't drift from the template) and AGENTS.md (safe-appends a governance-map block from templates/governance-map.md if one isn't there yet), and per-agent skill copies: .claude/skills/, .agents/skills/, .cursor/rules/.

There is no distinct "upgrade" mode yet — re-running init re-prompts and overwrites the skill copies with the current source. That's a known gap, not a hidden feature.

Known gap: init always writes a fresh CONSTITUTION.md/AGENTS.md at the target root — it doesn't yet detect an existing constitution living somewhere else (e.g. decisions/CONSTITUTION.md) or a governance map already living inside a CLAUDE.md instead of AGENTS.md. Running init against a repo shaped that way produces confusing duplicate stub files; check for an existing constitution before running it, and clean up manually if it writes the wrong thing.

What this is not

Not how you, the operator working across many repos on one machine, get live access to the framework's own skills — that's skills/sync-operator, which symlinks instead of copying because you're working directly against this repo's source. This CLI is for everyone else who needs the framework in a repo: other contributors, CI, any machine that isn't yours.