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

subtitle-me

v1.0.8

Published

Generate subtitle text from a video

Readme

subtitle-me

Subtitle generator for videos using IBM Watson Speech to Text

This is a program written in Node.js used to generate a SubRip .srt file from an .mp4 video by using the IBM Watson Speech to Text service on IBM Cloud.

English is currently the only supported language

Prerequistes

You need to have Node.js installed on your machine. If you don't have Node.js, then you can download it from nodejs.org. We use the latest Node LTS version, Node 10.

In order to be able to use this program, make sure you have ffmpeg installed on your system (including all necessary encoding libraries such as libmp3lame or libx264).

This project relies on the fluent-ffmpeg package, which requires that you have a ffmpeg version greater than 0.9. The fluent-ffmpeg package will call ffmpeg and ffprobe so you need to have these in your PATH or set in the FFMPEG_PATH environment variable and the FFPROBE_PATH environment variable. This program will automatically convert your file to a .mp3 file so you must have the libmp3lame codec installed on your system.

You must also create an IBM Cloud account and create service instances for Watson Speech to Text.

Usage

Set the IBM_CLOUD_API_KEY environment variable in your terminal to your Speech to Text API key from IBM Cloud.

Use npx to run this program without cloning the repository and installing dependencies. It ships with NPM so no need to install.

MacOS and Linux

IBM_CLOUD_API_KEY=your-api-key npx subtitle-me

Windows

set IBM_CLOUD_API_KEY=your-api-key npx subtitle-me

You can indicate whether or not sentence casing should be performed. By default subtitle-me will capitalize the first letter in the first word of a subtitle and add a period to the end of the subtitle.

Once the command has executed, it will create a file named the same as the video filename except with the .srt extension. A raw speech events file will also be created and has the same name as the video file except it will append on _events.json. Additionally, an .mp3 file will be created that contains the extracted audio from the video file. It will be named the same as the video filename except that it will end in .mp3.