Interactive Studio (The Easy Way)
β‘ Interactive Studio β The Easy Way
Section titled ββ‘ Interactive Studio β The Easy WayβThe Interactive Studio is the most intuitive and beginner-friendly way to use Bflow. You donβt need to memorize complex CLI arguments or flags β simply run a single command and navigate with your arrow keys.
π Launching the Studio
Section titled βπ Launching the StudioβRun the CLI workspace command from the repository root:
bun clibun dev starts every development workspace, including the documentation site, and is not an alias for the studio.
π§ Studio Navigation Menu
Section titled βπ§ Studio Navigation MenuβWhen the studio launches, you are presented with a clean, guided interactive wizard:
β β‘ Browser Automation Studioββ What would you like to do?β β π Run a Workflowβ β π΄ Record New Workflowβ β π Run Programmatic Taskβ β π¬ Open Interactive Browser REPLβ β π View Extracted Data & Outputsβ β β Exitπ― Studio Options Walkthrough
Section titled βπ― Studio Options Walkthroughβ1. π Run a Workflow
Section titled β1. π Run a WorkflowβSelect this option to browse and run existing JSON workflow files:
- Auto-detection: The CLI automatically scans the
workflows/directory and lists all available.jsonfiles. - Headed / Headless Mode: Choose whether to run the browser invisibly in the background (Headless) or watch Chrome perform the actions on your desktop (Headed).
- Execution Summary: Displays step-by-step progress, execution time, pass/fail status, and any extracted data in real time.
2. π΄ Record New Workflow
Section titled β2. π΄ Record New WorkflowβSelect this option to start a visual recording session:
- Enter Target URL: Type or paste the initial URL you want to visit (e.g.
https://news.ycombinator.com). - Specify File Name: Enter a destination path (e.g.
workflows/my-recording.json). - Live Chrome Recording: Chrome opens immediately with the In-Page HUD. Your clicks, inputs, assertions, and data extractions are recorded live.
3. π Run Programmatic Task
Section titled β3. π Run Programmatic TaskβRun pre-packaged automation tasks without writing any code:
scrape-hnβ Extracts top stories, ranks, points, and URLs from Hacker News.site-auditβ Measures performance metrics, DOM nodes, load time, and captures full-page screenshots.form-automationβ Automated form filling and validation testing.
The wizard prompts you for customizable task parameters (such as limit, url, etc.) interactively!
4. π¬ Open Interactive Browser REPL
Section titled β4. π¬ Open Interactive Browser REPLβLaunches a live, persistent Chrome DevTools Protocol session with a command-line interface:
- Navigate with
goto <url> - Click elements with
click <selector> - Type text with
type <selector> <text> - Capture screenshots with
screenshot <file.png> - Read text with
text <selector> - Evaluate JavaScript with
eval <expression>
5. π View Extracted Data & Outputs
Section titled β5. π View Extracted Data & OutputsβQuickly inspect extracted results, logs, and screenshots stored in the output/ directory directly within your terminal.
π‘ Why Use Interactive Studio?
Section titled βπ‘ Why Use Interactive Studio?β- Zero Configuration: No need to write scripts or configure headless flags.
- Interactive Prompts: Prompts guide you step-by-step with clear defaults.
- Safe & Clean: Automatic browser lifecycle handling ensures no zombie Chrome processes are left running in the background.