
Generate QR Codes and Website Screenshots with a Single API — No Puppeteer, No Headless Chrome
You want to generate a QR code or capture a website screenshot in your app. The typical advice? Spin up Puppeteer, install headless Chrome, deal with memory leaks and cold starts. There's a simpler way. Two lightweight APIs running on Cloudflare Workers that handle both — with sub-50ms response times and zero infrastructure on your end. QR Code Generator API Generate QR codes in PNG, SVG, or Base64 format with customizable colors, size, and error correction levels. Quick Start # Generate a PNG QR code curl "https://qr-code-generator-api.p.rapidapi.com/generate?text=https://example.com&size=300&format=png" \ -H "X-RapidAPI-Key: YOUR_KEY" \ --output qr.png JavaScript Example const axios = require ( ' axios ' ); const fs = require ( ' fs ' ); async function generateQR ( text , options = {}) { const { size = 300 , format = ' png ' , color = ' 000000 ' , bgcolor = ' FFFFFF ' } = options ; const response = await axios . get ( ' https://qr-code-generator-api.p.rapidapi.com/generate ' , { para
Continue reading on Dev.to
Opens in a new tab



