Extract a brand kit

Puppeteer drives a real browser and reads the logo, computed colors and font families straight from the DOM - no AI guesswork. setBypassCSP lets it work even on strict-CSP sites like GitHub and Stripe. Results are cached in Workers KV, so a repeat lookup is instant.

brand.tsPOST/api/brand
const browser = await puppeteer.launch(env.BROWSER)
const page = await browser.newPage()
await page.setBypassCSP(true)
await page.goto(url, { waitUntil: "networkidle2" })
const brand = await page.evaluate(readBrandFromDOM)

No API tokens, no browser to install. The BROWSER binding talks to a real Chromium over Cloudflare's network.

Website URL
The brand kit will appear here