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

agenticscore

v1.0.1

Published

Score any API's readiness for AI agent consumption. Upload an OpenAPI spec, get a 0-100 Agentic Readiness score with fix recommendations.

Readme

AgenticScore

Score any API's readiness for AI agent consumption.

AI agents (Claude, GPT, custom agents) are consuming APIs at scale — but most APIs weren't designed for machine callers. AgenticScore scores your OpenAPI spec from 0-100 across 6 dimensions that determine how well AI agents can use your API without human intervention.

Quick Start

npx agenticscore score your-api.yaml

Output:

  🟠 Agent Readiness: 47/100 (Grade D)
  My API v2.1.0
  23 operations, 15 schemas

  Categories:
    examples     ████░░░░░░ 40%
    semantics    █████░░░░░ 50%
    intent       ██████░░░░ 60%
    errors       ███░░░░░░░ 30%
    parameters   █████░░░░░ 55%
    pagination   ██░░░░░░░░ 20%

  Top Issues:
    • 18/23 operations lack examples
    • 12/23 operations don't document error responses
    • 3 list operations lack pagination parameters

Install

# Global install
npm install -g agenticscore

# Or run directly
npx agenticscore score api.yaml

Scoring Categories

| Category | Weight | What It Measures | |----------|--------|-----------------| | Examples | 25% | Do operations include request/response examples for agents to learn from? | | Semantics | 33% | Are descriptions clear enough for agents to understand intent? | | Intent | 17% | Do operationIds clearly express what each endpoint does? | | Errors | 15% | Are failure modes documented so agents can handle them? | | Parameters | 8% | Are query/path parameters described? | | Pagination | 7% | Can agents iterate list endpoints? |

CI/CD Integration

Fail your build if agent readiness drops below a threshold:

agenticscore score api.yaml --min-score 70

Exit code 1 if score is below the threshold.

GitHub Actions

- name: Check API Agent Readiness
  run: npx agenticscore score ./openapi.yaml --min-score 70

Output Formats

# Pretty terminal output (default)
agenticscore score api.yaml

# JSON (for programmatic use)
agenticscore score api.yaml --format json

# Markdown (for PRs/docs)
agenticscore score api.yaml --format markdown

Why This Matters

AI agents need APIs that are:

  1. Self-documenting — Agents can't read your wiki. They need descriptions in the spec.
  2. Example-rich — Agents learn request/response shapes from examples, not guesswork.
  3. Predictable in failure — RFC 9457 Problem Detail lets agents parse and retry intelligently.
  4. Navigable — Pagination, filtering, and sorting must be documented for agents to iterate data.
  5. Intent-clearlistActiveUsers tells an agent what it does. get_1 does not.

The 5 Fixes That Move Any API from D to A

  1. Add request/response examples to every operation
  2. Write 2-sentence descriptions (what it does + when to use it)
  3. Document error responses with RFC 9457 Problem Detail
  4. Use descriptive operationIds (listUsers, not get_1)
  5. Document pagination parameters on list endpoints

Programmatic Usage

import { scoreSpec } from "agenticscore";
import { readFileSync } from "fs";

const spec = readFileSync("api.yaml", "utf-8");
const report = scoreSpec(spec);

console.log(report.overallScore); // 0-100
console.log(report.grade);        // A, B, C, D, F
console.log(report.topFindings);  // Actionable fix list

Custom Rules (Coming Soon)

import { scoreSpec } from "agenticscore";
import { rules } from "agenticscore/rules";

// Add your own rules
const customRules = [
  ...rules,
  {
    id: "my-rule",
    name: "Custom Check",
    category: "semantics",
    weight: 5,
    description: "My organization's requirement",
    evaluate: (spec) => ({ score: 1, findings: [] }),
  },
];

License

MIT