Active Development: KmpKt is in active early development (pre-1.0); APIs, module boundaries, and configuration DSLs may still change between releases.
Welcome to KmpKt — compact CQRS, event sourcing, and typed messaging for Kotlin, built on compile-time dependency injection.
- Why KmpKt? - Background, Symfony inspiration, and credits.
- Getting Started — Adding KmpKt to a Gradle project, setting up
io.kmpkt.di, and wiring your firstKmpKtApplication. - Module Guide — What each module does and when to include it.
- CQRS & Event Sourcing — How commands, queries, events, aggregates, policies, and projections fit together, and when to use CQRS with or without event sourcing.
- Todo List — CQRS without Event Sourcing — Minimal
application using
CommandBus,QueryBus,EventBus, andKmpKt.run. - Todo List — CQRS + Event Sourcing — Same domain rebuilt with event-sourced aggregates, projections, and policies.
- Modulith Todo Example — Independent
todos,audit,telemetry, andfeaturesmodules composed with compile-time decorators. - Messenger Tooling Example — Multi-bus routing, custom middleware stamps, priority handlers, async worker retries, and dead-lettering.
- Scoped Contexts Example — Compile-time scoped child
containers with
ContextFactory,ContextScope,invoke, andopen/closelifecycles.