grpc-powerkit is a TypeScript-based gRPC server framework using decorators for routing and service configuration. Version 1.0.6 provides an elegant way to define gRPC services with classes and decorators, integrating with @grpc/grpc-js and @grpc/proto-loader. It includes built-in error handling via GrpcError and supports custom proto files. The framework targets TypeScript-first projects, offering strong typing and decorator-based API. Release cadence is unknown; it is a niche alternative to manual gRPC setup.
npm install grpc-powerkitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows a complete gRPC server with a decorator-based service, including error handling and server startup.
Add import 'reflect-metadata' at the top of your main file.
Set "experimentalDecorators": true and "emitDecoratorMetadata": true in tsconfig.json.
Use path.join(__dirname, 'proto/hello.proto') or process.cwd() based path.
Pin to exact version in package.json or monitor releases.
Always pass a status constant (e.g., status.INVALID_ARGUMENT) when throwing GrpcError.
Run 'npm install reflect-metadata' and add 'import "reflect-metadata"' at the top of your entry file.
Ensure the controller has @GrpcService decorator with valid protoPath, package, and service names.
Verify the proto file exists and path is correct relative to the working directory.