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

@seqvio/browser-recorder

v0.4.0

Published

Experimental package with a stable browser capture-to-explanation adapter for Seqvio

Readme

Seqvio Browser Capture Adapter

A local browser walkthrough adapter with a stable capture contract that executes a validated action plan, captures the page, records cursor/focus/click metadata and exact action start times, then compiles the capture through ExplainerDocument.

BrowserRecordingPlan
  -> RecordingManifest
  -> BrowserCaptureManifest
  -> shared capture dispatcher
  -> BrowserSceneSpec + ExplanationBeat cues/actions
  -> generated TSX + audio-manifest.json
  -> final.mp4

The default server pipeline renders without TTS. Direct CLI jobs can synthesize voiceover with --withAudio; hard captions remain independent and require the additional --burnCaptions flag. Every server and direct job runs capture QA before it is marked complete.

The production pipeline has one composition path. The former direct writeComposition writer has been removed; composition.tsx and audio-manifest.json are generated from the dispatched ExplainerDocument.

Run

From the Seqvio repository root:

npm install
npm run build
node packages/browser-recorder/dist/cli.js serve --port 4175

Open http://127.0.0.1:4175, load the sample plan, then start a recording. Jobs are written to output/browser-recorder/<job-id>/:

Run a validated plan directly without the UI:

node packages/browser-recorder/dist/cli.js record --plan plan.json --jobId demo --json

# Optional narration; add --burnCaptions only when hard subtitles are wanted
node packages/browser-recorder/dist/cli.js record --plan plan.json --jobId narrated --withAudio --provider edge-tts
  • plan.json — validated action plan
  • raw.mp4 — unframed browser capture
  • recording-manifest.json — cursor, click, focus, and exact action timing
  • capture-manifest.json — shared capture contract
  • explainer.json — canonical ExplainerDocument IR
  • audio-manifest.json — per-step narration cues, capture-backed Beats, and scene timing
  • composition.tsx — generated Seqvio composition compiled from IR
  • final.mp4 — smooth-focus result
  • qa-report.json — capture, visual, pacing, media, and audio diagnostics
  • artifacts.json — versioned status and relative artifact paths

CLI contract 2.0 provides structured JSON output, stable exit codes, monotonic progress, and overwrite protection. See docs/CAPTURE-CLI-CONTRACT.md.

Action plan

{
  "version": "1.0",
  "name": "Create a project",
  "startUrl": "https://example.com/app",
  "viewport": { "width": 1280, "height": 720 },
  "captureFps": 15,
  "renderFps": 30,
  "maxZoom": 2.2,
  "privacy": {
    "masks": [
      { "id": "account-email", "selector": "#account-email" },
      {
        "id": "api-token",
        "rect": { "x": 920, "y": 24, "width": 320, "height": 44 }
      }
    ]
  },
  "actions": [
    {
      "id": "project-name",
      "type": "fill",
      "label": "Enter project name",
      "selector": "#project-name",
      "value": "Launch walkthrough"
    },
    {
      "id": "create",
      "type": "click",
      "label": "Create project",
      "selector": "button[type=submit]"
    }
  ]
}

Supported actions: click, fill, scroll, wait, navigate, and press.

privacy.masks applies opaque overlays before page frames are captured. A mask targets either a live CSS selector or a fixed viewport rectangle. Selector masks are required by default: if one never matches during the recording, the job fails instead of silently producing an unprotected video. Use stable, non-sensitive mask ids because ids and match evidence are retained in recording-manifest.json; selectors and page content are not copied there.

AI planner adapter

The recorder does not force one model provider. Set BROWSER_RECORDER_PLANNER_URL to an HTTP endpoint. The endpoint receives the task, start URL, viewport, a compact list of interactive DOM elements, and the output contract. Return either a plan object or { "plan": ... }.

Optional bearer authentication:

$env:BROWSER_RECORDER_PLANNER_URL="http://127.0.0.1:9000/plan"
$env:BROWSER_RECORDER_PLANNER_TOKEN="token"

The UI enables AI 规划 only when the planner URL is configured. Generated plans are validated and remain editable before execution.

Current boundaries

  • Chromium web pages only; no desktop application control.
  • CSS selectors are the deterministic execution contract.
  • Browser privacy protection is declarative and deterministic; automatic OCR is not treated as a security boundary.
  • Authentication can be scripted, but reusable browser profiles are not included yet.
  • Captures page video only. Microphone and system audio are not recorded. Narration is synthesized from the generated cues when direct CLI jobs use --withAudio.
  • Popups, downloads, cross-origin iframes, CAPTCHA, and two-factor authentication require later adapters or human takeover.
  • Job state is in memory while the server is running; artifacts remain on disk.

Timing and QA

New recordings persist actionTimings from the recording clock. Capture steps use these exact values; evenly spaced timing is only a compatibility fallback for older manifests. Each compiled step becomes an ExplanationBeat whose evidence.captureStepId preserves the recorded source frame. After TTS, phrase anchors produce outputFrame values and a semantic browser-video timeMap.

From the repository root, the deterministic 1280x720 release smoke covers the Browser capture, IR compilation, resolved timing, capture-profile QA, MP4 render, and full FFmpeg decode:

npm run smoke:release-pipeline:browser