Description
f(model) is a Kotlin library for functional, algebraic and reactive domain modeling, aimed at event sourcing and CQRS. The README says it provides just enough tactical domain-driven design patterns for those styles. It can be used as a multiplatform library, as an inspiration, or both. The domain module is written in plain Kotlin with no additional dependencies and is kept separate from the application layer and API concerns, so it declares the program logic only. The application layer loads state, runs domain components and stores the new state. It comes in two flavors. application-vanilla uses plain Kotlin, and application-arrow uses Arrow and Either to manage errors more cleanly. You can use the domain library alone and write your own orchestration, or use either application flavor, or both. The README's table of contents covers multiplatform support, the abstraction and generalization behind the design, and the decide function. The project is on GitHub.…
Highlights
- Domain modeling for event sourcing and CQRS
- Plain Kotlin domain module with no extra dependencies
- Application layer in vanilla Kotlin or Arrow
- Kotlin Multiplatform support
- Use as a library or as inspiration
Ratings & Reviews
No ratings yet
Be the first to rate Fmodel.
People also visit
Kotlin Result
A multiplatform Result monad for modelling success or failure operations

compose-multiplatform-patterns
Compose Multiplatform and Jetpack Compose patterns for KMP projects

kotlin-patterns
Idiomatic Kotlin patterns, best practices, and conventions for building robust
Fmodel FAQ
What is fmodel?
A Kotlin library of tactical domain-driven design patterns for event sourcing and CQRS.
Do I need Arrow?
No. The application-vanilla flavor uses plain Kotlin. The application-arrow flavor uses Arrow and Either for error handling.
Can I use only the domain part?
Yes. The README says you can use the domain library alone and model the orchestration yourself.
Does it support multiplatform?
Yes. The project is described as Kotlin Multiplatform.
Does the domain module have dependencies?
The README says the domain library is written in Kotlin without additional dependencies.
What are the best Fmodel alternatives?
Popular alternatives to Fmodel include Alkaa, Kotlin Result and Arrow Meta. See all Fmodel alternatives







