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

@blackbelt-technology/pi-dashboard-video-transcription

v0.7.0

Published

Full TypeScript port of the video-transcription pi skill. Transcribes local video/audio to speaker-diarized SRT via the Soniox async API, with long-recording chunking and idempotent re-runs. ffmpeg/ffprobe are external prerequisites.

Downloads

501

Readme

@blackbelt-technology/pi-dashboard-video-transcription

Transcribe local video/audio files in-place to speaker-diarized SRT subtitles using the Soniox async transcription API. Full TypeScript port of the standalone video-transcription pi skill — no Python. Its only runtime npm dependency is @blackbelt-technology/pi-dashboard-shared (the repo's safe-subprocess wrapper); everything else rides pi's bundled peers.

Exposed two ways:

  • pi skill.pi/skills/video-transcription (triggers like /transcribe).
  • CLI binpi-transcribe [directory | file ...].

Prerequisites

  • ffmpeg and ffprobe on PATH — used for audio extraction from video, duration probing, and chunk slicing. Audio-only files still need ffprobe for the long-recording duration guard.
  • SONIOX_API_KEY — resolved from the environment first, then from an optional gitignored .env file (current directory, then the skill dir). No secret is committed in the package.

Install

pi install @blackbelt-technology/pi-dashboard-video-transcription

Delivery is published + opt-in. The package is NOT auto-loaded by the monorepo.

Usage

pi-transcribe                      # scan ~/Movies (default)
pi-transcribe /path/to/recordings  # scan a directory
pi-transcribe a.m4a b.mp4          # transcribe explicit files
  • No argument — scans ~/Movies.
  • Single directory — scans it for .mkv, .mp4, .m4a, .mp3.
  • One or more file paths — transcribes exactly those files.

Discovered files are processed oldest-first by modification time. A file is skipped when a sibling .srt already exists (idempotent). Output .mp3 (extracted audio) and .srt (subtitles) are written alongside each source file.

Environment overrides

| Variable | Default | Meaning | |---|---|---| | SONIOX_API_KEY | (required) | Soniox API key. | | MAX_CHUNK_HOURS | 4.5 | Chunk size for recordings over the Soniox 5 h duration limit. | | MAX_AUDIO_MB | 200 | Reserved size guard; 0 disables. | | TRANSCRIBE_CONCURRENCY | 8 | Files transcribed in parallel via a worker pool. Clamped to 1100 (100 = Soniox pending-job cap); 1 = serial. |

Long recordings (>5 h)

Soniox enforces a hard per-request limit on audio duration (18000 s / 5 h), independent of file size. Recordings over the limit are split into MAX_CHUNK_HOURS-sized chunks, transcribed separately, and merged into a single SRT with correct absolute timestamps — full coverage, no truncation. Duration is probed via ffprobe since the limit is on duration, not megabytes.

Development

npm test   # vitest: pure-logic + mocked I/O (no network, no binaries)

The bin runs as TypeScript via pi's jiti loader — no build step. Standalone execution outside pi is out of scope for this package.