A gRPC server-side module built with TypeScript for defining and running gRPC services using decorators. Current version 1.1.4 (released 2024). It simplifies gRPC server setup by providing decorators like @Service and @Route to define services and methods, and a RpcRegistry class to start the server with TLS settings. Differentiates from other gRPC Node libraries (e.g., @grpc/grpc-js) by offering a TypeScript-first, decorator-based API with minimal boilerplate, though it has limited documentation and a small user base.
npm install grpc-server-tsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a gRPC service with a say method, configures TLS settings, and starts the server.
Use an absolute path or ensure the working directory is correct.
Provide valid file paths for ca, cert, and key in settings.
For streaming, consider using @grpc/grpc-js directly.
Upgrade Node.js to version 12 or higher.
Provide the absolute path to the .proto file in @Service.
Ensure import { RpcRegistry } from 'grpc-server-ts' is correct.Change the port in settings or kill the conflicting process.