Hacker News

dmarcotte
Show HN: KSON, a love-letter to the humans maintaining computer configuration kson.org

Hi friends, I'm really excited to introduce KSON, which just entered public beta!

Anywhere a human is reading or editing YAML/JSON/TOML, KSON may be used as a more effective interface on that data. If you are such a human, we invite you to participate in this beta.

tl;dr Check out the website [1], play with the online playground [2], install the library for your programming language [3], edit in your favorite editor [4], discuss and give feedback [5], contribute to the project [6].

(A personal note about this project: I love software. Machines made of words! Such a wonder. KSON itself, as a collection of words that both make a machine and explain that machine, is an expression of a lot ideas I feel really passionately about around software and our relationship to it. I've put a lot of love into trying to make that expression eloquent and reliable. I hope some of that comes through clearly, and I look forward to discussing this more over time with anyone who's interested)

One of the key things KSON wants to say is: let's keep everything that's great about YAML and JSON as "Configuration User Interfaces", and let's make those interfaces more toolable, robust, and fun. Here's some of the ways we do that:

- KSON is a verified superset of JSON, has native JSON Schema support, transpiles cleanly to YAML (with comments preserved!), and is likely available wherever you want it—current supported platforms: JS/TS, Python, Rust, JVM, and Kotlin Multiplatform.

- KSON is also widely available in developer tools, with support for VS Code, Jetbrains IDEs, and anywhere you can plug in an LSP.

- KSON is fully open source, licensed under Apache-2.0, and you are invited to meet its words and tinker with how they make its machine. A lot of care, craft, attention and joy went into making the KSON project understandable and approachable for developers. We hope to see you around.

PS. This is an HN-friendly version of the official announcement at <https://kson.org/docs/blog/2025/09/17/introducing-kson/>.

[1]: https://kson.org/

[2]: https://kson.org/playground/

[3]: https://kson.org/docs/install/#languages

[4]: https://kson.org/docs/install/#editor-support

[5]: https://kson-org.zulipchat.com/

[6]: https://github.com/kson-org/kson


zahlman23 minutes ago

So the point is that you can use the nth competing standard, and transpile it to whatever the other systems need?

What about manipulating the data?

Does it support embedded comments, like TOML does? What happens if you round-trip that through JSON? What about the other superset features?

What does KSON stand for?

There's a lot said about JSON and YAML on the main page, but why is this better than TOML?

wofo7 hours ago

I met Daniel (creator of KSON) a while ago and have helped out with a few things, working towards this first beta release. I don't want to hijack the comments section, but there's an article I just finished writing that might shed a bit of context into why KSON exists. It's called "Configuration files are user interfaces" (see https://ochagavia.nl/blog/configuration-files-are-user-inter...). Hope it helps folks understand where KSON is coming from!

elviskahoro4 hours ago

So incredibly excited for this to come out! What an improvement in the quality of life for developers! My hunch is that this will also come in handy when sending data into LLMs, being able to reduce input tokens without losing fidelity is becoming an ever more important ordeal.

nkko7 hours ago

Nice to see this out there! Been playing with the token efficiency, looks like around 10% savings vs regular JSON/YAML. Not massive but it adds up. The embedded code thing is cool. Tired of configs that need weird templating or scripts all over the place just to do basic logic. Will check this out on some projects.

jared-jesionek6 hours ago

Excited for the GA of KSON! We've been exploring the alpha to help us build a DSL for a data viz tool and it's been really cool.

hn-front (c) 2024 voximity
source