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

simple-ffmpegjs

v0.5.5

Published

Declarative video composition for Node.js — define clips, transitions, text, and audio as simple objects, and let FFmpeg handle the rest.

Readme


Install

npm install simple-ffmpegjs

FFmpeg must be installed and available in your PATH.

Quick example

import SIMPLEFFMPEG from "simple-ffmpegjs";

const project = new SIMPLEFFMPEG({ preset: "youtube" });

await project.load([
  { type: "video", url: "./intro.mp4", duration: 5 },
  {
    type: "video",
    url: "./clip2.mp4",
    duration: 6,
    transition: { type: "fade", duration: 0.5 },
  },
  {
    type: "text",
    text: "Summer Highlights",
    position: 0.5,
    end: 4,
    fontSize: 64,
    fontColor: "#FFFFFF",
    animation: { type: "pop", in: 0.3 },
  },
  { type: "music", url: "./music.mp3", volume: 0.2, loop: true },
]);

await project.export({ outputPath: "./output.mp4" });

Features

  • Declarative timelinevideo, image, color, effect, text, subtitle, audio, music clip types
  • Transitions — all FFmpeg xfade transitions with automatic compensation for timeline compression
  • Ken Burns effects — zoom, pan, smart, and custom with full easing control
  • Image fittingblur-fill, cover, and contain modes for aspect ratio mismatches
  • Text overlays — static, word-by-word, karaoke, and cumulative modes with animations
  • Effect clips — vignette, film grain, blur, color grading, sepia, B&W, sharpen, chromatic aberration, letterbox
  • Audio mixing — multiple sources, background music, looping, independent volume control
  • Platform presets — TikTok, YouTube, Instagram, and more
  • Pre-validation — structured error codes before rendering; integrates cleanly into data pipelines and AI workflows
  • Schema export — machine-readable clip specification for docs, code generation, and LLM context
  • Static helpersprobe(), snapshot(), extractKeyframes()
  • TypeScript — full type definitions included
  • Zero runtime dependencies — only requires FFmpeg on your system

Documentation

Full documentation at simple-ffmpegjs.com

License

MIT