Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-build-a-qr-generator-workflow-guide.mdA 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.textThe 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.textThe 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.textThe 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.textTerminal 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.textA 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-.textA 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.textA 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.textA 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.textA 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.textThe 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-.textThe 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.textThe 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.textThe 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.textA 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.textA 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.textA 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.textThe 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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