Back to directory

Konvert

A Kotlin code generator, built on Kotlin Symbol Processing, that produces clean, null-safe mapping code between classes at compile time with no reflection and full Java interoperability.

Konvert

Konvert generates Kotlin mapping code, using Kotlin Symbol Processing, for converting between data classes, enums, value classes, and regular Java-style classes. It is null-safe by default, supports smart conversions such as Int to String or Instant to Date, lets you define reusable custom converters, and can be extended through Java's Service Provider Interface for further control; it also maps collections and maps, including their elements, and gives fine-grained control over how individual properties are mapped.

Mapping code can be requested three ways: annotating a source class to generate a to-extension function, annotating a target class's companion object when the source class cannot be modified, or declaring an interface that Konvert implements as a mapper object. Generated code is produced at compile time, so there is zero reflection and zero runtime overhead, it is fully interoperable with Java, and it works with both Gradle and Maven.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.