Totem: Crystal configuration with spirit.


What is Totem?

Configuration file formats is always the problem, you want to focus on building awesome things. Totem is here to help with that.

Totem has following features:

Load and parse a configuration file or string in JSON, YAML, dotenv formats. Reading from environment variables. Provide a mechanism to set default values for your different configuration options. Provide an alias system to easily rename parameters without breaking existing code. Write configuration to file with JSON, YAML formats. Uses the following precedence order. Each item takes precedence over the item below it:

  • alias
  • override, explicit call to set
  • env
  • config
  • default

Totem configuration keys are case insensitive.