A gRPC experimental server that adds koa-like interceptors (middleware) to gRPC calls. Current stable version is 1.3.1. The package wraps the official grpc package and provides a middleware pattern similar to Koa.js for handling unary, client streaming, server streaming, and bidirectional streaming calls. It simplifies adding cross-cutting concerns like logging, tracing, and authentication. The package requires peer dependency grpc ^1.22.2 and is specific to Node.js. It is distinct from other gRPC middleware solutions by its Koa-style request/response pipeline.
npm install gesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a gRPC server with a koa-like interceptor for logging request duration.
Ensure each interceptor awaits next() or returns next() if not async.
Use correct method name: server.bind().
Consider migrating to @grpc/grpc-js and checking compatibility with ges.
Use default import: import ExperimentalServer from 'ges'; then new ExperimentalServer().
Run npm install grpc.
Ensure server.addService() is called with valid service object before interceptor is invoked.