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.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-build-a-qr-generator-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-cloudflare-workers-qr-generator-tutorial-se.text | The shell commands required to initialize the QR code generator project using the Cloudflare create command. | Exact payloads, commands, or snippets shown in The shell commands required to initialize the QR code generator project using the Cloudflare create command. |
examples/workers-build-a-qr-generator-cloudflare-workers-qr-generator-project-ini.text | The command used to initialize a new QR code generator project using the Cloudflare Workers create template. | Exact payloads, commands, or snippets shown in The command used to initialize a new QR code generator project using the Cloudflare Workers create template. |
examples/workers-build-a-qr-generator-cloudflare-workers-qr-generator-project-ini-2.text | The command used to initialize the QR code generator project using the cloudflare create command. | Exact payloads, commands, or snippets shown in The command used to initialize the QR code generator project using the cloudflare create command. |
examples/workers-build-a-qr-generator-cloudflare-workers-qr-generator-tutorial-se-2.text | Terminal commands for navigating to the QR code generator project directory. | Exact payloads, commands, or snippets shown in Terminal commands for navigating to the QR code generator project directory. |
examples/workers-build-a-qr-generator-cloudflare-workers-qr-generator-worker-scri.text | A JavaScript worker script implementation that handles requests to generate QR code images. | Exact payloads, commands, or snippets shown in A JavaScript worker script implementation that handles requests to generate QR code images. |
examples/workers-build-a-qr-generator-cloudflare-workers-qr-generator-javascript-.text | A JavaScript worker script that implements a QR code generator using a fetch handler. | Exact payloads, commands, or snippets shown in A JavaScript worker script that implements a QR code generator using a fetch handler. |
examples/workers-build-a-qr-generator-cloudflare-workers-qr-generator-worker-scri-2.text | A JavaScript worker script implementation that handles POST requests to generate QR codes. | Exact payloads, commands, or snippets shown in A JavaScript worker script implementation that handles POST requests to generate QR codes. |
examples/workers-build-a-qr-generator-cloudflare-workers-qr-generator-javascript--2.text | A JavaScript worker script implementation for generating QR codes using the fetch handler. | Exact payloads, commands, or snippets shown in A JavaScript worker script implementation for generating QR codes using the fetch handler. |
examples/workers-build-a-qr-generator-cloudflare-workers-qr-generator-javascript--3.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-cloudflare-workers-qr-generator-npm-install.text | The npm installation command for the qrcode-svg package required to build the QR code generator. | Exact payloads, commands, or snippets shown in The npm installation command for the qrcode-svg package required to build the QR code generator. |
examples/workers-build-a-qr-generator-cloudflare-workers-qr-generator-dependency-.text | The command to install the qrcode-svg package using yarn for the Workers QR code generator tutorial. | Exact payloads, commands, or snippets shown in The command to install the qrcode-svg package using yarn for the Workers QR code generator tutorial. |
examples/workers-build-a-qr-generator-cloudflare-workers-qr-generator-pnpm-instal.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-cloudflare-workers-qr-generator-bun-install.text | The bun command used to add the qrcode-svg dependency to the project. | Exact payloads, commands, or snippets shown in The bun command used to add the qrcode-svg dependency to the project. |
examples/workers-build-a-qr-generator-cloudflare-workers-qr-generator-javascript--4.text | A JavaScript implementation of a Cloudflare Worker that uses the qrcode-svg library to generate SVG QR codes from JSON requests. | Exact payloads, commands, or snippets shown in A JavaScript implementation of a Cloudflare Worker that uses the qrcode-svg library to generate SVG QR codes from JSO... |
examples/workers-build-a-qr-generator-cloudflare-workers-qr-generator-javascript--5.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-cloudflare-workers-qr-generator-javascript--6.text | A JavaScript implementation for a Cloudflare Worker that generates QR codes using the qrcode-svg library. | Exact payloads, commands, or snippets shown in A JavaScript implementation for a Cloudflare Worker that generates QR codes using the qrcode-svg library. |
examples/workers-build-a-qr-generator-cloudflare-workers-qr-generator-deploy-comm.text | The wrangler deploy command used to deploy the QR code generator worker to the Cloudflare network. | Exact payloads, commands, or snippets shown in The wrangler deploy command used to deploy the QR code generator worker to the Cloudflare network. |
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
