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

@askills/openapi-explorer-cli

v0.0.5

Published

CLI for progressive exploration of OpenAPI/Swagger API documentation

Readme

OpenAPI Explorer CLI

CLI tool for progressive exploration of OpenAPI/Swagger API documentation. Load a spec from URL or local file and inspect endpoints, schemas, tags — all in one command, no state, no server.

Part of the admin-skills monorepo.

Quick Start

Requires Node.js >= 22.18 (TypeScript is run natively via Node's built-in type-stripping — no compiler or loader needed).

# run without installing
npx @askills/openapi-explorer-cli info https://petstore.swagger.io/v2/swagger.json

# or install globally
npm install -g @askills/openapi-explorer-cli
openapi-explorer info https://petstore.swagger.io/v2/swagger.json

Commands

| Command | Description | | ----------------------------------------------------- | -------------------------------------------------------- | | info <source> | API overview: title, version, endpoint/schema/tag counts | | tags <source> | List tag groups with endpoint counts | | paths <source> [--tag <t>] [--limit N] [--offset N] | List endpoints, filtered by tag, with pagination | | endpoint <source> <path> <method> [--full] | Endpoint detail. --full resolves all $ref | | schemas <source> [--limit N] [--offset N] | List component schemas with pagination | | schema <source> <schema_name> | Schema detail with properties, types, constraints | | search <source> <query> | Full-text search across endpoints, schemas, properties |

<source> is a URL (https://...) or local file path — auto-detected.

Progressive Exploration Workflow

1. info <source>               → overview of the API
2. tags <source>                → see available groups
3. paths <source> --tag users   → browse endpoints in a group
4. endpoint <source> <path> <method> --full  → drill into endpoint
5. schemas <source>             → see available data models
6. schema <source> <name>       → inspect a model
7. search <source> <query>      → find anything across the spec

Examples

node src/main.ts info https://petstore.swagger.io/v2/swagger.json
node src/main.ts tags ./spec.json
node src/main.ts paths ./spec.json --tag pets --limit 10
node src/main.ts schemas ./spec.json --limit 5
node src/main.ts schema ./spec.json Config
node src/main.ts endpoint ./spec.json /pets/{petId} get --full
node src/main.ts search ./spec.json "payment"

Development

Requires Node.js 22+ (native TypeScript). No build step needed.

pnpm install
pnpm test
pnpm start info <source>

The source is TypeScript at src/, organized by module:

src/
├── main.ts                  # Entry point
├── types.ts                 # Shared types
├── cli/args.ts              # Argument parsing
├── cli/dispatch.ts          # Command routing
├── commands/                # One file per command
├── core/loader.ts           # Spec loading (URL/file)
├── core/queries.ts          # Query functions
├── core/resolve.ts          # $ref resolution
└── formatters/              # Schema & endpoint formatting

Compatibility

  • OpenAPI v3.x, Swagger v2
  • JSON format only (YAML not supported)
  • Remote URLs and local file paths
  • Node.js 22+ (native TypeScript support required)

License

MIT