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

lavalier

v0.6.1

Published

A video editing toolkit for TypeScript.

Readme

Lavalier

A video editing toolkit for TypeScript.

Usage

import { video } from "lavalier"

await video("input.mp4")
  .trim({ start: 2, end: 8 })
  .scale({ width: 1280 })
  .fps(30)
  .rotate(90)
  .volume(0.8)
  .export("output.mp4")

Lavalier requires ffmpeg to be installed and available on your PATH.

API

video(input)

Create an editable video from an input path.

const clip = video("input.mp4")

trim(options)

Trim by seconds. Provide start, end, or both.

video("input.mp4").trim({ end: 5 })
video("input.mp4").trim({ start: 10 })
video("input.mp4").trim({ start: 2, end: 8 })

If start is omitted, it defaults to 0. If end is omitted, the clip runs to the end.

volume(level)

Adjust audio volume. 1 keeps the original volume, 0.5 halves it, 2 doubles it, and 0 makes it silent.

video("input.mp4").volume(0)

fps(rate)

Set the output frame rate.

video("input.mp4").fps(30)

rotate(degrees)

Rotate the video frame. Degrees must be 90, 180, or 270.

video("input.mp4").rotate(90)

flip(direction)

Flip the video frame horizontally or vertically.

video("input.mp4").flip("horizontal")
video("input.mp4").flip("vertical")

speed(factor)

Change playback speed. 2 is twice as fast, and 0.5 is half speed.

video("input.mp4").speed(2)

crop(options)

Crop the video frame.

video("input.mp4").crop({ x: 10, y: 20, width: 640, height: 360 })

scale(options)

Resize the video frame. Provide both dimensions for an exact resize, or one dimension to preserve aspect ratio.

video("input.mp4").scale({ width: 1280, height: 720 })
video("input.mp4").scale({ width: 1280 })
video("input.mp4").scale({ height: 720 })

concat(...videos)

Append videos in order.

await video("intro.mp4").concat(video("main.mp4"), video("outro.mp4")).export("output.mp4")

export(output)

Render the video to an output path.

await video("input.mp4").export("output.mp4")