Skip to content

Developer guide

Run EdgeCart locally, deploy it on Cloudflare, and build on its commerce APIs.

EdgeCart is a TypeScript commerce platform built for Cloudflare Workers. A single Worker serves the storefront, the admin console, and the API. Commerce data lives in D1, product images in R2, and background work (webhooks, email, plugin hooks) moves through a Cloudflare Queue.

What is in the repository

Surface What it does
apps/edgecart Main Worker: storefront, admin, Hono API, Better Auth, D1 access.
apps/edgecart-plugins Plugin kernel: installs, releases, and runs plugin bundles in Dynamic Workers.
apps/edgecart-plugin-assets Serves plugin assets from R2 with strict content and framing rules.
apps/edgecart/workers/outbox Queue consumer for webhooks, email, and plugin hooks.
packages/commerce-* Narrow commerce packages: core, sales, catalog, cart, storefront, orders, payments, order changes, observability.
packages/admin-api, storefront-api, contract Typed clients and the shared API contract.
packages/plugin-* Plugin SDK, runtime, registry, blocks, and CLI.

Explore the guide

Building a plugin? The Plugin guide is a separate top-level section covering the sandbox runtime, manifest, hooks, admin UI, storefront slots, and publishing.

The API reference lists the current public operations, and API conventions explains authentication, errors, pagination, money, idempotency, and rate limits.

Type to search…

↑↓ navigate↵ selectEsc close