Skip to content

Cloudflare Site Adapters

Site developers use these adapters to connect shared site contracts to Cloudflare storage and event services.

Provider-specific bindings stay outside the core framework. D1 and R2 can hold rebuildable projections while the publishing system retains content ownership.

  • Revisioned D1/R2 snapshot staging, promotion and rollback.
  • Optional D1 commerce, media, experiment and social outbox adapters.
  • Queue and Analytics Engine event sinks.

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.

Terminal window
bun add @dataarthub/eaos-host-site-astro-cloudflare @dataarthub/eaos-host-site-astro astro

Save 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