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

@agentpedia/cli

v1.0.0

Published

CLI tool for submitting and managing AgentPedia listings. Add to your npm postpublish hook for automatic updates.

Readme

@agentpedia/cli

Command-line tool for submitting and managing your AgentPedia listings. Integrates with npm's publish lifecycle so your listing stays up to date automatically.

Install

npm install -g @agentpedia/cli

Or use as a dev dependency for the postpublish hook:

npm install --save-dev @agentpedia/cli

Quick Start

1. Register for an API key

agentpedia register --name my-tool

Save the returned key:

export AGENTPEDIA_API_KEY=ap_xxxxxxxxxxxx

2. Initialize your config

agentpedia init

This creates a .agentpedia.json file pre-filled from your package.json. Edit it with your tool details.

3. Submit your listing

agentpedia submit

4. Auto-submit on every npm publish

Add to your package.json:

{
  "scripts": {
    "postpublish": "agentpedia submit"
  }
}

Now every time you run npm publish, your AgentPedia listing updates automatically.

Configuration

The CLI reads configuration from two sources (in order):

  1. .agentpedia.json in your project root
  2. An agentpedia field in your package.json

.agentpedia.json example

{
  "slug": "my-tool",
  "name": "My Tool",
  "type": "tool",
  "category": "developer_tools",
  "short_description": "A tool that helps agents process data",
  "website": "https://mytool.dev",
  "documentation_url": "https://docs.mytool.dev",
  "capabilities": ["data-processing", "transformation"]
}

package.json example

{
  "name": "my-tool",
  "agentpedia": {
    "slug": "my-tool",
    "name": "My Tool",
    "type": "tool",
    "category": "developer_tools",
    "short_description": "A tool that helps agents process data",
    "capabilities": ["data-processing"]
  }
}

Commands

| Command | Description | |---------|-------------| | agentpedia init | Create .agentpedia.json config file | | agentpedia submit | Submit or update your listing | | agentpedia register --name X | Register for an API key | | agentpedia search --query X | Search the knowledge base | | agentpedia help | Show help |

CI/CD Integration

GitHub Actions

Add AGENTPEDIA_API_KEY to your repository secrets, then:

- name: Publish to npm
  run: npm publish
  env:
    AGENTPEDIA_API_KEY: ${{ secrets.AGENTPEDIA_API_KEY }}

The postpublish script handles the rest.

GitLab CI

publish:
  script:
    - npm publish
  variables:
    AGENTPEDIA_API_KEY: $AGENTPEDIA_API_KEY

Graceful Failures

The CLI is designed to never block your publish workflow. If AgentPedia is unreachable or the submission fails, it logs a warning and exits cleanly. Your npm publish always succeeds regardless.

License

MIT