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

@spark-apps/video-kit

v0.1.1

Published

Shared pure logic for the Spark video pipeline: title scoring, spoken-form text, ASS subtitle authoring, ffmpeg filter constants. No I/O, no dependencies.

Readme

@spark-apps/video-kit

Pure, dependency-free logic shared by the Spark video tools: VidLet (local MCP server), ViralCat (Vercel app) and QuickPeek (local CLI).

What this is, and what it deliberately is not

This package holds the logic where the three apps disagreeing would be a bug: a title that grades A in one tool and B in another, a domain pronounced two different ways, audio mastered to two different loudness targets.

It is not a video engine. The apps keep their own ffmpeg pipelines, because they genuinely need different things: one sidechain-ducks, one time-gates the music volume, one does not duck at all; one runs on a 16-core desktop with no time limit, one inside a serverless function. Merging those would produce a package that three apps have to negotiate over, which costs more than the duplication it removes.

Every export is pure. No filesystem, no network, no process spawning, no environment reads. That is what makes it safe to import from a serverless function, a CLI and a browser bundle alike, and it is the line that stops this package growing into an engine.

Modules

| Module | Contents | |---|---| | title | YouTube title virality scoring, 0-100 with a letter grade | | spoken | Written text to TTS-pronounceable text (URLs, emails, TLDs) | | voices | Edge TTS voice tables and language resolution | | ass | ASS subtitle format: timing, colour, layout maths, word packing | | hashtags | Tag blacklist, normalisation, view-count formatting | | segments | Time-span merge and inversion | | ffmpeg | Loudness constants and the scale/crop/pad idiom | | paths | Windows to WSL path conversion |

Two decisions worth knowing about

Two voice tables ship, not one. MULTILINGUAL_VOICES covers 14 languages with the newer Multilingual neural voices (en-US); WIDE_VOICES covers 68 languages with standard voices (en-GB). They disagree on en, fr, de and zh. Those are preferences, not quality rankings, so each app picks rather than one being silently promoted.

Two word packers ship, not one. chunkWordsToLines packs to a measured character budget (what a Short needs, so a URL never splits); chunkWordsByCount packs a fixed number of words per cue. Switching a tool from one to the other re-flows every caption it has ever produced, so that is a deliberate change, not a side effect of sharing code.

Install

npm install @spark-apps/video-kit

Ships dual ESM + CJS with types for both. CJS is not optional: QuickPeek's CLI bundle is CommonJS on moduleResolution: NodeNext.

Develop

npm test