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

@cli4ai/youtube

v1.0.12

Published

YouTube transcript tool (powered by yt-dlp)

Downloads

60

Readme

@cli4ai/youtube

Official @cli4ai package • https://cli4ai.com • Install cli4ai: npm i -g cli4ai

Fetch transcripts, search within videos, browse channels and playlists (powered by yt-dlp).

Setup

npm i -g cli4ai
cli4ai add -g youtube
  • yt-dlp is required. If it’s missing, cli4ai run youtube … will prompt you to install it.

Commands

cli4ai run youtube transcript <url> [format]     # Get transcript (text|timestamped|json)
cli4ai run youtube search <url> <query>          # Search within video transcript
cli4ai run youtube info <url>                    # Video metadata
cli4ai run youtube channel <handle> [limit]      # Recent videos from channel
cli4ai run youtube playlist <url> [limit]        # Videos in playlist
cli4ai run youtube batch <url1> <url2> ...       # Batch get transcripts
cli4ai run youtube find <query> [limit]          # Search YouTube

Examples

# Get plain text transcript
cli4ai run youtube transcript "https://youtu.be/AJpK3YTTKZ4"

# Get timestamped transcript
cli4ai run youtube transcript AJpK3YTTKZ4 timestamped

# Search for "terminal" in a video - returns clickable timestamps
cli4ai run youtube search AJpK3YTTKZ4 "terminal"

# Get Anthropic's last 5 videos
cli4ai run youtube channel @anthropic-ai 5

# Search YouTube
cli4ai run youtube find "claude ai tutorial" 10

# Get video info (views, likes, duration, etc)
cli4ai run youtube info AJpK3YTTKZ4

Notes

  • Works with youtube.com, youtu.be, and shorts URLs
  • Transcripts use auto-captions when manual captions aren't available
  • Search returns timestamps with direct links to that exact moment
  • text format deduplicates overlapping auto-caption segments