1# diagramzip-api23Cloudflare Worker for accountless diagram.zip persistence. D1 stores mutable4aliases and R2 stores immutable content-addressed bytes.56The committed production route is `diagram.zip/api/v1/*`, keeping the browser7same-origin and avoiding a CSP expansion. The D1 database and R2 bucket names8are configured, but the resources still need to be provisioned before the first9authorized deployment.1011```sh12npm install13npm run generate:types14npm run migrate:local15npm test16npm run check17npm run dev18```1920See [`../../apps/editor/PERSISTENCE.md`](../../apps/editor/PERSISTENCE.md) for the21product, storage, API, and security contracts.