flarer
Rust library + CLI for Cloudflare's Browser Rendering REST API.
flarer exposes every Browser Rendering tool — content, screenshot,
pdf, snapshot, markdown, scrape, json (LLM extraction), links,
crawl — through a small, typed client and an interactive command-line
front-end.
Install
As a CLI
As a library
[]
= "0.1"
For library-only use (no clap / inquire / dotenv / tracing-subscriber):
= { = "0.1", = false }
Configuration
flarer needs a Cloudflare account ID and an API token with the
Browser Rendering permission.
# Optional: where binary artifacts (PNG, PDF) are written.
The CLI also reads .env automatically.
CLI usage
# Interactive (prompts for URL, tool, options)
# One-shot
Increase log verbosity:
FLARER_LOG=flarer=debug
Library usage
use ;
async
LLM JSON extraction
use ;
use json;
async
Custom HTTP client / mock server
use Duration;
use ;
use Url;
#
Examples
Features
| Feature | Default | Pulls in |
|---|---|---|
cli |
yes | clap, inquire, dotenv, tracing-subscriber |
Minimum Supported Rust Version
1.85 (edition 2024).
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.