Cloud
Architecture
How @axiljs/cloud is organized, how modules relate to the AxilJS ecosystem, and how requests flow through the middleware stack.
Platform Overview
@axiljs/cloud is a unified set of composable capability modules that share a single type system, event bus, and observability layer.
text
Module Dependency Graph
text
Request Lifecycle
text
AxilJS Ecosystem Integration
| Package | Integration |
|---|---|
@axiljs/core | Uses Application, MiddlewareFn, RouteHandler types |
@axiljs/common | Extends axilRequest, axilResponse, throws UnauthorizedError |
@axiljs/events | Emits audit and quota events on the global event bus |
@axiljs/observability | Dashboard pulls from MetricsRegistry and HealthChecker |
@axiljs/security | Rate limiter complements helmet() and cors() |
@axiljs/auth | JWT strategy extracts tenantId from req.locals.user |
@axiljs/config | Secrets manager pairs with defineConfig() for typed env |
@axiljs/orm | Tenant context can be injected into query builders |
@axiljs/queue | Audit events can be routed to durable job queues |
@axiljs/websocket | Correlation IDs propagate to WebSocket sessions |
Full Integration Example
typescript