Code generator for gRPC services targeting TypeScript and JavaScript. Version 6.1.22 is current stable. Generates client/server code from proto files fetched via git URLs. Supports custom resolve paths, multiple git branches, and configuration file. Key differentiator: integrates proto fetching, code generation, and path resolution in one CLI tool, reducing boilerplate. Not widely adopted; primarily used in private Chinese ecosystems.
npm install grpc-code-genNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a config file and runs code generation from a git proto repository with token authentication.
Change import to 'grpc-code-gen/build/base'
Use git@ or https:// with accessToken
Use module.exports in .js file, not export default
Set grpcNpmName: '@grpc/grpc-js' in config
Use require('grpc-code-gen/build/base')Use import { gen } from 'grpc-code-gen'Provide accessToken in config or use SSH URL