@nexusts/grpc
v0.9.4
Published
gRPC server + typed client (reflection-based)
Readme
@nexusts/grpc
NexusTS — Bun-native fullstack framework
Description
gRPC server + typed client (reflection-based).
Reflection-based gRPC. Loads .proto files at runtime via @grpc/proto-loader. grpcClient() returns a typed proxy. Unary only in v1 (streaming planned for v2).
Install
This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.
Most apps start with just the core:
bun add @nexusts/coreThen add this module only if you need it:
bun add @nexusts/grpcPeer dependencies
None. No external runtime dependencies. gRPC is built into the Bun runtime. On Node.js, install @grpc/grpc-js and @grpc/proto-loader separately.
Usage
import { /* public API */ } from "@nexusts/grpc";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
