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.

Installation

Usage

Modes

Running figranium with no arguments starts the full web dashboard at http://localhost:11345.
Runs a fast, one-off page scrape without full agent logic. Ideal for simple text extraction tasks.
Flags for --scrape:Example — Save to file:
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:
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:

Exit Codes

Troubleshooting

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).
Run npx playwright install chromium to download the required browser binaries.

REST API

Programmatically trigger tasks and manage executions via HTTP.

Task Scheduling

Automate recurring runs with cron and frequency-based schedules.

Configuration

Environment variables and server configuration reference.