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

@caphub/cli

v0.1.29

Published

Root CLI for Caphub agent capabilities

Readme

@caphub/cli

Root CLI for Caphub capabilities.

Caphub helps agents research products, compare offers, find the best places, learn a topic, get the latest financial news, and more without dragging full websites into context.

Capabilities can run server-side on Caphub infrastructure or locally from this machine. Server-side actions may consume credits. Local actions return local: true and billing.credits_used: 0.

Install

npm install -g @caphub/cli

Or run without install:

npx @caphub/cli help

Auth

Open the website approval flow:

caphub auth login

For headless/cloud agents, put the key in the platform secret manager and expose it as:

CAPHUB_API_KEY=csk_live_...

Discovery

caphub help
caphub capabilities
caphub help search
caphub help shopping
caphub help maps
caphub help weather
caphub help cost
caphub reddit --help
caphub youtube --help

Run capabilities

caphub search '{"queries":["best AI agent frameworks 2026"]}'
caphub search-ideas '{"queries":["best robot vacuum"]}'
caphub shopping '{"queries":["apple m5 pro"],"country":"th","language":"en"}'
caphub places '{"queries":["best pizza in Vienna"]}'
caphub places '{"cids":["13290506179446267841"],"sort_by":"newest"}'
caphub cost daily '{"days":30}'
caphub cost log '{"limit":50}'

Hybrid Reddit capability

Use local reads when the agent already knows the target subreddit, post, or user:

caphub reddit feed '{"subreddit":"worldnews","sort":"new","limit":25}'
caphub reddit post '{"id":"1kaqi3k","comments":"top","comment_limit":20,"comment_depth":3}'
caphub reddit user '{"username":"Ok-Contribution9043","type":"comments","limit":10}'

Use server-side Reddit search when the agent needs to discover relevant Reddit posts by topic:

caphub reddit search '{"query":"qwen3 8b","subreddit":"LocalLLaMA","time":"month","limit":10}'

Hybrid YouTube capability

Use local transcript reads when the agent already knows the target video and is running on a normal machine with outbound internet access:

caphub youtube transcript '{"video_url":"GmE4JwmFuHk"}'
caphub youtube transcript '{"video_url":"https://youtu.be/GmE4JwmFuHk","language":"en","send_metadata":true}'

Use the server fallback when local transcript extraction is unavailable:

caphub youtube transcript-server '{"video_url":"GmE4JwmFuHk","send_metadata":true}'

Server transcript fallback costs 2 Caphub credits. Local transcript extraction remains free.

Use server-side endpoints for discovery and channel or playlist traversal:

caphub youtube search '{"queries":["qwen3 8b review"],"limit":10}'
caphub youtube channel-resolve '{"input":"@TED"}'
caphub youtube channel-search '{"channel":"@TED","q":"ai","limit":10}'
caphub youtube channel-videos '{"channel":"@TED"}'
caphub youtube channel-latest '{"channel":"@TED"}'
caphub youtube playlist-videos '{"playlist":"PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf"}'

Finance news

Use server-side finance news when the agent needs the latest coverage for a stock ticker:

caphub finance news '{"queries":["NVDA","AAPL"]}'
caphub finance news '{"queries":["BRK.B"],"limit":20}'

Maps

Use maps when the agent needs to find the best places in an area, compare options, or inspect reviews:

caphub maps search '{"query":"pizza","area":"Chiang Mai","zoom":11}'
caphub maps search '{"query":"coworking","area":"Koh Phangan"}'

Use maps places when the query already contains the location:

caphub maps places '{"queries":["best pizza in Vienna"]}'

Use maps reviews when you already have one or more place CIDs:

caphub maps reviews '{"cids":["13290506179446267841"],"sort_by":"newest"}'

Weather

Use server-side weather forecast when the agent needs rain and temperature for a place before making plans or recommendations:

caphub weather forecast '{"location":"Koh Phangan","days":3}'
caphub weather forecast '{"location":"Bangkok","days":1}'