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

@stophy/cli

v1.1.0

Published

YouTube context for AI agents. Search, transcripts, comments, channels, and playlists — structured JSON from the terminal.

Downloads

473

Readme

@stophy/cli

YouTube context for AI agents. Search, transcripts, comments, channels, playlists — structured JSON from the terminal.

Quick start

Install the CLI globally, add every Stophy skill to all supported AI agents, and authenticate in your browser:

npx -y @stophy/cli@latest init --all --browser

Install

npm install -g @stophy/cli

Or install a standalone binary (no Node.js required):

# macOS / Linux
curl -fsSL https://stophy.dev/install.sh | bash

# Windows (PowerShell)
irm https://stophy.dev/install.ps1 | iex

# Homebrew
brew install stophydotdev/tap/stophy

The npm package requires Node.js 18 or later. Get an API key at stophy.dev.

Auth

stophy login --browser           # opens browser
stophy login --api-key st_xxx    # paste key directly
export STOPHY_API_KEY="st_..."   # env var also works

Commands

search

stophy search --q "typescript tutorial" --type video --sortBy viewCount
stophy search --q "next.js" --uploadDate week --duration long

video details

stophy video details --url "https://youtube.com/watch?v=QRvfjPltvmE"
{
  "video": {
    "id": "QRvfjPltvmE",
    "title": "TraRags Reacts To Kendrick Lamar - GNX",
    "author": "TRA RAGS STREAMS",
    "viewCount": 204828,
    "likeCount": 9170,
    "durationText": "2 hours 42 minutes 27 seconds",
    "publishedAt": "2024-11-23T08:22:36.000Z"
  },
  "related": [
    { "id": "h6ukrWyqOm4", "title": "...", "author": "...", "viewCount": 12000 }
  ]
}

video transcript

stophy video transcript --url "https://youtube.com/watch?v=..."
{
  "videoId": "QRvfjPltvmE",
  "language": { "code": "en", "name": "English", "isAutoGenerated": true },
  "segments": [
    { "text": "what is up everybody", "start": 0.0, "duration": 1.96 },
    { "text": "welcome back to the channel", "start": 1.96, "duration": 2.0 }
  ],
  "text": "what is up everybody welcome back to the channel"
}

video comments

stophy video comments --url "https://youtube.com/watch?v=QRvfjPltvmE" --sortBy top
{
  "items": [
    { "text": "\"Nah, that's not enough\" 😂", "author": "@terribletimes902", "likeCount": 2100 },
    { "text": "53:15 BRO CREAMED HIMSELF LIVE 😭😭😭😭", "author": "@Aunos1", "likeCount": 593 },
    { "text": "WHO ELSE BACK TO THIS AFTER THE ICEMAN REACTION?? 🙌🏾✊🏾", "author": "@colouredhearts", "likeCount": 134 }
  ],
  "continuationToken": "..."
}

video livechat

stophy video livechat --url "https://youtube.com/watch?v=..." --chat-type top
{
  "status": "live",
  "concurrentViewers": 1234,
  "pollIntervalMs": 10000,
  "messages": [
    { "text": "first!", "author": "@viewer1", "isModerator": false, "superChatAmount": null }
  ],
  "continuationToken": "..."
}

channel

stophy channel --url "https://youtube.com/@t3dotgg" --tab video --sortBy popular
{
  "channel": {
    "name": "Theo - t3.gg",
    "handle": "@t3dotgg",
    "subscriberCount": "539K subscribers",
    "videoCount": "1K videos",
    "isVerified": true
  },
  "items": [
    { "title": "PirateSoftware is right, this needs to stop", "viewCount": 1000000, "duration": "15:14" }
  ]
}

playlist

stophy playlist --url "https://youtube.com/playlist?list=PLxxxx"

usage and logs

stophy usage --days 7
stophy logs --days 30 --endpoint /v1/video

All commands

| Command | What it does | |---------|-------------| | stophy init --all --browser | Install the CLI, all agent skills, and authenticate | | stophy login | Authenticate with API key or browser | | stophy search | Search YouTube by keyword | | stophy suggest | Search autocomplete suggestions | | stophy video details | Video metadata | | stophy video transcript | Timestamped transcript | | stophy video comments | Paginated comments | | stophy video replies | Comment replies | | stophy video livechat | Livestream chat messages and status | | stophy channel | Channel videos, Shorts, playlists, or about page | | stophy playlist | Playlist videos and metadata | | stophy credits | Remaining credit balance | | stophy usage | API usage for your key | | stophy logs | Request logs for your key | | stophy status | Version, auth status, and credit balance | | stophy doctor | Diagnose install, auth, and API connectivity | | stophy version | CLI version and auth status | | stophy view-config | Config and auth status | | stophy logout | Clear saved credentials |

The CLI checks npm for a newer version in the background and prints a one-line notice when an update is available. Set STOPHY_NO_UPDATE_CHECK=1 to disable it.

Each command supports --help. Full docs at docs.stophy.dev.

Also see

License

MIT