Skip to content

Example applications

This catalog contains ordinary tenant applications. Provision the resources declared by the selected project, configure Wrangler, and deploy it with your organization token. Platform installation does not populate an organization with these applications.

Sum canary

sum is the deliberately small compute baseline. It validates request routing and JSON execution without a data-service dependency:

curl -sS -H 'content-type: application/json' \
  -H 'Host: sum.<namespace>.workers.ermahgerd.localhost' \
  -d '{"a":20,"b":22}' http://127.0.0.1:8080/sum

Order desk

Open the Worker URL shown in the console. The static interface and HTTP API are one Worker; background fulfillment is a second Worker.

  1. POST /api/orders validates an order, records its short-lived status in KV, and durably sends the complete order to order-events.
  2. order-processor consumes the message at least once. It writes the immutable JSON transaction to the order-archive R2 bucket, updates the operational SQLite database through its D1 binding, and publishes the completed status to KV.
  3. The browser polls the status capability, then shows the database-backed order list and a link to the R2 archive returned through the API Worker.

The consumer uses deterministic object keys and database upserts. Reprocessing the same queue message therefore converges on one order and one archive object rather than duplicating business state. The example demonstrates a useful at-least-once consumer; it is not a distributed transaction across R2, SQLite, and KV.

Key files:

  • examples/order-pipeline/api — HTTP API and static UI.
  • examples/order-pipeline/processor — queue consumer.
  • examples/order-pipeline/migrations — operational schema.

Production Worker examples

The photo publishing workflow and uptime monitor are independent Wrangler projects with their own application code, tests, and operating guidance.

Those applications use only the public tenant API and ordinary Wrangler. Moving their source does not move their stable Worker routes or durable resources, and the platform installation does not deploy them through Ansible. The photo application continues to demonstrate an Access-protected studio, queue-backed Images processing, AI enrichment, R2 storage, D1 catalog, and a public gallery. The uptime application demonstrates Access, Cron, durable queue probes, encrypted endpoint credentials, and bounded D1 history.

EmDash compatibility application

examples/emdash-blog is the released EmDash Cloudflare blog scaffold, not a platform-specific port. It is deliberately not part of the platform installation. Its normal Wrangler resource discovery, provisioning, secret, deploy, and repeat-deploy paths exercise the larger compatibility contract. See Run EmDash.

Durable counter

durable-counter is a normal Wrangler application with one native SQLite-backed Durable Object class. Named counters retain values through code deployments and shard restarts; the same class demonstrates an alarm, native RPC, and WebSocket hibernation handlers. Its stable placement and lifecycle history are visible in Compute → Durable Objects, filtered to the owning Worker. See Durable Objects.

Workflow approval

workflow-approval is a normal Wrangler application that demonstrates durable multi-step execution. Its browser interface starts a document request, observes it while it waits without a live process, and delivers an approval or rejection event. The same history and lifecycle controls appear under Compute → Workflows in the tenant console. See Workflows.

Artifacts reader

artifacts-reader declares the native ARTIFACTS binding and reads a file from an organization repository without a Git or platform credential in application code. Configure its REPOSITORY variable, deploy it with ordinary Wrangler, and request /?ref=main&path=README.md. See Repositories and builds.

Documentation site

ermahgerd-docs publishes this repository’s guides with Cloudflare Nimbus, including search, screenshots, architecture diagrams, and Markdown discovery. It uses a normal assets-only Wrangler deployment, without a private platform deployment path. See Publish the documentation site.

Each deployed Worker and backing resource appears in the tenant console and consumes the organization’s normal quotas. Use the console to configure Access, inspect telemetry, and manage resources after Wrangler publishes the project.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close