Skip to content
Get startedDocs 1.3.x

Get started ​

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.

Mental Model ​

Connectum

  • defineService() binds your handlers.
  • createServer() registers and runs services.
  • Server lifecycle and interceptor composition.

Your handlers contain the business logic.

ConnectRPC

  • gRPC, Connect and gRPC-Web protocols.
  • Unary and streaming RPC calls.
  • HTTP/1.1 and HTTP/2 transports.

Native gRPC and bidirectional streams require HTTP/2.

Protobuf

  • .proto services, RPC methods and messages.
  • One contract for clients and servers.
  • protobuf-es generates TypeScript descriptors and message types.
Connectum composes your service on ConnectRPC. Protobuf supplies the shared contract and generated 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.

What Connectum Owns ​

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.

Choose Your Path ​

Architecture and Boundaries ​

See Connectum Runtime Architecture for process boundaries and extension points. The ADR index records design decisions, including why capabilities remain separate modules.

Non-Goals ​

What stays outside the framework
  • Managing application databases or domain models
  • Replacing deployment platforms or service meshes
  • Hiding transport, auth, or resilience policy behind implicit defaults
  • Supporting CommonJS or legacy Node.js runtimes

External Resources ​

Find a module ​

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.

Browse modules by capability

Foundation

Foundation

@connectum/core

Server lifecycle, service registration, configuration, TLS, and in-process clients.

createServer · defineService · createCatalogClient

Foundation

@connectum/interceptors

Error handling, validation, timeouts, resilience, and method-scoped middleware.

createDefaultInterceptors · createMethodFilterInterceptor

Security

Security

@connectum/auth

JWT, gateway, session, internal-service authentication, and authorization.

createJwtAuthInterceptor · createAuthzInterceptor · requireAuthContext

Communication

Communication

@connectum/events

Proto-first publish and subscribe with middleware, retries, and dead-letter handling.

createEventBus · MemoryAdapter · createBroadcastSubscribers

Operations

Operations

@connectum/otel

OpenTelemetry tracing, metrics, logging, providers, and client/server instrumentation.

createOtelInterceptor · initProvider · getLogger

Operations

@connectum/healthcheck

gRPC health protocol, HTTP probes, readiness state, and Kubernetes integration.

Healthcheck · healthcheckManager · ServingStatus

Tooling and testing

Tooling and testing

@connectum/cli

Service scaffolding, service generation, version inspection, and reflection-based proto sync.

connectum init · connectum generate service · connectum proto sync

Tooling and testing

@connectum/testing

Supported test servers, local transports, parity helpers, collectors, and assertions.

createTestServer · withTestServer · createLocalClient

Tooling and testing

@connectum/test-fixtures

Low-level mock factories and protobuf descriptor fixtures for advanced test tooling.

createMockRequest · createFakeService · createMockStream