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

@m-software-engineering/m-spec

v0.1.1

Published

Lightweight spec-driven development framework for brownfield AI agent workflows.

Readme

m-spec

m-spec is a TypeScript CLI that scaffolds and maintains a spec-driven workflow for brownfield repositories that use AI coding agents.

What it does

  • Initializes an m-spec/ workspace with specs, workflows, and project policy files.
  • Generates agent-specific wrappers and instruction files for Codex, Claude, or Copilot.
  • Updates managed files from saved configuration.
  • Validates generated assets and local setup.
  • Reconciles change-specific deltas back into source-of-truth specs.

Why this is aligned with Spec-Driven Development

  • Spec-first workflow: generated plan/spec/implement/optimize wrappers keep work anchored in m-spec/changes/... artifacts.
  • Strict TDD helpers: generated scripts now include run-red.sh (expects failing tests) and run-green.sh (expects passing tests).
  • Lightweight optimization loop: autoresearch templates include benchmark + checks + ratchet scripts so experiments can be kept/discarded consistently.
  • Agent-agnostic scaffolding: Codex skills, Claude agents, and Copilot agents/hooks are generated from the same workflow definitions.

Requirements

  • Node.js 22+
  • npm

Install globally from npm

npm i -g @m-software-engineering/m-spec

Install dependencies

npm install

Run locally

Use the development entrypoint:

npm run dev -- <command> [options]

Running without a command now opens an interactive command picker:

npm run dev

Common commands:

npm run dev -- init .
npm run dev -- update .
npm run dev -- doctor .
npm run dev -- reconcile <change-slug> .

Build the distributable CLI:

npm run build

After building, run the bundled binary:

node dist/cli.js <command>

Test and quality checks

Run tests:

npm test

Run type checks:

npm run typecheck

Clean generated artifacts:

npm run clean

Contributing best practices

  • Keep changes small and focused on one behavior.
  • Add or update tests for every behavior change.
  • Run npm test and npm run typecheck before committing.
  • Preserve generated file determinism and avoid hidden side effects.
  • Update docs when command behavior or generated outputs change.

Releases

  • Add a Changeset for any publishable change with npm run changeset.
  • Merges to main run CI and the release job in GitHub Actions.
  • If unreleased Changesets exist, the workflow opens or updates a release PR.
  • Merging that release PR publishes the package to npm using the NPM_TOKEN GitHub secret.