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

npm-axi

v0.1.1

Published

Search and inspect npm registry packages with token-efficient output — an AXI (Agent eXperience Interface).

Readme


npm-axi wraps the public npm registry in an agent-ergonomic CLI. It returns TOON output (~40% fewer tokens than JSON), minimal default schemas, pre-computed aggregates, and structured errors — so an agent can answer "what's the latest version of X", "is this package maintained", or "how many dependencies does it have" in a single call. Read-only, no authentication required.

Install

npm install -g npm-axi

Or run without installing:

npx -y npm-axi <command>

Usage

The examples below are snapshots of live npm registry output; versions, dates, counts, and download totals will drift as packages change.

search

$ npm-axi search "react state management" --limit 5
count: 5 of 585437 total
packages[5]{name,version,description}:
  unstated-next,1.1.0,200 bytes to never think about React state management libraries ever again
  @risingstack/react-easy-state,6.3.0,React state management with a minimal API. Made with ES6 Proxies.
  constate,4.0.0,Yet another React state management library that lets you work with local state and scale up to globa …
  ...
help[2]:
  Run `npm-axi view <name>` for details
  Run `npm-axi search "react state management" --limit 35` for more results

view

$ npm-axi view axios
package:
  name: axios
  version: 1.17.0
  license: MIT
  description: Promise based HTTP client for the browser and node.js
  dependencies: 4
  weeklyDownloads: 118010181
  homepage: "https://axios-http.com"
  repository: "https://github.com/axios/axios"
  published: 2026-06-03
  readme: First ~800 chars of the README...
    readmeChars: 54720
help[1]: Run `npm-axi view axios --full` to see complete README

When the registry includes README data, pass --full to print the complete README.

versions

$ npm-axi versions typescript --limit 4
latest: 6.0.3
count: 4 of 3760 total
versions[4]{version,published}:
  6.0.3,2026-04-16
  6.0.0-dev.20260416,2026-04-16
  ...

downloads

$ npm-axi downloads express
downloads:
  package: express
  lastWeek: 110707678
  lastMonth: 444383062

No arguments

Running npm-axi with no arguments prints the tool identity and command hints. Inside a project, it also lists the dependencies declared in ./package.json — live context with no network call.

Agent integration

npm-axi follows the AXI principle of offering an opt-in session integration first, and an on-demand skill second.

Session hooks (ambient context):

npm-axi setup hooks

Installs idempotent SessionStart hooks for Claude Code, Codex, and OpenCode so agents see npm-axi guidance at the start of each session.

Agent Skill (on-demand):

npx skills add SSBrouhard/npm-axi --skill npm-axi

You only need one of these — they complement each other when both are installed.

How it maps to the 10 AXI principles

| # | Principle | In npm-axi | | --- | --- | --- | | 1 | Token-efficient output | TOON on stdout via axi-sdk-js | | 2 | Minimal default schemas | search returns name, version, description | | 3 | Content truncation | README preview with readmeChars + --full | | 4 | Pre-computed aggregates | total counts, dependency count, weekly downloads | | 5 | Definitive empty states | 0 packages found for "<query>" | | 6 | Structured errors & exit codes | TOON errors; 0/1/2 exit codes; no prompts | | 7 | Ambient context | setup hooks + installable skill | | 8 | Content first | no-args lists the local project's dependencies | | 9 | Contextual disclosure | next-step help lines on lists | | 10 | Consistent help | npm-axi <command> --help |

Development

npm install
npm test          # vitest, fetch mocked against registry fixtures
npm run build     # tsc -> dist
npm run dev -- search react   # run from source

License

MIT