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

video-chunk

v2.0.6

Published

Split a video in equal parts

Readme

video-chunk

A clean, modular tool for splitting videos into equal parts. Can be used as a CLI tool or a web service with an administration panel.

GitHub | NPM

Tech Stack

  • Runtime: Bun
  • Language: TypeScript
  • CLI: yargs
  • Server: Express
  • Frontend: Vue 3 + Bootstrap 5

Installation

Prerequisites

  • Bun
  • FFmpeg installed on the system

Setup

bun install

Usage

CLI

The tool can be executed via bun run cli.ts.

Process a video:

bun run cli.ts process -i input.mp4 -o ./output -d 60
  • -i, --input: Path to the input video file.
  • -o, --output: Path to the output directory.
  • -d, --duration: Duration of each chunk in seconds (default: 60).

Start the web server:

bun run cli.ts server --port 3000 --frontend true
  • --port: Port to run the server on (default: 3000).
  • --frontend: Enable/disable the admin panel.

Web Server

When the server is running with --frontend true, you can access the admin panel at http://localhost:3000.

Environment Variables & CLI Parameters

The system allows configuration via environment variables or CLI flags. CLI flags always take precedence over environment variables.

| Variable | CLI Flag | Default | Description | Effect | | :--- | :--- | :--- | :--- | :--- | | PORT | -p, --port | 3000 | Server port | Defines the port where the Express server will listen. | | ENABLE_FRONTEND | -f, --frontend | false | Enable Admin UI | If true, the server serves the Vue administration panel. | | FRONTEND_PATH | --frontend-path | Auto-detected | Frontend path | Path to the frontend build directory. Useful for custom installations. |

Example using Environment Variables:

PORT=4000 ENABLE_FRONTEND=true bun run cli.ts server

Example using CLI Flags:

bun run cli.ts server --port 4000 --frontend true

Project Structure

  • cli.ts: Main entry point for the CLI.
  • backend/: Core logic, services, and API.
  • frontend/: Vue 3 administration panel.
  • agents/: Agent definitions and prompts.
  • reports/: Logs and processing results.