Quick Start
Install
npm install webreelInitialize
npx webreel initThis creates a webreel.config.json:
{
"$schema": "https://webreel.dev/schema/v1.json",
"videos": {
"my-video": {
"url": "https://example.com",
"viewport": { "width": 1080, "height": 1080 },
"steps": [
{ "action": "pause", "ms": 500 },
{ "action": "click", "text": "Get Started" },
{ "action": "key", "key": "cmd+a" },
{ "action": "pause", "ms": 1000 }
]
}
}
}urlis the page to open.viewportsets the video resolution.stepsis the list of actions to perform.
Record
npx webreel recordOutput is written to videos/my-video.mp4. Set the output field to use .gif or .webm instead.
Prerequisites
- Node.js (v18+)
Chrome and ffmpeg are auto-downloaded to ~/.webreel on first use, or you can set CHROME_PATH, CHROME_HEADLESS_PATH, and FFMPEG_PATH.
Next steps
- Configuration - all config options
- Actions - click, type, scroll, drag, and more
- Commands - CLI reference
- Examples - full working demos