Foundation
@connectum/core
Server lifecycle, service registration, configuration, TLS, and in-process clients.
createServer · defineService · createCatalogClient
Microservices framework
Connectum provides a TypeScript service runtime for proto contracts, request middleware, security, observability, and operations.
Fits your stack
ConnectRPC supplies the RPC layer. Connectum adds a shared server lifecycle and optional modules for security, telemetry and events.
See what Connectum owns → · Runtime requirements and limits →
From contract to handler
Define the API in Protobuf, generate its types and implement the handlers as ordinary functions. Register services, middleware and protocols with createServer().
import { createServer } from '@connectum/core';
import { Healthcheck } from '@connectum/healthcheck';
import { createDefaultInterceptors } from '@connectum/interceptors';
import { Reflection } from '@connectum/reflection';
import { greeterService } from './services/greeterService.ts';
const server = createServer({
services: [greeterService],
port: 5000,
protocols: [Healthcheck({ httpEnabled: true }), Reflection()],
interceptors: createDefaultInterceptors(),
shutdown: { autoShutdown: true },
});
await server.start();Illustrative deployment diagrams, not live redeployment. Profile calls Users and Avatars. Local and remote are relative to Profile: its process is blue, and remote processes are amber. Each process also has a Local or Remote label. Select a deployment to pause on its complete diagram. Local calls run in-process; remote calls use configured direct RPC transports.
Service calls
Keep your Protobuf contracts and service handlers. Run services together as a monolith, separately as microservices, or in a hybrid deployment.
A generated catalog supplies the types for ctx.call(). Local registration and configured remote resolvers choose where each call runs.
These diagrams illustrate routing; endpoints, credentials and process deployment remain your configuration.
Start by goal
One service lifecycle
Use the same startup and shutdown model across services, with only the modules each service needs. Your application keeps its database, business logic and dependency wiring.
For a small RPC endpoint, or when your existing setup already covers these needs, ConnectRPC alone may be enough. Decide whether Connectum fits your service.
Explore modules
Choose a capability, then open its Guide or generated API.
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
Keep moving