lightbend/config
View on GitHub ↗ ★ 6,321 Java
configuration library for JVM languages using HOCON files
62 mentions on Hacker News by 55 people: 6 stories, 56 comments · first 2011-12-09 · latest 2025-10-13
20082026
-
This looks like an anemic HOCON[0] clone. 0 - https://github.com/lightbend/config/blob/main/HOCON.md
comment by AdieuToLogic · 2025-10-13 · in MAML – A new configuration language -
I find HOCON[0] to be great for this need in JVM-based languages. 0 - https://github.com/lightbend/config/blob/main/HOCON.md
comment by AdieuToLogic · 2024-12-08 · in JSON5 – JSON for Humans -
…I got bit by corner cases maybe three or four times, and they didn't take long to debug. [0] https://github.com/lightbend/config/blob/main/HOCON.md
comment by rubinelli · 2024-11-13 · in Docker Compose Isn't Enough -
I don‘t understand why HOCON ( https://github.com/lightbend/config/blob/main/HOCON.md ) isn‘t used more often (at least for configuration use cases). It‘s a superset of JSON, has comments, multiline strings, optional quotes, replacement…
comment by metanonsense · 2023-09-21 · in XML is better than YAML – Hear me out -
…inheritance and text block support which were essential for me are nicely supported in HOCON. [0] https://github.com/lightbend/config/blob/main/HOCON.md
comment by theanonymousone · 2023-09-21 · in XML is better than YAML – Hear me out -
I always liked HOCON for this, but it never really took off outside of some scala ecosystems: https://github.com/lightbend/config/blob/master/HOCON.md
comment by wtf_is_up · 2023-09-02 · in Toml-bench – Which toml package to use in Python? -
Another alternative is HOCON: https://github.com/lightbend/config/blob/master/HOCON.md I'd describe it as JSON-like with much more flexible syntax and the ability to reference itself.
comment by overgard · 2023-05-21 · in TOML: Tom's Obvious Minimal Language -
…that make it both more readable and easier to use. Here's a rundown of HOCON's main features: https://github.com/lightbend/config#features-of-hocon
comment by vvillena · 2023-04-23 · in Ron: Rusty Object Notation -
…part is really still providing if you don't need the full functionality of Kubernetes. [1] https://github.com/lightbend/config/blob/main/HOCON.md
comment by mike_hearn · 2023-02-21 · in Make systemd better for Podman with Quadlet -
…edge cases, but is still a lot easier to write than JSON. There's also a relatively tight spec. https://github.com/lightbend/config/blob/main/HOCON.md We use an extended version of it for our app and the resulting config is pretty clean.…
comment by mike_hearn · 2023-01-12 · in The Yaml document from hell -
…files that can be imported to others. And substitutions. Basically HOCON known on the JVM as https://github.com/lightbend/config
comment by 62951413 · 2022-01-22 · in Typed Config Languages -
…then I noticed you have mentioned it already :- ) So, the project you linked to is Java / Scala: https://github.com/lightbend/config And there're also (basic? complete?) HOCON parsers in Javascript and Rust — I investigated this a while…
comment by KajMagnus · 2021-04-22 · in Zellij – A Terminal Workspace and Multiplexer -
Take a look at HOCON (Human-Optimized Config Object Notation) https://github.com/lightbend/config/blob/main/HOCON.md
comment by rch · 2021-04-22 · in Zellij – A Terminal Workspace and Multiplexer -
What about HOCON? https://github.com/lightbend/config/blob/master/HOCON.md
comment by mikey_p · 2021-04-22 · in Zellij – A Terminal Workspace and Multiplexer -
There is. It's called HOCON and I'm surprised it's not mentioned yet: https://github.com/lightbend/config/blob/master/HOCON.md HOCON is the "human optimised config object notation" and is a superset of JSON. All valid JSON is valid HOCON…
comment by thu2111 · 2021-02-27 · in Intercal, YAML, and Other Horrible Programming Languages -
…support of Java properties syntax makes it a little weird to use in a JavaScript centric stack. [1] https://github.com/lightbend/config/blob/master/HOCON.md
comment by femto113 · 2020-08-24 · in Dnjs: A pure subset of JavaScript that wants to replace configuration languages -
If you're in the Java world, HOCON is pretty neat. https://github.com/lightbend/config
comment by hocuspocus · 2020-04-12 · in YAML: Probably not so great after all (2019) -
HOCON is what you want: https://github.com/lightbend/config
comment by ex3ndr · 2020-04-05 · in Configs suck? Try a real programming language -
https://github.com/lightbend/config/blob/master/HOCON.md#hoc...
comment by ehosca · 2020-04-05 · in Configs suck? Try a real programming language -
…concatenation of unquoted values is where it goes off the rails for me. This is quite the gotcha: https://github.com/lightbend/config/blob/master/HOCON.md#not... My wishlist for a friendlier JSON would be, in priority order: - Allow…
comment by iainmerrick · 2020-03-11 · in MessagePack: like JSON, but fast and small -
…want to change just one value, you can add that to the 'end' of the HOCON file and be GTG. [1] - https://github.com/lightbend/config/blob/master/HOCON.md
comment by to11mtm · 2020-03-10 · in MessagePack: like JSON, but fast and small -
…I haven't seen an in depth analysis of it. This is the canonical parser for JVM based languages — https://github.com/lightbend/config , are there many other implementations that are widely used?
comment by SeanA208 · 2019-08-18 · in YAML: Probably not so great after all -
Whole bunch of other ports into different languages too: https://github.com/lightbend/config#other-apis-wrappers-port... Thanks for pointing me to that - I'm working in Scala on server-side and JS on browser-side for a couple of years now,…
comment by azernik · 2019-04-13 · in JSON as configuration files: please don’t (2016) -
…existing config values. Fills 90% of what I see people asking for in terms of programmability. https://github.com/lightbend/config/blob/master/HOCON.md#goa...
comment by azernik · 2019-04-13 · in JSON as configuration files: please don’t (2016) -
It’s a bit lesser known but I’m a fan of HOCON (human optimised config object notation). https://github.com/lightbend/config/blob/master/HOCON.md If that’s not an option I’d prefer xml (with some sadness). JSON is a bad idea for the…
comment by overgard · 2019-04-13 · in JSON as configuration files: please don’t (2016) -
I've had good experiences on the JVM using HOCON [1]. [1]: https://github.com/lightbend/config/blob/b782a2d701fc2b04579...
comment by mkobit · 2019-04-13 · in JSON as configuration files: please don’t (2016) -
For those looking for JSON-like alternative, I recommend HOCON: https://github.com/lightbend/config/blob/master/HOCON.md
comment by wiradikusuma · 2019-04-13 · in JSON as configuration files: please don’t (2016) -
Another potential option, is Lightbend Config https://github.com/lightbend/config It adds includes/inheritance, substitutions, unit of measure parity , comments , and few other things -- on top of JSON. does not have if-logic, loops, or…
comment by 75dvtwin · 2019-03-21 · in In Defense of YAML -
…approach is great, but only for JS projects. For Scala (or any other JVM environment) I use https://github.com/lightbend/config . It doesn't get better than that.
comment by sbok · 2018-07-19 · in JSON isn't a good configuration language -
For more complex config, I highly recommend HOCON ( https://github.com/lightbend/config/blob/master/HOCON.md ), and its parser in Java ( https://github.com/lightbend/config ). It feels like Scala (Lightbend is the company behind Scala) in…
comment by wiradikusuma · 2018-07-13 · in Toml: Tom's Obvious, Minimal Language -
You'd really like HOCON[0] then. Just a bit too complicated to see wide adoption I'm afraid. 0 - https://github.com/lightbend/config/blob/master/HOCON.md
comment by kodablah · 2018-06-20 · in YAML: probably not so great after all (2017) -
…basically a superset of JSON that fixes all he things that make it annoying for config files. [1] https://github.com/lightbend/config
comment by dtech · 2017-12-15 · in The Last JSON Spec -
…is so cool! Just what I (and so many others) are looking for. Can it handle typesafe's config too? https://github.com/typesafehub/config/
comment by TokenDiversity · 2017-07-15 · in Ask HN: What is your password management solution? -
btw. one of my favorite config is HOCON. it allows ini style and json style. https://github.com/typesafehub/config/blob/master/HOCON.md
comment by merb · 2017-07-01 · in Cicada – Unix shell written in Rust -
there's also a little blurb at https://github.com/typesafehub/config#rationale-for-supporte...
comment by hp · 2017-05-11 · in HOCON – Human-Optimized Config Object Notation -
…with the use of Scala's triple-quotes - Reference other values with the use of in-line variables - https://github.com/typesafehub/config/blob/master/HOCON.md#s...
comment by dwiechert · 2017-05-11 · in HOCON – Human-Optimized Config Object Notation -
Here are some examples https://github.com/typesafehub/config#examples-of-hocon
comment by adrianN · 2017-05-11 · in HOCON – Human-Optimized Config Object Notation -
We have had good luck with HOCON for config files: https://github.com/typesafehub/config/blob/master/HOCON.md
comment by steveax · 2016-10-26 · in Parsing JSON is a Minefield -
This is what I use, it's very good. https://github.com/typesafehub/config
comment by ronnier · 2016-10-26 · in Parsing JSON is a Minefield -
https://github.com/typesafehub/config/blob/master/HOCON.md
comment by kozhevnikov · 2016-10-26 · in Parsing JSON is a Minefield -
…Out of projects approaching the issue from the opposite angle ("smarter JSON"), I think HOCON ( https://github.com/typesafehub/config/blob/master/HOCON.md ) is the most promising. Compared to Hjson ( http://hjson.org/ ), it is less likely…
comment by networked · 2016-09-04 · in Bugs in the YAML specification -
https://github.com/typesafehub/config/blob/master/HOCON.md makes it specified.
comment by lmm · 2016-08-26 · in The Fixing-JSON Conversation -
…because it's simple. Who really needs something more oriented for humans, take a look at HOCON. https://github.com/typesafehub/config
comment by meirelles · 2016-08-21 · in Fixing JSON -
I feel like HOCON fills the space pretty well, and has implementations in most languages now. https://github.com/typesafehub/config But I'm a scala developer so I might be biased.
comment by ninjakeyboard · 2016-04-14 · in Hjson, the Human JSON -
My personal favorite is HOCON from Typesafe, https://github.com/typesafehub/config#examples-of-hocon
comment by ddispaltro · 2016-04-13 · in Ignition: A new CoreOS machine provisioning utility -
I believe HOCON has these features: https://github.com/typesafehub/config/blob/master/HOCON.md#s...
comment by redtuesday · 2016-03-05 · in In defense of Unix -
Check out Jsonnet and HOCON. Jsonnet: http://google.github.io/jsonnet/doc/ HOCON: https://github.com/typesafehub/config/blob/master/HOCON.md
comment by alopecoid · 2015-08-09 · in Show HN: JSONPlus: a json parser with self reference and templating -
…to focus on improving the HOCON spec rather than building yet another configuration json superset. https://github.com/typesafehub/config/blob/master/HOCON.md
comment by clarkm · 2015-01-04 · in Universal configuration language -
The Typesafe Config is somewhat similar in the JVM world. https://github.com/typesafehub/config
comment by jermo · 2015-01-04 · in Universal configuration language -
Typesafe have something similar, HOCON: https://github.com/typesafehub/config/blob/master/HOCON.md
comment by njs12345 · 2014-10-09 · in Hjson, the Human JSON