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.
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.
Stars
105
Forks
8
Language
Kotlin
License
Apache-2.0
Category
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.
Higher-rated alternatives
square/kotlinpoet
A Kotlin API for generating .kt source files.
dromara/fast-request
IntelliJ IDEA plugin Fast Request
ZacSweers/MoshiX
Extensions for Moshi including IR plugins, moshi-sealed, and more.
cnrture/QuickProjectWizard
🚀 Ultimate Android development companion for Android Studio. Create projects with modern...
theEvilReaper/DartPoet
A Kotlin API which allows the generation of code for dart