Zebra - A simple, fast, all-in-one config loader for Zig

Hello dear Zig buddies,

I’ve recently built this library called Zebra: GitHub - omkar-foss/zebra: A simple, fast, all-in-one config loader for Zig. · GitHub

It’s a simple, fast, all-in-one config loader for Zig projects and currently supports reading dotenv, toml, yaml, os env into a map and writing entire merged config to json. Heavily inspired by Viper, a tried and tested Go config loader (and one of my favorite libs).

Tested on Zig 0.15.2 and I’m looking to support future Zig versions of course.

What needs more work:

  1. toml/yaml full spec compliance - need to further improve support
  2. memory leaks as and when we find - i’ve resolved many during branch testing but i think there could be more

Would be lovely to have you all try it out. Pull requests and bug reports are most welcome. Thank you! :grin: :zebra:

8 Likes