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

@sumrco/cli

v0.4.5

Published

Keep developers and AI tools aligned with repeatable project setup, API contracts, team knowledge, and delivery workflows.

Readme


✨ Why the SUMR CLI?

Store shared setup beside the code it affects. Developers and AI tools use the same versioned files and repeatable commands.

Use it to:

  • create and migrate a project's sumr.yaml configuration;
  • generate and validate API contract artifacts with Kontract;
  • sync Playbook Documents into supported AI Channels;
  • track plans, evidence, reviews, and next actions with Mission.

🚀 Install

The CLI requires Bun 1.1 or later.

bun add -g @sumrco/cli

Confirm the installation and check local requirements:

sumr --help
sumr doctor

⚡ Quick start

Run these commands from your project directory:

# Create sumr.yaml for this project
sumr init

# Check local requirements
sumr doctor

# Explore every command and module
sumr --help

Sign in with sumr login only when a workflow needs SUMR account access.

To inspect a command before it changes files, add --help:

sumr playbook sync --help
sumr kontract generate --help
sumr mission start --help

🧭 Commands

| Command | Purpose | | --- | --- | | sumr login | Sign in to SUMR. | | sumr logout | Sign out of SUMR. | | sumr whoami | Show the currently signed-in user. | | sumr account | Manage the account used by SUMR API requests. | | sumr init | Create a sumr.yaml config for the current project. | | sumr migrate | Apply pending sumr.yaml migrations. | | sumr doctor | Check runtime and tool requirements. | | sumr kontract | Generate and validate API contract artifacts. | | sumr playbook | Sync Playbook Documents into AI tools. | | sumr mission | Track AI-assisted work state and next actions. |

Run sumr <command> --help for usage, options, and examples.

🧩 Modules

Kontract

Generate multiple contract artifacts from API and async API specifications configured in sumr.yaml.

# Generate configured artifacts
sumr kontract generate

# Validate configured specifications
sumr kontract validate

# Activate Kontract guidance for this workspace
sumr kontract init

Playbook

Turn Playbook Documents into instructions and resources for supported AI Channels: Claude, Codex, Cursor, GitHub Copilot, Gemini, and OpenCode.

# Configure Playbook for this project
sumr playbook config

# Validate Documents without writing generated files
sumr playbook validate

# Sync configured AI Channels
sumr playbook sync

Mission

Keep AI-assisted work inspectable with local plans, execution state, evidence, reviews, and explicit next actions.

# Configure Mission for this repository
sumr mission init

# Start or resume work from an issue
sumr mission start <issue-key>

# Show current state and the next action
sumr mission status <issue-key>

Mission records work locally. External writes require explicit commands and gates. Run sumr mission --help to inspect the complete workflow.

📝 Project config

SUMR tools share a versioned sumr.yaml at the project root. Start with:

sumr init

Each module then adds or reads only the configuration it owns. Commit sumr.yaml when your team should share the same setup.

🤖 AI tool resources

The npm package includes public Playbook resources for the shipped modules. Playbook uses these resources when generating guidance for configured AI Channels, so the installed CLI and its AI instructions stay aligned.

ESLint integrations

Install the CLI in a project as a development dependency to use SUMR-owned ESLint integrations. Kontract exposes its composable plugin without choosing the application's parser or ESLint configuration:

import { kontractPlugin } from '@sumrco/cli/eslint';

See the packaged Kontract resources for flat-config wiring and rule options.

Help and links

  • Run sumr --help or sumr <command> --help for command documentation.
  • Report bugs and request features in the SUMR CLI repository.
  • View releases on npm.