KOTLIN OBJECT NOTATION

Configuration,
clearly expressed.

A configuration language with named objects, familiar values, optional schemas, and support for the editor you already use.

FLEET CONFIGURATION.KON
Kfleet.konKON•••
// Each vehicles block adds a vehicle.
Fleet {
    name = "Northstar"
    active = true

    vehicles {
        model = "Comet"
        range = 420
    }
    vehicles {
        model = "Atlas"
        range = 510
    }
}
FLEET.KON✳

Read your first
.kon file.

Open the fleet example in your editor.

Fleet names the root object. Inside its braces, name holds a string and each vehicles block adds one item to a list. Change a model name, then use the converter below to see your edit in JSON.

Download fleet.kon
{ }

Structure that reads naturally

Give objects names, group related values, and repeat blocks for collections.

Aa

Values that feel familiar

Strings, numbers, booleans, lists, and null look the way you expect.

/*

Context stays close

Add comments and documentation where the next reader will need them.

A CLOSER LOOK

One configuration.
Four formats.

Same data, different ways to write it. Select a format to see how it compares with KON.

THE ALTERNATIVE

YAML

Yfleet.yaml•••
name: "Northstar"
active: true
vehicles:
  - model: "Comet"
    range: 420
  - model: "Atlas"
    range: 510
THE KON WAY

KON

.kon
Kfleet.kon•••
Fleet {
    name = "Northstar"
    active = true
    vehicles {
        model = "Comet"
        range = 420
    }
    vehicles {
        model = "Atlas"
        range = 510
    }
}

The same values shown in each format. KON’s named root supplies context in the source.

Schemas and
extensions.

Define a vehicle in one schema, then give it an electric field in another. Both schemas are ordinary KON files.

01

Define a schema

Describe the fields your objects expect.

Download fleet.schema.kon
K fleet.schema.kon
Schema {
    type {
        name = "Fleet"
        fields {
            name = "vehicles"
            type = "List<Fleet.Car>"
        }
        type {
            name = "Car"
            fields {
                name = "model"
                type = "String"
            }
        }
    }
}
02

Extend a type

Address an existing type by its qualified name.

Download electric.schema.kon
K electric.schema.kon
Schema {
    type {
        fqn = "Fleet.Car"
        fields {
            name = "electric"
            type = "Boolean"
        }
    }
}
✳

Bring them together

Use schema directives at the top of an instance file to load both definitions. Your editor can then check the result as you work. Keep all three files in the same directory.

Download electric-fleet.kon
// schema: fleet.schema.kon
// schema: electric.schema.kon
Fleet {
    vehicles {
        model = "Comet"
        electric = true
    }
}

Editor and
command-line tools.

Run the Gradle commands from the project root to build editor support locally.

IJ

IntelliJ plugin

Syntax highlighting and live diagnostics. Build with ./gradlew -p intellij-plugin buildPlugin and install the ZIP from disk.

IntelliJ Platform 2026.3+
VS

VS Code extension

Highlighting, diagnostics, hover, completion, and formatting. Package with ./gradlew vscodePackage and install the VSIX.

Requires Java 17+
</>

Language server

Bring KON support to editors that speak LSP. Build with ./gradlew :lsp:installDist.

Runs over stdio
⌘

konvert

Convert KON to JSON, YAML, or TOML from the command line.

Download konvert
TRY THE CONVERTER $ konvert -f json fleet.kon Download fleet.kon

Install KON.

Use KON with Gradle

Add the public development repository to settings.gradle.kts.

dependencyResolutionManagement {
    repositories {
        mavenCentral()
        maven("https://repo.sellmair.dev/") {
            content { includeGroup("dev.sellmair") }
        }
    }
}

In your module’s build.gradle.kts, add the library to dependencies. For Kotlin Multiplatform, use commonMain.dependencies.

implementation("dev.sellmair:kon:0.0.1")

The KON project

The project includes implementations in Kotlin, Python, and Rust, alongside the language specification and editor tools.

Explore the language