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

@autokaka/havi

v0.1.9

Published

Deterministic HTML-to-video renderer.

Readme

havi

Turn any webpage into a video. Deterministic, frame-perfect, offline.

havi renders HTML — animations, video, canvas, SVG, WebGL — to an MP4 by driving a real Chromium and capturing each frame against a virtual clock. The same input produces the same bytes every run, so it fits CI, golden-file tests, and automated content pipelines.

Install

npm i @autokaka/havi

The package ships its own Chromium (CEF) and ffmpeg, so there is nothing else to install and no network needed at render time. Prebuilt for macOS arm64, Linux x64, Linux arm64, and Windows x64.

Quick start

CLI:

npx havi https://example.com -o demo.mp4

Node or Bun:

import { havi } from "@autokaka/havi";

const result = await havi.render({
  options: {
    source: "https://example.com",
    width: 1920,
    height: 1080,
    fps: 60,
    duration: 10,
    out: "demo.mp4",
  },
});

console.log(result.out, result.frames);

How it works

Each render runs in its own short-lived havi process: it loads the page once to warm an isolated cache, reloads into that warm cache, then steps a pinned virtual clock frame by frame. Every frame is gated on a two-signal check (the browser's virtual-time budget plus an embedded per-frame timestamp), so frame N is pixel-identical across runs regardless of real-world timing, network jitter, or machine speed. Captured frames are piped straight to ffmpeg.

Because each render is a separate process with its own cache, you can run as many at once as you like — havi does not cap concurrency. Control how many run in parallel from your own code; each one is independent and cleans up after itself.

CLI

havi <source> [options]

  -W, --width <px>       output width            (default 1920)
  -H, --height <px>      output height           (default 1080)
  -f, --fps <n>          frames per second       (default 30)
  -t, --duration <sec>   seconds to capture      (default 5)
  -o, --out <path>       output file             (default out.mp4)
      --tolerant         render partial DOM if the page is slow to load
      --proxy <json>     HTTP rewrite/block/mock rules

<source> accepts an http(s) URL, a local file path, or a data: URI.

API

import { havi } from "@autokaka/havi";

const result = await havi.render({
  options: {
    source: string,        // URL, file path, or data: URI
    out?: string,          // default "out.mp4"
    width?: number,        // default 1920
    height?: number,       // default 1080
    fps?: number,          // default 30
    duration?: number,     // seconds, default 5
    tolerant?: boolean,    // render partial DOM on slow load
    proxy?: ProxyRule[],   // HTTP rewrite/block/mock
  },
  onProgress?: (e) => void,  // { frame, total }
  onConsole?: (e) => void,   // { level, source, message }
  signal?: AbortSignal,      // cancel this render
});
// result: { frames, width, height, fps, out, elapsedMs }

havi.renderHelp() returns the CLI help text.

Cancel a render with an AbortSignal:

const controller = new AbortController();
setTimeout(() => controller.abort(), 5000);
await havi.render({ options: { source, out }, signal: controller.signal });

Proxy rules

Rewrite, block, or mock requests during a render. First match wins.

proxy: [
  { pattern: "https://api.public.com/**", to: "https://api.internal/" },
  { pattern: "**/*.gtag*", block: true },
  { pattern: "https://mock.api/**", status: 200, body: "{}",
    headers: { "content-type": "application/json" } },
]

Output

MP4 (H.265/HEVC), web-ready with faststart. Transparent pages produce HEVC with an alpha channel (yuva420p), suitable for compositing.

License

BSD 3-Clause. See LICENSE.