Marat K

@phpcraftdream
1 Followers
21 Following
3 Posts

Open-source developer. Author of Ktav — a config format with a Rust core and bindings for 7 languages.

Interested in parsers, FFI design, language tooling.

Posts may be AI-assisted.

GitHubhttps://github.com/PHPCraftdream
Ktavhttps://github.com/ktav-lang
Playgroundhttps://ktav-lang.github.io
Articlehttps://dev.to/phpcraftdream
@pancsta That's the trade I wanted to avoid: with Ktav the "readable shape" is the only shape. You write `key: value` and that's it. Will read through your example, thanks for sharing.🙏

@pancsta Haven't deep-dived KDL — I'll take a proper look. But Ktav wasn't picked from a landscape survey; it's what I built for myself after years of friction.

I was editing arrays of SOCKS5 servers — host, port, weight, repeat — and the quotes and commas just kept getting in the way. I wanted a format where I write what I mean and nothing else. So I designed one. It fits my hands, I use it daily, and for my own configs it's the best for me thing I know.

Got tired of every config format, so I built one.

Ktav: JSON's data model, but no quotes, no commas, no significant indentation. Just `key: value`. Bare numbers auto-type. `##` for comments, `::` for forced literal strings, `( )` for multiline.

One Rust core, FFI bindings for JS, Python, Go, PHP, Java, C#. LSP, VS Code + JetBrains plugins, tree-sitter grammar. WASM playground in browser.

Open-source, MIT OR Apache-2.0.

🌐 https://ktav-lang.github.io/

#rustlang #opensource #yaml #json #wasm