tl-ngrpc is a minimal Node.js gRPC helper library that simplifies gRPC server and client setup. Version 1.0.1 wraps the grpc package to provide an event-driven server pattern and a promise-based client, supporting both HTTP and socket services. It focuses on protocol conventions rather than business logic, allowing developers to define protobuf services and attach handlers easily. The library is designed for rapid prototyping and small to medium gRPC services, offering a simpler API than grpc-js or @grpc/proto-loader. Release cadence: single stable release.
npm install tl-ngrpcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to create a TlApiRpcServer with event handlers and a TlApiRpcClient to make gRPC calls using the library's event-based API.
Use path.resolve(__dirname, 'relative/proto/file.proto') to get absolute path.
Ensure you have Python, make, and a C++ compiler installed. Alternatively, use grpc-tools or prebuilt binaries.
Consider migrating to @grpc/grpc-js for pure-JS, cross-platform compatibility.
Use path.resolve(__dirname, './teacher.proto') instead of just './teacher.proto'.
Install from GitHub: npm install git+https://github.com/tl-open-source/tl-ngrpc.git
Consider using '@grpc/grpc-js' and a different helper library, or accept the deprecation warning.