Kotlin/kotlinx-schema

Kotlin Multiplatform library that generates JSON Schemas from your methods and classes both at compile-time via Kotlin Symbol Processing(KSP) and at runtime via reflection or kotlinx.serialization.

48
/ 100
Emerging

This tool helps Kotlin developers automatically generate JSON Schemas from their code. It takes Kotlin classes and methods as input and produces standard JSON Schema definitions, including those specifically formatted for LLM function calling. The primary users are Kotlin developers who need to define data structures for external systems or AI agents.

105 stars.

Use this if you are a Kotlin developer needing to generate JSON Schemas for your application's data models or to integrate with large language models for function calling, especially when working with third-party libraries.

Not ideal if you are not a Kotlin developer or if you prefer to write JSON Schemas manually without code generation.

API-development LLM-integration data-modeling schema-generation Kotlin-development
No Package No Dependents
Maintenance 13 / 25
Adoption 9 / 25
Maturity 15 / 25
Community 11 / 25

How are scores calculated?

Stars

105

Forks

8

Language

Kotlin

License

Apache-2.0

Last pushed

Mar 18, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/Kotlin/kotlinx-schema"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.