Firecrawl Brand PDF
Firecrawl Brand PDF
Generate structured brand brief PDFs from any website URL using Firecrawl branding extraction and JSON Render PDF streaming.
Problems solved
- Generate structured brand brief PDFs from a website URL
- Extract branding, markdown, and screenshot context with Firecrawl
- Stream PDF sections through JSON Render
- Organize token candidates and implementation recommendations
Use cases
- Founder launch brand briefs
- Design system baseline analysis
- Brand consistency audit PDFs
- Agency brand intake reports
Setup
Requirements, wiring steps, and what this pattern adds to your project.
Getting started
Pick how you want to pull this pattern in. Then wire env vars and routes the same way.
- 1
Install from the preview toolbar

Copy the install command above and run it in your project — Pro patterns include a short-lived token.
- 2
Add environment variables to .env.local
FIRECRAWL_API_KEY, AI_GATEWAY_API_KEY
- 3
Point client fetches at your API routes
Replace preview `/view/.../api/...` paths with `/api/...` in the installed files.
- 4
Customize the agent and tool files
Adapt prompts, tools, and stop conditions for your product — Copy for AI in the toolbar helps seed that work.
- 5
Run your dev server and open the pattern route
Install dependencies if needed, then start the app and verify responses.
Environment variables
Capabilities
AI SDK APIs
streamTextgatewayProviders
External services
Files added
12 filesapp/page.tsxapp/layout.tsxapp/api/firecrawl-brand-pdf-generate/route.tsapp/api/pdf/route.tsapp/api/pdf/brand-pdf-document.tsxlib/catalog.tslib/examples.tslib/branding-types.tslib/font-mapping.tslib/firecrawl-cache.tslib/rate-limit.tsREADME.md
Dependencies
17 totalnpm packages
12
Registry components
Critical files
firecrawl-brand-pdf-generate/route.tsCore pipeline: URL validation, Firecrawl scrape (branding/markdown/screenshot), context normalization, and streamed JSON Render PDF generation.
components/firecrawl-brand-pdf-demo.tsxThree-pane UI for prompting, live JSON spec, and PDF preview with download flow.
Requirements
- Complexity
- Advanced
- Setup time
- ~8 minutes
- Node
- 24+
- Memory
- 256MB









