[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/core](../README) / config

# config

The `@zerotal/core/config` subpath — the runtime configuration system.

Config lives in a set of `config/*.ts` files, each default-exporting one
namespace object (`config/app.ts` → the `app` namespace). [configLoader](functions/configLoader)
discovers and loads them synchronously into a [ConfigLoader](classes/ConfigLoader), which the
application hands to a [ConfigManager](classes/ConfigManager) — the store that serves
dot-path reads/writes behind the `Config` facade and the `config()` helper.
[AppConfig](functions/AppConfig) builds the framework's own `app` namespace with defaults,
and the [ConfigRegistry](interfaces/ConfigRegistry) interface makes dot-path access type-checked.

The everyday `config()` helper lives on the kernel barrel (`@zerotal/core`);
the symbols here are the lower-level classes and types used when defining or
wiring configuration.

## Example

```ts
import { configLoader } from "@zerotal/core/config";
import { Application } from "@zerotal/core";

// In the entry script — load and validate config, then boot the app.
const config = configLoader("./config").validate();
const app = Application.create({ config });
```

## Errors

- [ConfigValidationError](classes/ConfigValidationError)

## Other

- [AppTlsConfig](interfaces/AppTlsConfig)
- [ConventionsConfig](interfaces/ConventionsConfig)
- [AppAssetsConfig](interfaces/AppAssetsConfig)
- [AppConfigShape](interfaces/AppConfigShape)
- [AppConfig](functions/AppConfig)
- [ConfigMap](type-aliases/ConfigMap)
- [ConfigLoader](classes/ConfigLoader)
- [configLoader](functions/configLoader)
- [ConfigManager](classes/ConfigManager)
- [ConfigRegistry](interfaces/ConfigRegistry)
- [ConfigPath](type-aliases/ConfigPath)
- [ConfigValue](type-aliases/ConfigValue)
- [ConfigIssueLevel](type-aliases/ConfigIssueLevel)
- [ConfigIssue](interfaces/ConfigIssue)
- [ConfigValidationContext](interfaces/ConfigValidationContext)
- [ConfigValidator](type-aliases/ConfigValidator)
- [RegisteredConfigValidator](interfaces/RegisteredConfigValidator)
