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

agent-compatibility

v0.1.7

Published

CLI for scoring how compatible a codebase is with autonomous agents.

Readme

Agent Compatibility CLI

Measure how compatible a codebase is with autonomous agents.

The CLI scans a local repository with deterministic file signals, estimates a 1-100 compatibility score, breaks it down by pillar, and lists suggested next steps (heuristic, not a quality verdict).

It now separates:

  • a base compatibility score from the vendor-neutral repo rubric
  • a separate accelerator layer for committed agent tooling such as .cursor, .claude, and curated MCP alignment

What it scores

  • Style & Validation
  • Build & Tasks
  • Testing
  • Documentation
  • Dev Environment
  • Code Quality
  • Observability
  • Security & Governance

Each rule returns pass, partial, fail, or not_applicable. Partial rules get half credit. not_applicable rules are removed from the denominator.

Coverage reporting is weighted lightly and ranked lower in “top fixes” than security, supply-chain, and CI fundamentals. Tests and runnable suites still matter; line coverage is treated as an optional visibility signal, not a core gate.

Dependency locking treats any tracked file whose basename matches the curated list in src/config/lockfileNames.ts as a lock/pin signal (npm, pnpm, Yarn, Bun, Deno, Python stacks, Rust, Go, Ruby, PHP, .NET, Swift, Dart, Haskell, Nix, Terraform, Helm, Bazel, Conan, DVC, Spack, Homebrew bundle, and others — 50+ basenames, normalized case-insensitively).

Agent accelerators

The accelerator layer is reported separately. It does not replace or inflate the main compatibility rubric.

Current bonus signals include:

  • AGENTS.md
  • .cursor/rules, .cursor/skills, .cursor/agents
  • .cursor/mcp.json
  • .claude/agents, .claude/commands
  • a curated dependency-to-MCP match for a few obvious cases such as database or browser tooling

Missing accelerator signals are treated as missed opportunities, not as core compatibility failures.

The Claude-specific accelerator is skipped entirely (no score impact, not listed) unless the repo already has files under .claude/.

Install

npm install

Build

npm run build

Usage

npx -y agent-compatibility@latest

By default, running the package with no arguments scans the current directory. The default output is an Ink-powered terminal dashboard built with React.

npx -y agent-compatibility@latest /path/to/repo

You can still use the explicit scan subcommand if you prefer:

npx -y agent-compatibility@latest scan /path/to/repo

Render the classic plain-text report:

npx -y agent-compatibility@latest /path/to/repo --text

Render an agent-optimized Markdown report:

npx -y agent-compatibility@latest /path/to/repo --md

Print JSON instead of the terminal report:

npx -y agent-compatibility@latest /path/to/repo --json

Show CLI help:

npx -y agent-compatibility@latest --help

Config

You can override ignored paths or individual rule weights with a JSON config file:

{
  "ignoredPaths": ["generated", "vendor/tmp"],
  "weights": {
    "readmePresent": 1,
    "ciWorkflowPresent": 5
  }
}

Run with:

npx -y agent-compatibility@latest /path/to/repo --config ./agent-compatibility.config.json

Weight overrides are keyed by check id, not by pillar name. The same mechanism also works for accelerator ids like cursorMcpConfigured.

Development

Run the test suite:

npm test