Expand description
arcly-http – NestJS ergonomics meets Rust safety & speed.
§Module layout
| Module | Responsibility |
|---|---|
auth | Identity & access: JWT, cookies, sessions, OAuth2, guards |
core | DI engine + plugin lifecycle (HTTP-agnostic) |
web | HTTP layer: boundary, context, errors, interceptors |
realtime | WebSocket gateways + SSE |
observability | Telemetry, metrics, health, trace propagation |
resilience | Circuit breaker + rate limiting |
Re-exports§
pub use auth::guards;pub use auth::oauth;pub use auth::session;pub use core::plugins;pub use web::cache;pub use web::interceptors;pub use app::App;pub use web::Error;pub use web::RequestContext;pub use futures;pub use inventory;pub use schemars;pub use serde_json;pub use validator;
Modules§
- app
- Launch contract.
- auth
- Identity & Access — JWT, signed cookies, server-side sessions, OAuth2, guards.
- compliance
- Data governance — cross-cutting compliance machinery.
- core
- data
- Datasource contracts: tenant-scoped pools + read/write splitting.
- event
- Lock-free async event bus. Listeners register once; emissions iterate a
frozen snapshot under a single
RwLockread. - http
- Zero-axum public HTTP types.
- messaging
- Event consumer mesh — the inbound half of the event architecture.
- observability
- openapi
- OpenAPI 3.0 spec generation + a tiny Swagger UI page.
- prelude
use arcly_http::prelude::*;brings in everything a user needs.- realtime
- Real-time protocol engine: WebSocket gateways + Server-Sent Events.
- resilience
- Lock-free circuit breaker + the
BreakerOpensentinel surfaced when the breaker is OPEN. - security
- Security headers middleware – a Helmet.js equivalent for arcly-http.
- validation
Validated<T>– type-branded, deserialized-and-validated request payload.- web