alepha@docs:~/docs/packages/alepha/actor$
cat core.md | pretty
1 min read
Last commit:

#Alepha - Actor

#Installation

Part of the alepha package. Import from alepha/actor.

npm install alepha

#Overview

Pure synchronous JSON reducers with independent default/keyed snapshots. Node and Bun use volatile per-container Memory unless Redis is selected.

#API Reference

#Primitives

  • $actor - Declare independent default and keyed actor state from an atom descriptor.

#Providers

  • ActorCodec - Lossless JSON snapshots and protocol-v1 validation shared by actor providers.
  • ActorHost - One instance's serialized protocol KV snapshots on SQLite-backed storage.
  • ActorHostRegistry - Runtime-neutral native-host declarations, visible without starting the app.
  • ActorHostRuntime - Common app/environment resolution, namespace lookup and specialized startup.
  • ActorProvider - Actor snapshot transport. Browser and native execution is unsupported.
  • ActorRegistry - Per-container declaration allowlist, independent of the local atom store.
  • AlephaActorDurableObject - Native workerd-only adapter for the shared actor host.
  • CloudflareActorProvider - Routes independent encoded actor identities to the shared native host.
  • MemoryActorProvider - Volatile actor snapshots scoped to one container, serialized per identity.