Foundation
@connectum/core
Server lifecycle, service registration, configuration, TLS, and in-process clients.
createServer · defineService · createCatalogClient
Connectum builds on ConnectRPC to give TypeScript services a common way to start, stop and connect request middleware. Your API stays in Protobuf; handlers use the generated types.
Use it when you want shared service conventions instead of assembling lifecycle, middleware and service-call wiring separately for each application. Direct ConnectRPC can be enough for a small endpoint or an application whose existing setup already meets those needs. Connectum is not required just to get typed Protobuf RPCs.
defineService() binds your handlers.createServer() registers and runs services.Your handlers contain the business logic.
Native gRPC and bidirectional streams require HTTP/2.
.proto services, RPC methods and messages.protobuf-es generates TypeScript descriptors and message types.Start with one protected RPC, from a small contract to an authenticated response. The manual tutorial also explains the server foundation without the CLI.
ConnectRPC supplies the RPC layer; protobuf-es supplies generated message and service types; Protovalidate supplies constraint validation. Connectum adds a shared server lifecycle, explicit module composition and typed catalog calls. Runtime checks depend on the middleware and configuration you actually connect. See Guarantees and limits for prerequisites, enforcement layers, limitations and source/test evidence.
Connectum does not provide an ORM, frontend framework, or CommonJS build. Public packages ship compiled ESM for Node.js >=22.13.0; direct TypeScript execution requirements are documented in Runtime Compatibility.
See Connectum Runtime Architecture for process boundaries and extension points. The ADR index records design decisions, including why capabilities remain separate modules.
Each module has a Guide for its usage and a generated API for exact symbols. Installation and behavior live with the Guide that owns that capability.
Foundation
Server lifecycle, service registration, configuration, TLS, and in-process clients.
createServer · defineService · createCatalogClient
Foundation
Error handling, validation, timeouts, resilience, and method-scoped middleware.
createDefaultInterceptors · createMethodFilterInterceptor
Security
JWT, gateway, session, internal-service authentication, and authorization.
createJwtAuthInterceptor · createAuthzInterceptor · requireAuthContext
Communication
Proto-first publish and subscribe with middleware, retries, and dead-letter handling.
createEventBus · MemoryAdapter · createBroadcastSubscribers
Communication
NATS JetStream adapter for the Connectum EventBus.
NatsAdapter · NatsAdapterOptions
Communication
Kafka and Redpanda adapter for the Connectum EventBus.
KafkaAdapter · KafkaAdapterOptions
Communication
Redis Streams and Valkey adapter for the Connectum EventBus.
RedisAdapter · RedisAdapterOptions
Communication
AMQP and RabbitMQ adapter with topology and reliable-publishing controls.
AmqpAdapter · AmqpAdapterOptions
Operations
OpenTelemetry tracing, metrics, logging, providers, and client/server instrumentation.
createOtelInterceptor · initProvider · getLogger
Operations
gRPC health protocol, HTTP probes, readiness state, and Kubernetes integration.
Healthcheck · healthcheckManager · ServingStatus
Operations
gRPC Server Reflection for schema inspection and client tooling.
Reflection · collectFileProtos
Tooling and testing
Service scaffolding, service generation, version inspection, and reflection-based proto sync.
connectum init · connectum generate service · connectum proto sync
Tooling and testing
Buf plugin that generates typed service-catalog call and stream mappings.
protoc-gen-connectum-catalog
Tooling and testing
Supported test servers, local transports, parity helpers, collectors, and assertions.
createTestServer · withTestServer · createLocalClient
Tooling and testing
Low-level mock factories and protobuf descriptor fixtures for advanced test tooling.
createMockRequest · createFakeService · createMockStream