←back to thread

67 points hgs3 | 1 comments | | HN request time: 0s | source

Hello everyone, I created Confetti: a simple, typeless, and localization-friendly configuration language designed for human-editable configuration files.

In my opinion, JSON works well for data interchange, but it's overused for configuration, it's not localization-friendly, and it's too syntactically noisy. INI is simple but lacks hierarchical structures and doesn't have a formal specification. Confetti is intended to bridge the gap.

I aim to keep Confetti simple and minimalistic, while encouraging others to extend it. Think of it like Markdown for configuration files: there's a core specification, but your welcome to create your own variations that suit your needs.

Show context
h1fra ◴[] No.43555157[source]
I don't trust a config file that doesn't enforce quotes around strings. it's a footgun especially when it collides with ill-defined boolean
replies(1): >>43555224 #
gampleman ◴[] No.43555224[source]
I think you missed the "typeless" idea. That basically means every value is a string and so it's up for the application to parse and validate.
replies(1): >>43556304 #
h1fra ◴[] No.43556304[source]
so you mean a config file that can have a different meaning depending on who's parsing? sounds nice and not dangerous at all
replies(1): >>43566214 #
1. gampleman ◴[] No.43566214[source]
Isn't the meaning of a config file always dependent on the application you are configuring?