platformpackages/platform/config
config package
Typed environment + runtime config — Zod schemas at boot, no scattered process.env reads, fail-fast on missing keys.
- Stability
- Stable
- Scope
- Global
- Boundary
- packages/platform/config
configpackages/platform/config
Foundational layer
Runtime stack5 layers
- edge
- gateway
- services
- platformyou are here
- storage
Uptime
99.98%
Resolved configconfig.config
Uptime
99.98%
+0.09%
p99 latency
37 ms
-2%
Active connections
3,507
Active tenants
215
+12%
packages/platform/configplatform · Lowest shared layer · zero-app coupling
Usageconfig.ts
typescriptconfig.ts
1import { defineConfig } from "@nebutra/config";
2
3export const config = defineConfig({
4 database: {
5 url: { env: "DATABASE_URL", required: true },
6 },
7 ai: {
8 defaultModel: { default: "claude-sonnet-4-6" },
9 maxTokens: { default: 4096, type: "number" },
10 },
11});
12
13const dbUrl = config.database.url; // typed + validated at startup