A lightweight RPC framework built on gRPC for Node.js, providing a simplified API for creating services and clients with streaming support. Current version is 0.3.2. It wraps gRPC with a middleware pattern, TLS support, and a route-based approach for defining RPC handlers. Differentiators include a minimal API surface and built-in middleware similar to Express, but the package is in early development with sparse documentation and no TypeScript support.
npm install io-grpcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to create a gRPC service and client using io-grpc, including loading a protobuf file, adding a service handler, and making an RPC call.
Pin to a specific version and test thoroughly before upgrading.
Use destructured require: const { createServiceRpc } = require('io-grpc');Ensure the string passed to addService/route matches the full service name including package, e.g., 'route.Chat'.
Use require() syntax; consider wrapping in a dynamic import if needed for ESM projects.
const { createServiceRpc } = require('io-grpc');Use the full service name as defined in the proto file, e.g., 'route.Chat'
npm install grpc