Cloudflare Site Adapters
Cloudflare Site Adapters
Section titled “Cloudflare Site Adapters”Elevator Pitch
Section titled “Elevator Pitch”Site developers use these adapters to connect shared site contracts to Cloudflare storage and event services.
Why & Value Proposition
Section titled “Why & Value Proposition”Provider-specific bindings stay outside the core framework. D1 and R2 can hold rebuildable projections while the publishing system retains content ownership.
Key Highlights
Section titled “Key Highlights”- Revisioned D1/R2 snapshot staging, promotion and rollback.
- Optional D1 commerce, media, experiment and social outbox adapters.
- Queue and Analytics Engine event sinks.
Quickstart
Section titled “Quickstart”The packages use GitHub Packages. Prerequisites: Bun, access to the package registry, and registry authentication configured outside source files. Examples use fictional site identifiers and reserved example domains.
bun add @dataarthub/eaos-host-site-astro-cloudflare @dataarthub/eaos-host-site-astro astroSave as example.ts, then run bun example.ts.
import { parseCloudflareSnapshotManifest } from '@dataarthub/eaos-host-site-astro-cloudflare';
const manifest = parseCloudflareSnapshotManifest({ schemaVersion: '1', siteId: 'example', revision: 'cms-1', generatedAt: '2026-01-01T00:00:00Z', contentVersion: 'cms-1', mediaVersion: 'cms-1', checksum: 'example-checksum', locales: ['en', 'ja'],});console.log(manifest.revision); // cms-1