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

@tenshowinnovation/subtitle-kit-cli

v0.1.1

Published

Command-line subtitle converter and editor (SRT, WebVTT, ASS/SSA, SBV, LRC, JSON, JSONL).

Readme

@tenshowinnovation/subtitle-kit-cli

A fast, friendly command-line subtitle converter and editor. Wraps the zero-dependency @tenshowinnovation/subtitle-kit-core and installs the subtitle-kit and subkit binaries.

Supported formats: SRT, WebVTT, ASS/SSA, SBV (YouTube), LRC (lyrics), JSON, JSONL, plain text.

  • 🔄 Convert anything to anythingsubkit convert in.ass --to vtt.
  • ⏱️ Retime in placeshift and scale for offsets and frame-rate drift.
  • ☁️ Read from anywhere — local files, stdin, http(s)://, or s3:// (no AWS SDK needed).
  • 🌊 Streaming by default — constant memory for huge files; pipe-friendly.
  • 🛠️ Built on commander for a polished --help and ergonomic flags.

Install

pnpm add -g @tenshowinnovation/subtitle-kit-cli
# or run ad-hoc
npx @tenshowinnovation/subtitle-kit-cli convert movie.srt --to vtt

Usage

# Convert (target from --to or the -o extension)
subkit convert movie.srt --to vtt > movie.vtt
subkit convert movie.srt -o movie.ass

# Shift / scale timing
subkit shift movie.srt --by 1500 -o delayed.srt
subkit scale movie.srt --factor 1.001 --anchor 0 -o fixed.srt

# Inspect
subkit info movie.srt

# Pipe via stdin with '-'
cat movie.srt | subkit convert - --to json

Remote input (HTTP / S3)

<input> can be a URL, so you can convert subtitles straight out of object storage — no AWS SDK or other dependency required (it uses Node's built-in fetch):

# Any HTTP(S) URL
subkit convert https://cdn.example.com/movie.srt --to vtt -o movie.vtt

# S3 object — mapped to https://<bucket>.s3.<region>.amazonaws.com/<key>
subkit convert s3://my-bucket/subs/movie.srt --to vtt --region us-west-2 -o movie.vtt
  • The S3 region comes from --region, else $AWS_REGION, else us-east-1.
  • s3:// works for public objects. For private buckets, generate a presigned https:// URL and pass that directly (SigV4 request signing is intentionally not built in).

Streaming

For streamable formats (srt, vtt, ass, sbv, jsonl, txt) the CLI parses, transforms, and serializes as a constant-memory stream — input is never fully held in memory. This kicks in automatically when the source format is known (from --from or the file/URL extension) and the target is streamable.

  • json and lrc always use the buffered path (they need the whole document).
  • Pass --buffer to force buffering for any command.
  • Output is written incrementally to -o <file> or stdout, so subkit convert huge.srt --to vtt | head streams the first cues immediately.
subtitle-kit convert <input> (--to <fmt> | -o <file>) [--from <fmt>] [-o <file>]
subtitle-kit shift   <input> --by <ms> [--to <fmt>] [-o <file>]
subtitle-kit scale   <input> --factor <n> [--anchor <ms>] [--to <fmt>] [-o <file>]
subtitle-kit info    <input>
subtitle-kit --help | --version

Use - as <input> to read from stdin. Output goes to stdout unless -o is given.

For programmatic use, depend on @tenshowinnovation/subtitle-kit-core directly.

License

MIT