A Cloudflare Worker that analyzes websites for SEO best practices using Cloudflare's Browser Rendering API, Cloudflare Workers AI, Hono, and Durable Objects.
- Analyze SEO of any website
- Checks for common SEO elements:
- Title tag optimization
- Meta description
- Heading structure
- Image alt tags
- Internal/external links
- Performance metrics analysis
- AI-powered scoring and improvementrecommendations
- Mobile-friendly analysis
- Node.js installed
- Cloudflare account
- Wrangler CLI installed (
npm install -g wrangler
)
- Clone the repository:
git clone https://github.com/elizabethsiegle/seo-analysis-browser-rendering-worker.git
cd seo-analysis-worker
- Install dependencies:
npm install
- Configure your Cloudflare credentials:
wrangler login
- Update
wrangler.toml
with your bindings:
[[durable_objects.bindings]]
name = "BROWSERDO"
class_name = "BrowserDo"
[[ai.bindings]]
name = "AI"
- Deploy the worker to Cloudflare:
npx wrangler deploy
OR start the development server:
npx wrangler dev --remote