Record Web PoC Video (MP4 / GIF)
record-pocCapture automated video walkthroughs of web or localhost PoCs with virtual cursor, click ripples, HUD captions, and dummy-data injection. Export MP4 or GIF.
Instructions
Record an automated video walkthrough of a web PoC or localhost service with an animated virtual cursor, click ripples, optional step HUD captions, and dummy data injection (localStorage, sessionStorage, HTTP route mocks, HTML replacements, or post-load JS). Outputs H.264 .mp4, palette-optimized .gif, or both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frame rate for GIF/MP4 conversion (default 15). | |
| url | Yes | Target web service URL to record (e.g. `http://localhost:47891`). | |
| steps | No | Ordered sequence of browser interactions to perform during the recording. | |
| width | No | Viewport and video width in pixels (default 1440). | |
| format | No | Output video format: `mp4` (H.264), `gif` (2-pass palette), `both` (generates .mp4 and .gif), or `webm`. | both |
| height | No | Viewport and video height in pixels (default 900). | |
| show_hud | No | Show bottom HUD banner when steps include a `caption`. | |
| gif_width | No | Target width in pixels for GIF output (preserves aspect ratio with Lanczos scaling). | |
| init_script | No | Optional JavaScript snippet injected via `context.add_init_script` before page load. | |
| mock_routes | No | Optional HTTP route mocks returning dummy JSON/text responses for matching requests. | |
| output_path | Yes | Destination file path (or base path when `format='both'`). Relative paths resolve against the configured output directory or current working directory. | |
| show_cursor | No | Show animated virtual cursor and click ripples in the recording. | |
| post_load_js | No | Optional JavaScript executed immediately after initial page load (e.g. to inject dummy datasets and re-render before choreography starts). | |
| local_storage | No | Key-value entries pre-populated into `window.localStorage` before page scripts run (values may be strings or JSON objects). | |
| session_storage | No | Key-value entries pre-populated into `window.sessionStorage` before page scripts run. | |
| html_replacements | No | Optional HTML response replacements applied on the fly to the main document before rendering. |