Alchemy Ships DDD Library for Effect: Commands, Aggregates and Events as Code

samgoodwin89 · x · 2026-10-27

samgoodwin89 released @alchemy.run/domain, bringing domain-driven design to Effect: Commands declare requests and all outcomes, Aggregates decide against state and emit Events, with Views/Projections/Policies for queries and side effects. The same model runs in-memory for tests and on Cloudflare Durable Objects in production (one ordered partition per key). A full deposit-money example shows commands, aggregates, and story()-based given/when/then tests. Context also notes all 2,850 AWS bindings now work from any cloud since beta.83.

Related event: Alchemy Brings Domain-Driven Design to the Effect Ecosystem(3 posts)→

Original post →

More from Infra

Infra channel →