Prerequisites#
- Deno 1.40+ or Deno 2
- A Firecrawl API key — get one free
Setup#
Create main.ts:
Search the web#
Add a /search route that searches the web and returns results with full page content.
Scrape a page#
Add a /scrape route to extract clean markdown from any URL.
Interact with a page#
Add an /interact route to control a live browser session — click buttons, fill forms, and extract dynamic content.
Run locally#
Deploy#
Install the Deno Deploy CLI (deployctl) and deploy:
Set the environment variable in the Deno Deploy dashboard or via CLI:

