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

kutlass

v0.1.5

Published

A fully client-side browser video editor React component

Downloads

650

Readme

Kutlass

A fully client-side browser video editor React component. All video processing — decoding, effects, cropping, annotations, and encoding — runs entirely in the browser using WebCodecs and FFmpeg WASM. No server required.

Live Demo | GitHub

Features

  • Trim, crop, and resize video
  • Brightness, contrast, saturation, rotation, and opacity adjustments
  • Filter presets (Vivid, Warm, Cool, B&W, Fade, Dramatic, Film, Matte)
  • Freehand annotations (pen and eraser)
  • Text and sticker overlays
  • Undo/redo with full history
  • Zoom and pan preview
  • Export to MP4 or WebM
  • Drag-and-drop video import
  • Light and dark themes
  • Customizable accent color and full color token override

Installation

npm install kutlass

Peer dependencies

npm install react react-dom framer-motion @ffmpeg/ffmpeg @ffmpeg/core @ffmpeg/util

Quick start

import { Kutlass, setFFmpegPaths } from "kutlass";
import "kutlass/styles.css";

setFFmpegPaths({
  coreJS: "/ffmpeg/ffmpeg-core.js",
  coreWasm: "/ffmpeg/ffmpeg-core.wasm",
});

function App() {
  return (
    <Kutlass
      style={{ width: 960, height: 640 }}
      onExportComplete={(blob) => {
        const url = URL.createObjectURL(blob);
        const a = document.createElement("a");
        a.href = url;
        a.download = "video.mp4";
        a.click();
      }}
    />
  );
}

Theming

Kutlass ships with light and dark themes. Set the theme prop to switch:

<Kutlass theme="light" />
<Kutlass theme="dark" />  {/* default */}

Accent color

Pass a hex color to accent to change the primary color used for buttons, selection highlights, trim handles, and active states. Hover, subtle, and border variants are derived automatically:

<Kutlass accent="#8b5cf6" />
<Kutlass theme="light" accent="#3b82f6" />

Custom color tokens

For full control, use the colors prop to override any individual CSS variable. Keys are token names without the --kt- prefix:

<Kutlass
  theme="dark"
  accent="#3b82f6"
  colors={{
    "bg-base": "#0f172a",
    "bg-panel": "#1e293b",
    "text-primary": "#e2e8f0",
  }}
/>

Available tokens

| Token | Description | |---|---| | bg-base | Main editor background | | bg-panel | Bottom panel background | | bg-surface | Secondary surfaces (timeline, playback bar) | | bg-deep | Deepest background | | bg-preview | Video preview area | | bg-overlay | Modal/export overlay | | bg-subtle | Subtle interactive background | | bg-subtle-hover | Subtle hover state | | border | Primary borders | | border-strong | Heavier borders | | text-primary | Primary text | | text-secondary | Secondary text | | text-tertiary | Tertiary text | | text-muted | Muted text | | text-faint | Faintest text | | accent | Primary accent color | | accent-hover | Accent hover state | | accent-text | Text on accent backgrounds | | accent-subtle-bg | Accent at low opacity (chip backgrounds) | | accent-subtle-border | Accent border at low opacity | | accent-strong-border | Accent border at high opacity | | accent-play | Play button color | | accent-play-hover | Play button hover | | accent-play-bar | Progress bar fill | | slider-track | Slider track background | | slider-fill | Slider fill color | | slider-thumb | Slider thumb color | | success | Success state color | | danger | Danger/delete color |

You can also override tokens directly in CSS by targeting the data-kt-theme attribute:

[data-kt-theme="dark"] {
  --kt-accent: #3b82f6;
  --kt-bg-base: #0f172a;
}

FFmpeg WASM setup

Kutlass uses FFmpeg compiled to WebAssembly for video encoding. You need to:

  1. Copy the WASM files to your public directory:
cp node_modules/kutlass/public/ffmpeg/* public/ffmpeg/
  1. Set the required cross-origin headers on your server. FFmpeg WASM requires SharedArrayBuffer, which needs these headers:
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Resource-Policy: cross-origin

Next.js example (next.config.ts):

const nextConfig = {
  async headers() {
    return [
      {
        source: "/(.*)",
        headers: [
          { key: "Cross-Origin-Opener-Policy", value: "same-origin" },
          { key: "Cross-Origin-Embedder-Policy", value: "require-corp" },
          { key: "Cross-Origin-Resource-Policy", value: "cross-origin" },
        ],
      },
    ];
  },
};

Props

| Prop | Type | Default | Description | |---|---|---|---| | theme | "light" \| "dark" | "dark" | Color theme | | accent | string | — | Primary accent color (hex). Derives hover, subtle, and border variants. | | colors | KutlassColors | — | Override individual color tokens (keys without --kt- prefix) | | className | string | — | CSS class for the outer container | | style | CSSProperties | — | Inline styles for the outer container | | tools | Tool[] | all | Which tools to show (trim, crop, finetune, filter, annotate, sticker, resize) | | exportSettings | Partial<ExportSettings> | — | Default export settings (format, resolution, fps, bitrate) | | ffmpegPaths | Partial<FFmpegPaths> | — | Override FFmpeg WASM file URLs | | onExportComplete | (blob: Blob) => void | — | Called with the exported video blob when export finishes |

API

setFFmpegPaths(paths)

Configure where the FFmpeg WASM files are served from. Must be called before the first export.

import { setFFmpegPaths } from "kutlass";

setFFmpegPaths({
  coreJS: "/vendor/ffmpeg-core.js",
  coreWasm: "/vendor/ffmpeg-core.wasm",
});

License

MIT