Skip to content
CAI
Produce a survey ↗Verify a survey

Kotlin/kotlinx.serialization

kotlinx.serialization is a multi-platform serialization library for Kotlin that provides a unified API for converting data to and from various formats, including JSON, Protobuf, CBOR, HOCON, and Java Properties. The system supports serialization across JVM, JS, Native, and Wasm targets, offering built-in handling for standard types like Instant and Uuid, as well as polymorphic and sealed class hierarchies. It also includes streaming capabilities for efficient I/O operations and integrates with Okio and kotlinx-io for high-performance data processing.

55.5

Adequate · 2 August 2026

28k

lines of production code

Kotlin

primary language

2

bus factor · 226 authors in all

3

measurements over time

CAI band scale
CAI trend line

How it got here

2017–2020 · multi-format serialization expansion

The project significantly expanded its serialization capabilities by introducing support for Protobuf, CBOR, and HOCON formats, alongside a major architectural shift to a modular 'core' library. This period also focused on stabilizing the public API, enhancing cross-platform compatibility, and improving internal performance and error handling across all supported targets.

50 changes

2021–2022 · JSON performance and platform support

This period focused on optimizing JSON serialization performance through memory pooling and stream-based APIs on the JVM, while extending native platform support for internal components. The team also introduced Okio integration, added HOCON format support for duration types, and significantly expanded test coverage for JSON edge cases and platform-specific behaviors.

31 changes

2023–2026 · Wasm support and IO integration

This period focused on expanding platform support by adding Kotlin/Wasm capabilities and integrating kotlinx-io for streaming JSON serialization. The team also enhanced test coverage for Protobuf conformance and sequential decoding behavior to ensure stability across the new targets.

11 changes

CAI lens gauges

Survey your own repository

Kotlin/kotlinx.serialization was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 2 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 25c2a755cb — the exact code this score is about.
  • Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.
CAI link cards