Ferret v2 embeds a declarative FQL runtime in Go (and related tooling) to query browsers, APIs, databases, and host values for structured extraction workflows.
Overview
Ferret is a declarative, expression-oriented language and embeddable runtime for automating structured data work. Programs query, transform, synchronize, and return results while hosts control which functions, modules, and external capabilities are exposed.
Version 2 introduces a bytecode virtual machine, portable compiled programs, capability-based host values, event-driven synchronization, and managed lifecycles for connections and streams. Browser automation integrates through Chromium and CDP, with Docker images documented for browser-backed workloads.
Go applications embed the native v2 API directly, while a compatibility adapter helps migrate older v1 integrations incrementally. Additional docs cover CLI usage, test runners, web workers, Wire-based exposure, and self-hosted worker deployment options.
FQL stays focused on data automation rather than general scripting, combining declarative queries with constrained mutable state where orchestration requires it.
Key features
- Embeddable Go runtime
- FQL declarative queries
- Browser CDP automation
- Bytecode VM execution
- Host capability sandboxing
- Async event synchronization
- v1 compatibility adapter
- CLI and worker integrations
Use cases
- Structured web scraping pipelines
- Embeddable extraction DSLs
- Browser-driven automation
- Multi-source data fusion