cloudflare · Cloudflare Workers Docs
Workers Build a QR code generator
A step-by-step tutorial for creating, developing, testing, and deploying a Cloudflare Worker application that generates QR codes using JavaScript.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Build a QR code generator
A step-by-step tutorial for creating, developing, testing, and deploying a Cloudflare Worker application that generates QR codes using JavaScript.
When To Use
Use when you need to implement a serverless function that processes incoming requests to generate and return QR code images via Cloudflare Workers.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-build-a-qr-generator-index-workflow-guide.md | A step-by-step tutorial for building and publishing a Cloudflare Worker application that generates QR codes using JavaScript. | Questions about a step-by-step tutorial for building and publishing a Cloudflare Worker application that generates QR codes using Jav... |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-tutor.text | The initial setup commands and project initialization steps for building a QR code generator using Cloudflare Workers. | Exact payloads, commands, or snippets shown in The initial setup commands and project initialization steps for building a QR code generator using Cloudflare Workers. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-tutor-2.text | The terminal command used to initialize the QR code generator project using the Cloudflare Workers create command. | Exact payloads, commands, or snippets shown in The terminal command used to initialize the QR code generator project using the Cloudflare Workers create command. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-proje.text | The command to initialize a new Cloudflare Workers project for a QR code generator using pnpm. | Exact payloads, commands, or snippets shown in The command to initialize a new Cloudflare Workers project for a QR code generator using pnpm. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-tutor-3.text | Shell commands for navigating to the project directory and initializing the QR code generator workspace. | Exact payloads, commands, or snippets shown in Shell commands for navigating to the project directory and initializing the QR code generator workspace. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-javas.text | A JavaScript worker script implementation that handles requests to generate QR codes using a web worker environment. | Exact payloads, commands, or snippets shown in A JavaScript worker script implementation that handles requests to generate QR codes using a web worker environment. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-javas-2.text | A JavaScript worker script that implements a QR code generator using a POST request handler. | Exact payloads, commands, or snippets shown in A JavaScript worker script that implements a QR code generator using a POST request handler. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-javas-3.text | A JavaScript implementation of a Cloudflare Worker fetch handler that processes POST requests to generate QR codes. | Exact payloads, commands, or snippets shown in A JavaScript implementation of a Cloudflare Worker fetch handler that processes POST requests to generate QR codes. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-javas-4.text | A JavaScript implementation of a Cloudflare Worker that handles POST requests to generate QR codes. | Exact payloads, commands, or snippets shown in A JavaScript implementation of a Cloudflare Worker that handles POST requests to generate QR codes. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-javas-5.text | A JavaScript implementation of a Cloudflare Worker that handles POST requests to generate QR codes. | Exact payloads, commands, or snippets shown in A JavaScript implementation of a Cloudflare Worker that handles POST requests to generate QR codes. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-tutor-4.text | A step-by-step tutorial guide for building a QR code generator using Cloudflare Workers and the qrcode-svg library. | Exact payloads, commands, or snippets shown in A step-by-step tutorial guide for building a QR code generator using Cloudflare Workers and the qrcode-svg library. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-yarn-.text | The yarn command used to add the qrcode-svg dependency to the Cloudflare Workers project. | Exact payloads, commands, or snippets shown in The yarn command used to add the qrcode-svg dependency to the Cloudflare Workers project. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-pnpm-.text | The pnpm command used to add the qrcode-svg dependency for the Workers QR code generator tutorial. | Exact payloads, commands, or snippets shown in The pnpm command used to add the qrcode-svg dependency for the Workers QR code generator tutorial. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-bun-i.text | The bun command used to add the qrcode-svg dependency for the Workers QR code generator tutorial. | Exact payloads, commands, or snippets shown in The bun command used to add the qrcode-svg dependency for the Workers QR code generator tutorial. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-javas-6.text | A JavaScript implementation for a Cloudflare Worker that generates SVG QR codes using the qrcode-svg library. | Exact payloads, commands, or snippets shown in A JavaScript implementation for a Cloudflare Worker that generates SVG QR codes using the qrcode-svg library. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-javas-7.text | A JavaScript implementation of a Cloudflare Worker that processes POST requests to generate QR codes. | Exact payloads, commands, or snippets shown in A JavaScript implementation of a Cloudflare Worker that processes POST requests to generate QR codes. |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-javas-8.text | A JavaScript implementation of a Cloudflare Worker that uses the qrcode-svg library to generate QR codes via POST requests. | Exact payloads, commands, or snippets shown in A JavaScript implementation of a Cloudflare Worker that uses the qrcode-svg library to generate QR codes via POST req... |
examples/workers-build-a-qr-generator-index-cloudflare-workers-qr-generator-tutor-5.text | A step-by-step tutorial guide for building a QR code generator using Cloudflare Workers. | Exact payloads, commands, or snippets shown in A step-by-step tutorial guide for building a QR code generator using Cloudflare Workers. |
What This Skill Covers
- In this tutorial, you will build and publish a Worker application that generates QR codes.
- Main sections:
Tags,Before you start,1\. Create a new Workers project,2\. Handle Incoming Request,3\. Build a QR code generator.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/tutorials/build-a-qr-code-generator/index.md
