Back to ProjectsPlatform

Cortex

Internal developer platform (IDP) that eliminates 2-week bootstrap cycles per microservice. Auto-injects auth, logging, RLS, and multi-tenancy — shipping a standardized foundation on boot.

NestJSPostgreSQL RLSMulti-tenantJWTPino

The Problem

Developer velocity collapsed: every new microservice required 2 weeks of boilerplate for authentication, structured logging, distributed tracing, and tenant-scoped database isolation before a single line of business logic could ship.

System Architecture

Cortex is a NestJS monorepo module that auto-injects PostgreSQL RLS rules, Pino structured logging, and JWT authentication middleware across hundreds of distinct services on boot — an out-of-the-box compliance and observability baseline.

System architecture diagram — coming soon

Technical Challenges & Trade-offs

Safely threading the tenant-ID through thousands of concurrent REST and gRPC requests down to the Prisma/Postgres layer in ephemeral serverless contexts without introducing a god-object dependency.

Business Impact & Metrics

Accelerated company-wide product launch times by 3x. What previously consumed Sprint 0 and Sprint 1 became a runtime concern handled by the platform layer before developers wrote their first route.