Skip to content
PackagesOperationsDocs 1.3.x

@connectum/reflection ​

gRPC Server Reflection v1 and v1alpha for discovery and tooling.

Install ​

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

Peer dependencies: @connectum/core, @bufbuild/protobuf ^2.16.0 and @connectrpc/connect ^2.2.0, shared with your application. npm 7+, pnpm and Bun install missing peers automatically; on Yarn, add them yourself — see Peer dependencies on protobuf and Connect.

Start Here ​

Use the greeterService definition from Quickstart.

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

const server = createServer({
  services: [greeterService],
  allowHTTP1: false,
  protocols: [Reflection()],
});
await server.start();

Key Entry Points ​

Entry pointUse it to
ReflectionRegister reflection as a server protocol.
collectFileProtosCollect transitive file descriptors for reflection.

Learn / Configure / API Reference ​

Compare all Connectum packages by capability.