All blocks
BlocksReal-world Examples

SEO Audit

Use this when a marketing team needs exportable SEO scorecards that check title, meta description, and Open Graph tags and list top fixes for a page.

Loading pattern preview

Problems solved

Technical challenges this implementation handles out of the box.
  • Audit on-page SEO issues from a scraped URL
  • Check title, meta description, Open Graph, and Twitter tags
  • Analyze headings, readability, links, and keyword placement
  • Validate JSON-LD structured data and recommend missing schema
  • Produce scored SEO reports with top priorities

Use cases

Products and workflows this pattern is designed to support.
  • On-page SEO auditing tools
  • Meta tag optimization reviews
  • Internal linking audits
  • Schema markup validation
  • Marketing team SEO scorecards

Compare with

Similar patterns, and when each one is the better fit.

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. 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. 2

    Extract the zip and install dependencies

    Unzip the archive, then run `pnpm install` (or npm / yarn) in the project folder.

  3. 3

    Fill .env.local

    The download includes .env.local placeholders when needed. Add real values for: FIRECRAWL_API_KEY.

  4. 4

    Customize the agent and tool files

    Adapt prompts, tools, and stop conditions in the generated project for your product.

  5. 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

External services

FirecrawlUpstash

Files added

8 files
  • app/page.tsx
  • app/layout.tsx
  • lib/actions.ts
  • lib/analyzers.ts
  • lib/audit-areas.ts
  • lib/seo-types.ts
  • lib/rate-limit.ts
  • README.md

Dependencies

9 total

npm packages

7
@mendable/firecrawl-jsUpstashlucide-reactNext.jsReactsonnerZod

Shadcn IconRegistry components

2
buttoninput

Critical files

2 files
  • lib/analyzers.ts

    Pure analysis functions for meta tags, content structure, links, keywords, schema markup, and aggregate report generation.

  • lib/actions.ts

    Server action using Firecrawl to scrape a URL and extract SEO-relevant context (meta tags, headings, links, images, schema markup).

Requirements

Complexity
Advanced
Setup time
~5 minutes
Node
24+
Memory
256MB
Upstash Redis