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

transcribly

v1.0.3

Published

CLI tool to transcribe YouTube videos and local audio/video files using OpenAI Whisper API

Readme

Transcribly

Transcribe YouTube videos and local audio/video files from your terminal using the OpenAI Whisper API.

npx transcribly https://www.youtube.com/watch?v=VIDEO_ID

Transcript prints to your terminal and saves to ./text/.

Prerequisites

  • Node.js 18+
  • FFmpeg — must be available in your PATH
  • Python 3.8+ — required by yt-dlp for YouTube downloads
  • OpenAI API key — get one at platform.openai.com/api-keys

Run transcribly --doctor to verify everything is set up correctly.

Install FFmpeg

# macOS
brew install ffmpeg

# Linux (Debian/Ubuntu)
sudo apt install ffmpeg

# Windows (Chocolatey)
choco install ffmpeg

# Windows (winget)
winget install ffmpeg

API Key Setup

# Environment variable
export OPENAI_API_KEY="sk-..."

# Or pass it directly
npx transcribly <url> --api-key sk-...

# Or add to a .env file in your working directory
OPENAI_API_KEY=sk-...

Run transcribly --setup for an interactive setup prompt.

Usage

Transcribe a YouTube video

npx transcribly https://www.youtube.com/watch?v=VIDEO_ID

Transcribe a local file

npx transcribly file ./interview.mp3

Use the transcript with an AI agent

Each agent CLI handles piped stdin a little differently. Use whichever pattern matches your tool — they all end with the agent processing the transcript.

Codex — pipe directly, stdin becomes the prompt:

npx transcribly https://www.youtube.com/watch?v=VIDEO_ID | codex exec --skip-git-repo-check

GitHub Copilot CLI — pipe directly without a -p flag:

npx transcribly https://www.youtube.com/watch?v=VIDEO_ID | copilot

Claude — Claude's CLI bails on slow stdin (3-second timeout), so write the transcript to a file first, then feed it in. Use the --out-file flag for a clean one-liner:

npx transcribly https://www.youtube.com/watch?v=VIDEO_ID --out-file /tmp/t.txt && \
  claude -p "Summarise this" < /tmp/t.txt

The file-based pattern also works as a universal fallback for any agent or downstream tool (grep, jq, your own scripts, etc.).

Save as JSON

npx transcribly https://www.youtube.com/watch?v=VIDEO_ID --format json

Pipe output to a file

npx transcribly https://www.youtube.com/watch?v=VIDEO_ID > transcript.txt

Options

| Option | Description | Default | |---|---|---| | -o, --output <dir> | Output directory for transcript files | ./text | | --out-file <path> | Write transcript to a specific file (overrides --output) | — | | -f, --format <format> | Output format: txt or json | txt | | -k, --api-key <key> | OpenAI API key (overrides env var) | — | | --doctor | Check all system dependencies | — | | --setup | Set up OpenAI API key interactively | — |

Output Format

Text (default) — plain transcript saved to ./text/<video-id>.txt

JSON — structured output saved to ./text/<video-id>.json:

{
  "audioFile": "/path/to/audio.mp3",
  "transcript": "The full transcript text..."
}

Supported File Formats

mp3 mp4 wav webm m4a ogg flac mpeg mpga

Files larger than 24 MB are automatically split into chunks before transcription.

Global Install

npm install -g transcribly
transcribly https://www.youtube.com/watch?v=VIDEO_ID

Programmatic Usage

const { transcribe } = require("transcribly/dist/transcriber");

(async () => {
  const result = await transcribe("./audio.mp3", process.env.OPENAI_API_KEY);
  console.log(result.transcript);
})();

Links

License

MIT