Get started in three steps
This guide walks you through creating and recording your first webreel video.Install webreel
Install webreel using npm, yarn, or pnpm:
Need Node.js 18 or higher? See the installation guide for system requirements.
Create a config file
Initialize a new webreel config file:This creates a
webreel.config.json file with a basic configuration:webreel.config.json
Record your video
Run the record command to generate your video:webreel will:
The first run will download Chrome and ffmpeg automatically (approximately 200MB total). This one-time download may take a few minutes.
- Launch a headless Chrome browser
- Navigate to the specified URL
- Execute each step in sequence
- Capture screenshots at approximately 60fps
- Encode the final video with ffmpeg
videos/my-first-video.mp4.Complete example: Login form
Here’s a more realistic example that demonstrates typing into form fields:webreel.config.json
- Opens your login page at a 1920x1080 viewport
- Types an email address into the
#emailfield with realistic character delay - Types a password into the
#passwordfield - Clicks the “Sign In” button
- Waits 2.5 seconds to show the result
Preview before recording
Test your config in a visible browser window without recording:- Debugging selector issues
- Timing your steps correctly
- Verifying animations and transitions
Expected output
After recording completes, you’ll see:videos/ directory will contain:
my-first-video.mp4: The final encoded videomy-first-video.jpg: A thumbnail image (by default from the first frame)
Next steps
Now that you’ve recorded your first video, explore more features:CLI commands
Learn about all available commands including watch mode and validation
Configuration
Explore all config options, actions, and advanced features
Actions reference
Complete reference for all available actions (click, type, scroll, drag)
Examples
Browse example configs for common use cases