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

api-governance

v0.9.0

Published

API governance CLI — Spectral lint & HTML/JSON reports using WSO2-style rulesets (OWASP API Security, REST design, AI readiness)

Readme

API Governor (api-governance)

Lint OpenAPI specifications against enterprise rulesets and generate rich governance reports.

API Governor is a CLI tool and Node.js library that runs Spectral validation against built-in rulesets (OWASP Top 10, REST API Design Guidelines, AI Readiness) and produces scored, interactive HTML or JSON reports.

The bundled rules are WSO2 API governance rulesets—the same families of checks used around WSO2 API Manager and related tooling (REST design guidelines, AI readiness guidelines, and OWASP-aligned security rules), packaged here for standalone CLI and library use.

Documentation

Full documentation is in the docs/ folder:

| Document | Description | |---|---| | Getting Started | Installation and your first lint run | | CLI Reference | All commands, flags, and examples | | Rulesets | Built-in rulesets — OWASP, REST, AI Readiness | | Programmatic API | Using the library from Node.js | | Report Format | JSON report schema reference | | Configuration | Custom rulesets, auth tokens, functions |

Quick Start

npm install api-governance
# Lint and open an HTML report
api-governance lint openapi.yaml --ruleset owasp --report html --open

# Lint with a summary in the terminal
api-governance lint openapi.yaml --ruleset rest-api-readiness --pretty --summary

# Output a JSON report file
api-governance lint openapi.yaml --ruleset ai-readiness --report json --report-file report.json

Built-in Rulesets

| ID | Name | |---|---| | owasp | OWASP API Security Top 10 (2023) | | rest-api-readiness | REST API Design Guidelines | | ai-readiness | REST API AI Readiness Guidelines |

Official background on these rule families: see WSO2 and WSO2 API Manager documentation (governance / API quality sections).

Requirements

  • Node.js ≥ 18