@connectum/reflection
gRPC Server Reflection v1 and v1alpha for discovery and tooling.
Install
bash
npm install @connectum/reflectionbash
pnpm add @connectum/reflectionbash
bun add @connectum/reflectionPeer 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 point | Use it to |
|---|---|
Reflection | Register reflection as a server protocol. |
collectFileProtos | Collect transitive file descriptors for reflection. |
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/reflection on GitHub
Related Modules
Compare all Connectum packages by capability.