@connectum/core
Server foundation for registration, lifecycle, transport, configuration, TLS, and typed service calls.
Install
bash
npm install @connectum/corebash
pnpm add @connectum/corebash
bun add @connectum/corePeer 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 point | Use it to |
|---|---|
createServer | Compose services, protocols, interceptors, and shutdown policy. |
defineService | Bind a generated service descriptor to typed handlers. |
createCatalogClient | Call catalog services outside a server handler. |
Learn / Configure / API Reference
- Learn: Focused guide
- Configure: Task and configuration guidance
- API reference: Exact options and symbols
- Package API index: Generated TypeDoc
- Source: @connectum/core on GitHub
Related Modules
Compare all Connectum packages by capability.