Skip to content

Adapters

Adapters define backend capabilities for durable and ephemeral storage.

Adapters implement one or both interfaces: DurableAdapter and EphemeralAdapter.

interface AdapterCapabilities {
git: boolean
push: boolean
fetch: boolean
history: boolean
pr: boolean
ttl: boolean
maxBlobSize?: number
latencyClass: 'local' | 'edge' | 'regional'
}

Rules:

  • Durable adapters must be git: true.
  • Ephemeral adapters may be git or non-git.
  • Router validates adapter pairing at construction.

Provider matrix details live in the Adapters Overview.