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

@diffbot/pi

v0.1.3

Published

Pi package for Diffbot — structured web knowledge tools for the Pi coding agent

Readme

@diffbot/pi

Pi package that adds Diffbot tools to the coding agent — Knowledge Graph (DQL), Extract, Web Search, Entities, Crawl, Ask, and Ontology.

All runtime calls go through @diffbot/typescript. This package does not use the Python SDK or CLI.

Install

# from npm
pi install npm:@diffbot/pi

# from git
pi install git:github.com/diffbot/diffbot-pi

# from a local checkout
pi install .

Try without installing:

pi -e .

If you also have diffbot-skills discoverable in Pi, disable those skills (or remove them from settings). Skill names collide on purpose; package skills have lower precedence than user/auto skills, so the Python-oriented ones would win otherwise.

Auth

Token resolution (same as @diffbot/typescript):

  1. DIFFBOT_API_TOKEN environment variable
  2. DIFFBOT_API_TOKEN=... in ~/.diffbot/credentials

Check status in Pi with /diffbot.

Tools

| Tool | Purpose | |------|---------| | diffbot_dql | Query / export KG with DQL (filter, format, exportspec) | | diffbot_dql_probe | Parallel hit counts for query variants | | diffbot_ontology | Browse / refresh KG ontology | | diffbot_extract | Extract structured content from a URL | | diffbot_web_search | Search Diffbot's web index (maxTokens) | | diffbot_entities | Named entities + sentiment (format: dql helper) | | diffbot_ask | Diffbot LLM ask / short chat | | diffbot_crawl | Start a Crawlbot job (optional watch) | | diffbot_crawl_jobs | List or inspect crawler jobs | | diffbot_crawl_delete | Delete a crawler job |

Skills

Workflow guidance for those tools (parity with diffbot-skills, but invoking TS-backed Pi tools). Invoke with /skill:name:

| Skill | Command | |-------|---------| | DQL / Knowledge Graph | /skill:diffbot-dql | | Extract | /skill:diffbot-extract | | Web Search | /skill:diffbot-web-search | | Entities (NLP) | /skill:diffbot-entities | | Crawl | /skill:diffbot-crawl | | Ask | /skill:diffbot-ask |

Develop

git clone https://github.com/diffbot/diffbot-pi.git
cd diffbot-pi
npm install
npm run typecheck

# load from this directory
pi -e .
# or install into user settings
pi install .

Depends on @diffbot/typescript from npm.

Package layout

Follows the Pi package conventions:

diffbot-pi/
├── extensions/     # TypeScript extensions (tools + /diffbot)
├── skills/         # Agent Skills (SKILL.md workflows)
├── package.json    # pi manifest + pi-package keyword
└── README.md

License

MIT