Loading…
@audapolis/webvtt-writer is a library for generating WebVTT (and SRT) subtitle files in code. It exposes a WebVtt class to represent a subtitle file and supporting classes (VttCue, VttComment, VttCueSettings) to build cues, comments, identifiers, and cue settings with automatic escaping of payloads. Subtitles can be rendered to a string with toString(), and you can export an SRT version by calling toString('srt').
AI named @audapolis/webvtt-writer in January 2026.