Skip to content
PackagesFoundationDocs 1.3.x

@connectum/core ​

Server foundation for registration, lifecycle, transport, configuration, TLS, and typed service calls.

Install ​

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

Peer dependencies: @bufbuild/protobuf ^2.16.0, @connectrpc/connect ^2.2.0 and @connectrpc/connect-node ^2.2.0, shared with your application. npm 7+, pnpm and Bun install missing peers automatically; on Yarn, add them yourself. Keep your own pins inside these ranges: createServer() throws PeerDependencyVersionError when a loaded copy is outside them, or when connect and connect-node are out of lockstep (the check is skipped when @connectum/core is bundled) — see Peer dependencies on protobuf and Connect.

Start Here ​

typescript
import { createServer } from '@connectum/core';

const server = createServer({
  services: [greeterService],
  port: 5000,
  shutdown: { autoShutdown: true },
});

await server.start();

Key Entry Points ​

Entry pointUse it to
createServerCompose services, protocols, interceptors, and shutdown policy.
defineServiceBind a generated service descriptor to typed handlers.
createCatalogClientCall catalog services outside a server handler.

Learn / Configure / API Reference ​

Compare all Connectum packages by capability.