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

toolnet-srt

v0.2.0

Published

ToolNet SRT - Audio and video subtitle transcription toolkit

Readme

ToolNet-SRT

Audio & Video Subtitle Transcription Toolkit

ToolNet-SRT is an open-source toolkit for automatically transcribing audio and video into subtitle files, powered by JianYing (CapCut) speech recognition.

Features

  • Automatic audio and video transcription
  • Chinese speech recognition
  • SRT, ASS, JSON and TXT output
  • Word-level timestamps in JSON
  • TypeScript SDK and command-line interface (CLI)
  • FFmpeg-based audio extraction
  • No API key required for the JianYing ASR engine

Requirements

  • Node.js 18+
  • FFmpeg and FFprobe
  • Internet connectivity

Installation from npm

Install the CLI globally:

npm install -g toolnet-srt
toolnet-srt --help

Or install the package in a project to use the SDK:

npm install toolnet-srt

You can also run the CLI without a global installation:

npx toolnet-srt --help

Installation from source

git clone https://github.com/ToolNetWorks/Toolnet-SRT.git
cd Toolnet-SRT
npm ci
npm run build

CLI usage

After installing globally, use the CLI to transcribe audio or video:

toolnet-srt input.mp4 -o output.srt
toolnet-srt input.mp3 -o output.json
toolnet-srt input.wav -o output.ass

When running from a source checkout, replace toolnet-srt with node bin/jianying-subtitle.mjs after building.

TypeScript SDK

After installing the package:

import { transcribe, toSrt } from "toolnet-srt";

const segments = await transcribe({ input: "audio.mp3" });
const srt = toSrt(segments);
console.log(srt);

Render HTTP API

The hosted API is available at https://toolnet-srt.onrender.com. Check its health with:

curl -fsS https://toolnet-srt.onrender.com/api/health

Set your API token locally, then send the audio as the raw request body:

read -rsp "API token: " TOOLNET_SRT_API_KEY
echo

curl --fail-with-body --show-error --max-time 420 \
  -H "X-API-Key: $TOOLNET_SRT_API_KEY" \
  -H "Content-Type: audio/mpeg" \
  --data-binary @audio.mp3 \
  -o subtitle.srt \
  https://toolnet-srt.onrender.com/v1/transcribe

unset TOOLNET_SRT_API_KEY

Use the matching content type for the input: video/mp4, audio/mpeg, audio/wav, audio/x-wav, audio/mp4, or audio/flac. Uploads are limited to 40 MiB. The service accepts one transcription at a time and may return HTTP 429 while busy. The token is required for transcription, but not for the health endpoint. Keep it private.

When hosting the service yourself, set the TOOLNET_SRT_API_KEY environment variable on the server to the token clients should send in X-API-Key.

Development

npm ci
npm run build
npm test

Roadmap

  • Long-video chunk processing
  • Subtitle merging and timestamp correction
  • Optional subtitle translation
  • Render deployment
  • External application integration

These roadmap features are not yet guaranteed to be available in the current release.

Privacy

Audio is uploaded to ByteDance/JianYing servers for speech recognition. Do not submit confidential audio or video.

License

GNU General Public License v3.0 only. See LICENSE for the complete license text and NOTICE.md for attribution.

Copyright (C) 2026 xifan2333. ToolNetWorks retains copyright in its own original contributions.