Files
the_order/packages/shared
defiQUG 6a8582e54d feat: comprehensive project structure improvements and Cloud for Sovereignty landing zone
- Add Cloud for Sovereignty landing zone architecture and deployment
- Implement complete legal document management system
- Reorganize documentation with improved navigation
- Add infrastructure improvements (Dockerfiles, K8s, monitoring)
- Add operational improvements (graceful shutdown, rate limiting, caching)
- Create comprehensive project structure documentation
- Add Azure deployment automation scripts
- Improve repository navigation and organization
2025-11-13 09:32:55 -08:00
..

@the-order/shared

Shared utilities for The Order services.

Features

  • Error Handling: Standardized error handling middleware
  • Environment Validation: Type-safe environment variable validation
  • Logging: Structured logging with Pino
  • Security: Security middleware (Helmet, CORS, rate limiting)
  • Middleware: Common middleware utilities (correlation IDs, request logging)

Usage

import {
  errorHandler,
  createLogger,
  registerSecurityPlugins,
  addCorrelationId,
  getEnv,
} from '@the-order/shared';

// Error handling
server.setErrorHandler(errorHandler);

// Logging
const logger = createLogger('my-service');

// Security
await registerSecurityPlugins(server);

// Middleware
addCorrelationId(server);

// Environment variables
const env = getEnv();