Skip to content
PackagesFoundationDocs 1.3.x

@connectum/interceptors

ConnectRPC middleware for errors, validation, timeouts, resilience, logging, serialization, and method routing.

Install

bash
npm install @connectum/interceptors
bash
pnpm add @connectum/interceptors
bash
bun add @connectum/interceptors

Start 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 pointUse it to
createDefaultInterceptorsBuild the ordered default chain; resilience remains opt-in.
createMethodFilterInterceptorApply an interceptor to selected methods.
createErrorHandlerInterceptorNormalize and sanitize handler failures.

Runtime boundaries and extension seams remain in Connectum Runtime Architecture.

Learn / Configure / API Reference

Compare all Connectum packages by capability.