Platform Control Plane
config
Typed environment + runtime config — Zod schemas at boot, no scattered process.env reads, fail-fast on missing keys.
config.schema.ts4
- config.database.urlstring· required
- config.ai.defaultModelstring· default "claude-sonnet-5"
- config.ai.maxTokensnumber· default 4096
- config.cache.ttlnumber· default 60
validated at startup
More in nebutra.com
- alertingAlert rules + delivery on top of @nebutra/metering. Threshold/anomaly detection, route to PagerDuty, Discord, or in-product banners.
- analyticsFirst-party product analytics on ClickHouse — event ingest, funnel queries, no third-party loader on the marketing site.
- browser-utilsSmall browser helpers every app needs: storage that survives private mode and blocked site data, and fetch with a timeout.
- capability-kitComposable capability primitives — pricing tier ↔ feature flag ↔ quota ↔ UI gating wired into one declarative manifest.
- dbTyped Prisma client wrapper — extension-aware, RLS-friendly, with per-tenant connection pinning when the deployment splits writes from reads.
- errorsTyped application error taxonomy — UserError, AuthError, RateLimitError. Maps cleanly to HTTP, to logs, to Sentry, to the in-product toast.