Public
Remixed
Starter template with client-side React & Hono server
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

screenshot-generator

A Val Town HTTP val that captures full-page screenshots of any URL via Browserbase + headless Chromium.

  • GET / — form to enter a URL
  • GET /view?url=... — result page that embeds the screenshot
  • GET /api/screenshot?url=... — raw image/png bytes

Env vars

  • BROWSERBASE_API_KEY
  • BROWSERBASE_PROJECT_ID

Architecture

Rendering mermaid diagram...