platform surface
Core platform services, data, config, health, and tenancy
- Stability
- Stable
- Scope
- Global
- Boundary
- packages/platform
- edge
- gateway
- services
- platformyou are here
- storage
Uptime
99.88%
p99 latency
32 ms
Active connections
3,490
Active tenants
368
1import { prisma } from "@nebutra/db";
2import { getCurrentTenant } from "@nebutra/tenant";
3
4const tenant = getCurrentTenant();
5
6const posts = await prisma.post.findMany({
7 where: { tenantId: tenant.tenantId, published: true },
8 orderBy: { publishedAt: "desc" },
9 take: 10,
10});error.rate > 5%p95.latency > 800msdisk.usage > 80%alerting
Alert rules + delivery on top of @nebutra/metering. Threshold/anomaly detection, route to PagerDuty, Discord, or in-product banners.
Exploreanalytics
First-party product analytics on ClickHouse — event ingest, funnel queries, no third-party loader on the marketing site.
Explore- config
- db
- queue
- vault
- events
- ai
- tenant
- schedule
pnpm nebutra capability scaffold
capability-kit
Composable capability primitives — pricing tier ↔ feature flag ↔ quota ↔ UI gating wired into one declarative manifest.
Explore- config.database.urlstring· required
- config.ai.defaultModelstring· default "claude-sonnet-4-6"
- config.ai.maxTokensnumber· default 4096
- config.cache.ttlnumber· default 60
validated at startup
config
Typed environment + runtime config — Zod schemas at boot, no scattered process.env reads, fail-fast on missing keys.
Exploredb
Typed Prisma client wrapper — extension-aware, RLS-friendly, with per-tenant connection pinning when the deployment splits writes from reads.
ExploreBILLING_PROVIDER_TIMEOUTQUEUE_RETRY_LIMITAUTH_TOKEN_REFRESHEDat packages/commerce/billing/src/charge.ts:42at @nebutra/queue: retryHandlererrors
Typed application error taxonomy — UserError, AuthError, RateLimitError. Maps cleanly to HTTP, to logs, to Sentry, to the in-product toast.
Explorefeature-flags
Server + client flag evaluator with GrowthBook / Statsig / custom. Per-tenant overrides, sticky bucketing, exported as React hooks.
Exploregateway-core
BFF primitives shared by backends/gateway and edge handlers — middleware chains, route matchers, header normalization, request-id propagation.
Exploregraph-model
Property-graph model layer for knowledge / org / asset graphs. Edges/nodes typed by Zod, persisted via Prisma or Neo4j adapter.
Explorehealth
Liveness + readiness probes for every backend service. Aggregates downstream deps (db, queue, search) into one /healthz response.
Explorei18n
next-intl bridge — runtime locale, ICU plural, currency/date formatters, sided JSON bundles per route. Build-time guarantees on key drift.
Explorelogger
Structured logging with pino + Sentry transport. One log object per request, breadcrumbs forwarded, PII-stripper plugged into the standard sink.
Exploreprovider-factory
Auto-detecting provider factory pattern — env vars choose between queue / search / notifications backends with a single getX() call.
Explore- /api/posts200 ok87 left
- /api/users429 throttledretry-after 12s
rate-limit
Token-bucket rate limiter — Upstash Redis or in-memory. Per-route + per-tenant policy, 429 with retry-after, decision logged for audit.
Explorerepositories
Repository-pattern primitives — findAll, findById, create, update, delete behind one Repository<T>. Swap Prisma for any backend without changing callers.
Explorestatus
Public status page primitives — incident timeline, component graph, subscriber emails. Renders both /status pages and embeddable widgets.
Exploretenant-store
Tenant-bound key/value cache for lookups too hot for the database. Auto-invalidates on tenant settings change.
Exploretrace-store
OpenTelemetry-compatible span store and query layer. Lets agents trace a tool call across iam, billing, and webhooks.
Explore