
TypeScript deserved a real DDD framework - so I built one
When I moved from Java to TypeScript a few years ago, most things got easier. The tooling was lighter, the iteration speed was faster, and the type system - while different - was surprisingly expressive once you learned to lean into it. But when I needed Domain-Driven Design, I hit a wall. In Java, DDD frameworks are mature and plentiful. Axon Framework gives you aggregates, event sourcing, and sagas out of the box. The patterns are well-established, the tooling is battle-tested, and the ecosystem assumes you'll want to model your domain properly. In TypeScript? The options were thin. NestJS has a CQRS module , but it requires buying into the entire NestJS ecosystem. Its DI container, its decorators, its module system. If you're already on NestJS, that's fine. But if you're working in an existing codebase, or you just want DDD primitives without adopting an opinionated application framework, it's a non-starter. I looked at wolkenkit , which was genuinely promising; a CQRS and event sou
Continue reading on Dev.to
Opens in a new tab


