Install
Install with PiG
pig install npm:@raquezha/nocaptureInstall with Pi
pi install npm:@raquezha/nocapturePackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"skills": [
"nocapture"
]
}README
Written by the package's publisher, shown as published in version 0.6.1 (README.md). PiG does not review it.
@raquezha/nocapture

60fps terminal zoom + typing rendered deterministically from examples/terminal-zoom-typing.html using
nocapture video(MP4 version).
Deterministic local media rendering and validation (PNG, SVG, MP4, and GIF) for writers and developers who want to focus on ideas and let AI agents handle deterministic captures.
Built on playwright-core and your system Chrome with zero external network requests, zero Playwright-cached FFmpeg binaries, and zero --no-sandbox shortcuts.
nocapture is completely style-agnostic: any local HTML, CSS, SVG, Canvas, or WebGL scene works, whether it is a brutalist poster, a 3D/shader experiment, a data visualization, or an editorial card.
Read the backstory on raquezha.net/writing/no-capture or browse the source on GitHub.
Why @raquezha/nocapture (and when to use other tools)
Screen recorders like OpenScreen and Screen Studio are great when you want to record a real live desktop session, webcam, or audio walkthrough. CLI screenshot tools like Simon Willison's shot-scraper are great for automating screenshots of live URLs in Python.
Try those if they fit your workflow. nocapture exists for a different job: no manual screen recording, no retakes, and no acting out demos. You (or your AI agent) write a local HTML/SVG scene, and nocapture renders deterministic PNG, SVG, MP4, and GIF assets straight from code. If one label has a typo, you edit one line and re-run instead of recording the whole take over again.
| Capability | nocapture | OpenScreen / Screen Studio | shot-scraper |
|---|---|---|---|
| Built for live desktop recording | No | Yes | No |
| 2x PNG with SHA-256 repeatability gate | Yes | No | No |
| SVG embedded WOFF2 font + URL audit | Yes | No | No |
Clock-driven MP4 & GIF (renderAt(t)) | Yes | Live timeline | Real-time only |
macOS AVFoundation + Linux libx264 pipe | Yes | Desktop app | No |
| Atomic output (failed run keeps prior file) | Yes | No | No |
Bundled AI Agent Skill (SKILL.md) | Yes | No | No |
Installation & Quick Start
Run directly with npx, or install globally:
# Run without installing
npx @raquezha/nocapture --help
# Or install globally
npm install -g @raquezha/nocapture
30-Second Example
Create a plain HTML scene (e.g.
scene.htmlwith#capturecontainer).Capture a 2x retina PNG (
2400x1350) with overflow, font, and SHA-256 repeatability checks:
npx @raquezha/nocapture image --scene scene.html --width 1200 --height 675 --output comparison.png
Commands
1. Deterministic 2x PNG (image)
article-media image \
--scene examples/comparison-card.html \
--width 1200 --height 675 \
--output out.png
- Freezes CSS animations, transitions, and text carets.
- Waits for
document.fonts.readyand tworequestAnimationFrameflushes. - Asserts exact
#capturebounds and zero scroll overflow (unless--allow-overflowis passed). - Captures twice and compares SHA-256 hashes before writing
--output.
Optional flags: --scale <n> (default 2), --selector <css> (default #capture), --allow-overflow.
2. SVG Portability Check & Preview (svg)
article-media svg \
--input diagram.svg \
--check \
--preview preview.png
Checks:
- Explicit
viewBox, numericwidth, and numericheighton<svg>. - Zero external
http://orhttps://URLs inhref,src,url(...), or@import. - Every
CaveatorInterweight referenced via XML attributes or inlinestyle="..."has a matchingdata:font/woff2;base64,...@font-facerule. - Optional
--preview <file.png>renders the SVG inside an isolated<img>tag in Chrome so you can inspect the exact output.
3. Clock-Driven MP4 & GIF (video)
Scenes define a pure window.renderAt(seconds) function instead of wall-clock CSS or requestAnimationFrame timers:
<script>
window.renderAt = (seconds) => {
const progress = Math.min(1, seconds / 4);
document.getElementById("box").style.transform = `scale(${1 + 0.25 * progress})`;
};
</script>
Render keyframes first, then encode the full .mp4 or .gif:
# Step 1: Inspect start, middle, and end keyframes (<output>.preview/)
nocapture video \
--scene examples/terminal-zoom-typing.html \
--duration 6 --fps 60 --width 1280 --height 720 \
--output demo.mp4 --preview
# Step 2: Encode full 60fps MP4 or 24fps GIF
nocapture video \
--scene examples/terminal-zoom-typing.html \
--duration 6 --fps 60 --width 1280 --height 720 \
--output demo.mp4
# Optional: Mux an external audio track (.wav, .m4a, .mp3, .aac) into MP4
nocapture video \
--scene tutorial.html \
--duration 6 --fps 60 --width 1280 --height 720 \
--audio voiceover.m4a \
--output tutorial.mp4
--audio strictly muxes an input file you provide (recorded voiceover, TTS track, or UI click Foley) trimmed to --duration. nocapture never synthesizes audio itself: garbage in, deterministic garbage out.
Backwards compatibility: story-video render ... forwards directly to article-media video ....
4. Batch Manifest (batch)
Keep one media.json manifest alongside an article and regenerate or verify every asset in one command:
article-media batch --manifest media.json
[
{ "kind": "image", "scene": "card.html", "width": 1200, "height": 675, "output": "out/card.png" },
{ "kind": "svg", "input": "flow.svg", "preview": "out/flow-preview.png" },
{ "kind": "video", "scene": "demo.html", "duration": 5.5, "fps": 60, "width": 1280, "height": 720, "output": "out/demo.mp4" }
]
Using With AI Coding Agents & Team Distribution
The real superpower of nocapture is that you chat with your agent, and the agent builds verified media for you.
In practice, teammates don't sit in terminal memorizing CLI flags like --duration 6 --fps 60 --width 1280 --height 720. They will be in Claude, Antigravity, ChatGPT, or Cursor, prompting:
"Make a 60fps video showing our new PR flow and check it."
You don't need to build or maintain an internal wrapper tool:
- No setup overhead:
npm i -g @raquezha/nocaptureneeds only Node and Chrome. On macOS, there is zero FFmpeg or native build setup needed. - Zero boilerplate: The agent writes the HTML/CSS scene on demand, tailored to whatever was asked.
- The agent is the wrapper:
@raquezha/nocapturebundles a native Agent Skill ("pi": { "skills": ["nocapture"] }) that teaches agents the exact 5-step workflow out of the box.
The 5-Step Agent Workflow
- Define a one-sentence claim and choose SVG, PNG, or MP4/GIF.
- Author a self-contained local scene (never fake historical product screenshots).
- Run
nocapturewith deterministic checks. - Visually inspect the rendered PNG or
--previewkeyframes before approving (including a peak-zoom frame before full video encodes, readable typing cadence, and measured DOM click targets). - Publish and mirror assets without leaving temp files behind.
Share across your team
- Claude (Team / Enterprise Admin): Upload the
nocapture/skill folder (SKILL.md+references/) as an organization-wide Skill in Admin Settings so everyone gets it automatically without local setup. - ChatGPT (Team / Enterprise): Create a workspace-shared Custom GPT with
nocapture/SKILL.mdas Instructions andnocapture/references/style-and-review.mdas Knowledge (plus a quickstart note fornpx @raquezha/nocapture). - Coding agents (Pi, Antigravity, Claude Code, Cursor): Bundle the skill in npm or symlink it globally / per workspace:
mkdir -p ~/.gemini/config/skills
ln -sfn "$(pwd)/nocapture" ~/.gemini/config/skills/nocapture
Or link it per workspace under .agents/skills/nocapture.
Platform Requirements & Determinism
- macOS: Google Chrome installed and Swift / Xcode Command Line Tools (
AVFoundationfor MP4,ImageIOfor GIF). - Linux: System Chrome or Chromium plus
ffmpeg(libx264) andffprobe(MP4 streams viaimage2pipe, GIF usespalettegen/paletteuse). Even--widthand--heightare required foryuv420pH.264. - Browser override: Set
ARTICLE_MEDIA_CHROME(orSTORY_VIDEO_CHROME) to point to a custom Chrome/Chromium executable. - Cross-OS flags: Launches Chrome with
--font-render-hinting=noneand--force-color-profile=srgb(plus--disable-dev-shm-usageon Linux), and locks context tocolorScheme: "light",locale: "en-US",timezoneId: "UTC", andreducedMotion: "reduce".
Examples
- examples/terminal-zoom-typing.html: smooth 60fps camera zoom and character-sliced typing driven purely by
window.renderAt(seconds). - examples/comparison-card.html: 1200x675
#capturetemplate for 2x PNG figures (preview below). - examples/mobile-figma-canvas.html: Figma-style mobile screen canvas with bound token inspector (preview below).
- examples/non-figma-scene.html: non-product scene for render and readability checks.


License
MIT