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

happy-horse-1.0-video-converter

v0.1.0

Published

CLI and Node.js utilities for converting, compressing, and extracting media with FFmpeg.

Downloads

9

Readme

happy-horse-1.0-video-converter

happy-horse-1.0-video-converter is a lightweight npm package for common FFmpeg workflows: convert media, compress video, clip segments, extract audio, and export thumbnails.

It ships with both a CLI and a typed Node.js API so it can fit local scripts, automation pipelines, or app integrations.

Install

pnpm add happy-horse-1.0-video-converter

Or run it with your preferred package manager after publishing:

npm install happy-horse-1.0-video-converter

FFmpeg Requirement

Version 0.1.x expects ffmpeg and ffprobe to be available in your system PATH.

Example:

ffmpeg -version
ffprobe -version

If FFmpeg is not installed, the CLI and API will return a clear runtime error.

CLI Usage

The package exposes one command:

happyhorse-video --help

Convert formats

happyhorse-video convert input.mp4 --to webm
happyhorse-video convert input.mov --to gif
happyhorse-video convert input.mp4 --to mp3

Compress video

happyhorse-video compress input.mp4 --width 1280 --crf 28
happyhorse-video compress input.mov --video-bitrate 1800k --frame-rate 30

Clip a segment

happyhorse-video clip input.mp4 --start 00:00:05 --duration 10
happyhorse-video clip input.mp4 --start 00:00:03 --end 00:00:12

Extract audio

happyhorse-video audio input.mp4 --to mp3
happyhorse-video audio input.mov --to wav --audio-bitrate 192k

Export thumbnails

happyhorse-video thumbnail input.mp4 --at 00:00:03
happyhorse-video thumbnail input.mp4 --interval-seconds 5 --count 3

Node.js API

import {
  clipVideo,
  compressVideo,
  convertVideo,
  extractAudio,
  generateThumbnail,
} from 'happy-horse-1.0-video-converter';

const converted = await convertVideo({
  inputPath: 'input.mp4',
  to: 'webm',
});

const compressed = await compressVideo({
  inputPath: 'input.mov',
  width: 1280,
  crf: 28,
});

const clipped = await clipVideo({
  inputPath: 'input.mp4',
  start: '00:00:05',
  duration: '10',
});

const audio = await extractAudio({
  inputPath: 'input.mp4',
  to: 'mp3',
});

const thumbnails = await generateThumbnail({
  inputPath: 'input.mp4',
  at: '00:00:03',
});

Every command returns a structured result:

type CommandResult = {
  success: boolean;
  message: string;
  outputPath?: string;
  outputPaths?: string[];
  command: string[];
};

Supported Outputs

  • Video: mp4, webm, mov, gif
  • Audio: mp3, wav

Notes

  • This package intentionally keeps the first release focused on common conversion and extraction tasks.
  • It does not bundle FFmpeg binaries in 0.1.x.
  • Advanced editing pipelines can be added later without changing the basic API shape.

HappyHorse

Built by HappyHorse, a toolkit focused on practical AI and creator workflows. The link is included as normal package attribution and support context, not as promotional filler.

License

MIT