@connectum/interceptors
ConnectRPC middleware for errors, validation, timeouts, resilience, logging, serialization, and method routing.
Install
bash
npm install @connectum/interceptorsbash
pnpm add @connectum/interceptorsbash
bun add @connectum/interceptorsStart Here
typescript
import { createDefaultInterceptors } from '@connectum/interceptors';
const interceptors = createDefaultInterceptors({
timeout: { duration: 10_000 },
validation: true,
});For a complete, source-verified workflow, continue with the focused guide below.
Key Entry Points
| Entry point | Use it to |
|---|---|
createDefaultInterceptors | Build the ordered default chain; resilience remains opt-in. |
createMethodFilterInterceptor | Apply an interceptor to selected methods. |
createErrorHandlerInterceptor | Normalize and sanitize handler failures. |
Runtime boundaries and extension seams remain in Connectum Runtime Architecture.
Learn / Configure / API Reference
- Learn: Focused guide
- Configure: Task and configuration guidance
- API reference: Exact options and symbols
- Package API index: Generated TypeDoc
- Source: @connectum/interceptors on GitHub
Related Modules
Compare all Connectum packages by capability.