Products for Kotlin Built for Clarity
A suite of general-purpose libraries for the JVM, with a strong emphasis on correctness, type safety and expressive, idiomatic Kotlin. They fit as cleanly into a small utility as into a large system, without imposing an architecture or locking you into a framework.
onixlabs-kotlin-core
The building blocks the standard library left out
Business rules end up as ad-hoc conditions scattered through the code, conversions between types quietly overflow or lose precision, and the same small helpers get copied from project to project.
Core gives those rules a shape of their own as composable, self-describing specifications, converts between types with explicit overflow and precision checks, and fills the everyday gaps in the standard library.
onixlabs-kotlin-graph
Describe a type once and reuse it everywhere
Validation, mapping and other cross-cutting concerns all need to know the shape of your types, and each one usually works it out in its own way and its own configuration, out of step with the others.
Graph lets you describe each type once in a declarative DSL. The description is immutable and thread-safe, nested types are resolved through a shared registry, and plugins such as validation and projection interpret it, with a precise path to every member.
onixlabs-kotlin-graph-validation
Validation you can inspect
Validation logic tends to scatter across services and controllers, stops at the first problem, and reports errors as strings that are hard to act on, let alone show beside the right field.
Graph Validation declares rules alongside each type's graph, descends into nested objects automatically, and returns every failure with its path and a machine-readable rule identifier. The rules can even be described without a subject, so you can see what will be checked before anything is.
onixlabs-kotlin-graph-projection
Object mapping without the mapping code
Moving data between domain models, DTOs and persistence types means pages of hand-written mapping code that has to change whenever a type does, and fails one field at a time when it's wrong.
Graph Projection maps objects by convention, matching constructor parameters and properties by name and converting types along the way. Where a mapping is unusual, a small DSL covers it, and when something fails, every problem is reported at once with its path.
onixlabs-kotlin-scheduler
Recurring tasks on the calendar's terms
Real schedules are calendar rules: the second Tuesday of every month, every other Friday, the last day of each quarter. Cron expressions struggle to express them, and time zones and daylight saving make them easy to get wrong.
Scheduler expresses those rules directly in a Kotlin DSL, with an explicit time zone for every calendar schedule, and runs tasks in-process with failures isolated per task and clear policies for overlapping and missed runs.
