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
Download → Next.js app
Use Download → Next.js app in the preview toolbar. You get a zip scaffold (Pro downloads rewrite preview `/view/.../api/*` paths to `/api/*` automatically).
- 2
Extract the zip and install dependencies
Unzip the archive, then run `pnpm install` (or npm / yarn) in the project folder.
- 3
Fill .env.local
The download includes .env.local placeholders when needed. Add real values for: FIRECRAWL_API_KEY, AI_GATEWAY_API_KEY.
- 4
Customize the agent and tool files
Adapt prompts, tools, and stop conditions in the generated project for your product.
- 5
Run the app and open the pattern route
Run `pnpm dev`, open the setup/checklist page if present, then navigate to the generated pattern route 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









