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

runtrim

v0.1.34

Published

The control layer for AI coding agents.

Readme

RunTrim

RunTrim is the control layer for AI coding agents.

It gives Claude, Codex, Cursor, ChatGPT, and other agents project memory, scoped contracts, MCP guidance, approval flow, and finish verification before changes are accepted.

Website: https://www.runtrim.com

Install

npm install -g runtrim

Quickstart

npm install -g runtrim
cd your-project
runtrim start
runtrim doctor
runtrim agent "Fix the homepage copy" --copy
runtrim finish

Primary flow

  1. runtrim start analyzes the project and prepares local RunTrim memory and instructions.
  2. runtrim agent "task" --copy creates a guarded run and handoff prompt for your coding agent.
  3. Agent completes the task inside contract scope.
  4. runtrim finish verifies scope and sensitive-file safety with a clear verdict: PASS, WARN, or BLOCKED.

If scope needs to expand safely:

runtrim approve "Allow <path or scope> for this run only"

MCP (optional)

runtrim mcp instructions
runtrim mcp config --print
runtrim mcp start

MCP lets compatible agents use RunTrim tools like contract creation, path checks, approval suggestions, and finish guidance. RunTrim does not silently modify global MCP config files. Use runtrim mcp instructions and runtrim mcp config --print to inspect snippets, and runtrim doctor to check readiness.

In the VS Code/Cursor extension, use Connect agent for a guided setup flow (Cursor/Cursor Studio, Claude Desktop, Claude Code, Generic MCP). MCP config is ready means config generation succeeded locally; it does not guarantee the external agent has loaded it yet.

Local-first trust model

  • Free CLI runs locally.
  • Source code stays local by default.
  • RunTrim does not read env file contents.
  • Ignored .env.local is warned and reported, not read.
  • Sensitive tracked/changed or unignored sensitive files still block finish.

Plans and sync

  • Free: local control flow and local history.
  • Pro+: cloud sync and hosted dashboard history.

Restore and rewind (local)

runtrim restore last --preview
runtrim restore last --apply

Restore points are local and source-safe. Apply happens locally through the CLI.

CI merge gate (GitHub Action v1)

RunTrim can run as a CLI-based PR check:

  1. Add .github/workflows/runtrim.yml.example to your repo as a workflow.
  2. Run runtrim ci check --strict on pull requests.
  3. Set branch protection to require the RunTrim check.

runtrim ci check returns PASS, WARN, or BLOCKED.

  • BLOCKED exits non-zero and can prevent merge.
  • WARN exits zero by default, or non-zero in --strict mode.

GitHub App and team policy sync are coming later.

Core commands

runtrim start
runtrim doctor
runtrim agent "Your task" --copy
runtrim finish
runtrim approve "Allow <scope> for this run only"
runtrim status
runtrim mcp instructions
runtrim ci check
runtrim restore last --preview

Legacy bridge compatibility (still supported):

runtrim agent "Your task" --copy