Remote / foldkit-remote-domain
Choose between Domain and SQL backends
Reach for foldkit-remote-domain when an Alchemy Domain model is already your authority: Events are the source of truth, Aggregates decide commands, and Policies or Projections react to them.
If you just want declared writes, optimistic predictions, and structured refusals over SQLite, D1, or Postgres, use foldkit-remote-server with foldkit-remote-drizzle. In SQL, a write and the row it returns come from the same database transaction, so there is no lagging View to bridge.
Use either foldkit-remote-domain or foldkit-remote-server as the transport for a given authority—stacking them would authenticate and authorize every call twice. Similarly, keep rows in Remote.Model rather than duplicating them with @alchemy.run/domain/Foldkit.