Prerequisites#
- Node.js 18+
- A Firecrawl API key — get one free
Setup#
Add your API key to .env:
Search the web#
Scrape a page#
Interact with a page#
Use interact to control a live browser session — click buttons, fill forms, and extract dynamic content.
As a Fastify plugin#
Encapsulate the client in a plugin for reuse across routes:
Register the plugin, then use fastify.firecrawl in any route:

