Skip to content

Durable Objects

  • FlareDurableObject Base class for Flare Durable Objects.
  • durable Resolves a named Durable Object stub from a typed namespace.
  • DurableState Framework service exposing a Durable Object’s DurableObjectState (ctx) as a per-instance singleton.
  • DurableState Framework service exposing a Durable Object’s DurableObjectState (ctx) as a per-instance singleton.
  • FlareDurableObject Base class for Flare Durable Objects.
  • composeDurableInstance Composes one DO instance’s per-instance lazy container, seeding DurableState and Bindings for the given state and env, and returns a DurableHandler you can drive in-process for white-box tests.
  • durable Resolves a named Durable Object stub from a typed namespace.
  • makeEnv Wraps a plain bindings object as Cloudflare.Env for passing to composeDurableInstance or a terminal’s fetch(req, env, ctx) signature.
  • makeFakeDurableState Builds a fake DurableObjectState for unit-testing Flare’s per-instance DI without a real DO binding.
  • makeFakeStorage Minimal in-memory DurableObjectStorage stub covering the KV subset of the interface: get, put, delete, and list.
  • DurableAddressingOpts Options for durable(...) placement.
  • DurableStub The stub durable() returns: the native stub with a raw-tunnel fetch plus the state-carrying forward.

Last updated: