Generate screenshots from HTML and CSS, automatically uploaded to Cloudinary
Add your HTML and CSS, then click "Generate & Upload Screenshot"
npm install cloudinary puppeteer puppeteer-core @sparticuz/chromium-minAdd these to your Vercel project settings or .env.local:
CLOUDINARY_CLOUD_NAME=your_cloud_nameCLOUDINARY_API_KEY=your_api_keyCLOUDINARY_API_SECRET=your_api_secretGet these from your Cloudinary Dashboard
POST /api/screenshot
{
"html": "<div>...</div>",
"css": "body { ... }",
"width": 1200,
"height": 800,
"fileName": "screenshot"
}