Skip to content

Cloudflare Resources and Usage ​

Resources ​

ResourcePurpose
WorkersAPIs, authentication, and web entry
Static AssetsFrontend HTML, JavaScript, and CSS storage
D1Users, messages, groups, settings, and migration records
KVWeb sign-in sessions
R2Attachments, avatars, and site icons; optional
Durable ObjectsReal-time messaging, call signaling, bridge and notification scheduling
Cron TriggersDelivery recovery every 15 minutes and daily cleanup

View Usage ​

Open each resource's Metrics or Analytics in Cloudflare to inspect Worker requests/CPU, D1 reads/writes, KV operations, and R2 storage/requests. Storage statistics in the admin panel groups attachment usage by owner; a manual scan makes R2 list requests.

Web and File Requests ​

Static Assets stores frontend files. All requests first pass through the Worker's site-setting check; stealth mode also validates sessions. Keep binding = "ASSETS" and run_worker_first = true from the template. See Stealth Mode.

Attachment reads require conversation membership; avatars have separate access rules. Protected files use private caching policies.

Scheduled Tasks ​

The current template uses crons = ["*/15 * * * *"]. The 19:00 UTC run performs daily message cleanup; other runs handle delivery recovery.

Cleanup is batched and budgeted. Remaining work waits for a later cleanup. See Site Configuration for retention and advanced cleanup parameters.

Built on Cloudflare · Designed for self-hosting