Optional Edge API

The RECQR web app needs no backend - scanning, image decoding, and QR generation all run in the browser. The Cloudflare Worker in worker/ is an optional, standalone endpoint for generating QR SVGs over HTTP.

SVG output

Returns a crisp SVG or a JSON wrapper.

No auth required

Self-host the Worker; call it directly.

Serverless

Runs on Cloudflare's global edge network.

GET /v1/qr/generate

Query parameters

  • text - content to encode (required)
  • margin - quiet-zone modules (default 2)
  • fg - foreground color (default #000000)
  • bg - background color (default #ffffff)
  • format - svg (default) or json
Terminal
# Generate an SVG QR code (optional server endpoint)
curl "https://your-worker.workers.dev/v1/qr/generate?text=https://example.com"

# With colors and margin
curl "https://your-worker.workers.dev/v1/qr/generate?text=Hello&fg=%236750A4&bg=%23FFFFFF&margin=2"

# JSON response (returns the SVG as a string)
curl "https://your-worker.workers.dev/v1/qr/generate?text=Hello&format=json"
Note: There is no server-side QR decodingendpoint. Decoding camera frames and uploaded images always happens locally with jsQR - by design, because sending those to a server would violate RECQR's privacy model. Official SDKs, dynamic QR codes, analytics, and webhooks are not implemented.