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 via Cloudflare Workers.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-build-a-qr-generator-index-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-index-cloudflare-workers-qr-generator-tutor.textThe 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.textThe 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.textThe 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.textShell 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.textA 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.textA 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.textA 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.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-index-cloudflare-workers-qr-generator-javas-5.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-index-cloudflare-workers-qr-generator-tutor-4.textA 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-.textThe 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-.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-index-cloudflare-workers-qr-generator-bun-i.textThe 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.textA 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.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-index-cloudflare-workers-qr-generator-javas-8.textA 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.textA 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

  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/index.md