Overview
netrun-shared-ts is a monorepo containing 11 shared TypeScript packages used across all Netrun Systems projects. Built with Turborepo and npm workspaces.
Packages
| Package | Purpose |
|---|---|
@netrun/auth-client |
Session + JWT auth, RBAC middleware, password hashing |
@netrun/db-config |
Drizzle + postgres.js connection factory |
@netrun/security-middleware |
Helmet, CSRF (HMAC double-submit), rate limiting |
@netrun/error-handling |
Error classes, Express error handler, correlation IDs |
@netrun/health |
/health, /ready endpoint factory |
@netrun/validation |
Zod schemas, Express validation middleware |
@netrun/logger |
Pino structured logging + request middleware |
@netrun/email |
Email service abstraction |
@netrun/stripe-client |
Stripe client factory, webhook handler |
@netrun/azure-secrets |
Key Vault with caching, retry, env fallback |
@netrun/api-client |
Typed fetch wrapper with retry |
Build Commands
cd /data/workspace/github/netrun-shared-ts
npm install
npx turbo build # Build all packages
npx turbo test # Run all tests
npx turbo typecheck # Type check all
Usage
Projects reference packages via file: protocol in package.json. Build shared-ts before building dependent projects.