Skip to main content
The official figranium NPM package is retired and is not supported from v0.13 onward. Install and run Figranium via Docker or from source instead. The npm/npx commands below are kept for reference for users on older releases.
Figranium can be run entirely from the command line, either as a persistent web server or in standalone modes for one-off scraping and automation tasks.

Global Installation

Or use without installing globally via npx:

Usage

Modes

Start Web Dashboard (Default)

Running figranium with no arguments starts the full web dashboard at http://localhost:11345.

Scraper Mode (--scrape)

Runs a fast, one-off page scrape without full agent logic. Ideal for simple text extraction tasks.
Flags for --scrape: Example — Save to file:

Agent Mode (--agent)

Executes the full block-based automation engine for a saved task.
Flags for --agent: What gets printed:
  • All step-by-step execution logs
  • Final data output as formatted JSON
Example output:

Headful Mode (--headful)

Launches a visible Chromium browser for manual inspection and debugging.
The browser opens on your display (requires a graphical environment). On a headless server, use the VNC integration instead — see Headful Browser.

All Flags Reference

Environment Variables

All CLI modes respect the same environment variables as the server. Set them in your shell or a .env file:

Scripting and Automation

Combine CLI modes with shell scripts for automated pipelines:
Run on a schedule with cron:

Exit Codes

Troubleshooting

Task not found:
The task ID must match exactly as stored in data/tasks.json. Retrieve the correct ID from the web dashboard URL or the REST API (GET /api/tasks). Playwright browsers not installed:
Run npx playwright install chromium to download the required browser binaries.