Pure JavaScript gRPC server implementation (v0.5.0) that uses Node's built-in http2 module, eliminating C++ dependencies and native compilation. It aims to be largely compatible with the official grpc.Server API, supporting unary, server/client streaming, bidirectional calls, deadline/cancellation, gzip/deflate compression, server credentials, and metadata. No production dependencies. Released under active development with periodic updates; key differentiator is zero native dependencies, making it suitable for environments where native modules are problematic. However, it is not yet stable (pre-1.0) and has some API deviations (async bind(), missing addProtoService()).
npm install grpc-server-jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a gRPC server using grpc-server-js, loads a .proto file, adds a service, binds to a port, and starts listening.
Use await server.bindAsync(port, creds) instead of synchronous bind().
Use addService() with a loaded service definition from @grpc/proto-loader.
Only options listed in README are supported; others may be ignored or cause errors.
Use third-party tools or @grpc/reflection if needed.
Update Node.js to >=10.10.0.
Use await server.bindAsync(port, ServerCredentials.createInsecure())
Ensure proto file is loaded correctly and service name matches: usually 'package.ServiceName'.
Check supported options list; use exact strings from README.
No dependency data recorded yet.