A CLI tool and runtime wrapper for generating and using gRPC-Web client services from proto files. Current version 0.2.3, updated occasionally. Key differentiator: simplifies gRPC-Web setup by generating a GrpcService class with interceptor and access token support, handling proto package names across versions. Compared to raw grpc-web, it reduces boilerplate for common patterns like auth tokens and error retries.
npm install grpc-web-service-generatorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows generating service code from proto and using GrpcService with token, call, and error interceptor.
Access services via grpcService.<PackageName>.<ServiceName> after upgrading.
Ensure import path matches --output-dir value (e.g., import from './services/GrpcService').
Use webpack 4 or configure module rules for CommonJS packages.
Confirm --output-dir and adjust import to match (e.g., import { GrpcService } from './services/GrpcService').Add package name prefix: grpcService.RpcPackage.TodoService.AddTodo(...).