A protoc plugin for generating TypeScript declarations and service definitions from Protocol Buffers (proto3). Version 0.15.0 is the latest stable release. It works alongside protoc to produce .ts files (including gRPC service stubs) and has been widely used but is now in maintenance mode, with alternatives like protobuf-ts or buf's protoc-gen-es recommended. Key differentiator: direct integration with protoc for TypeScript/JavaScript projects.
npm install ts-protoc-genNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install ts-protoc-gen, run protoc to generate TypeScript files, and use the generated gRPC service client.
Install protoc from https://github.com/protocolbuffers/protobuf/releases
Install google-protobuf: npm install google-protobuf, then import as needed.
Evaluate alternatives: protobuf-ts (https://github.com/timostamm/protobuf-ts) or protoc-gen-es (https://github.com/bufbuild/protoc-gen-es)
npm install @grpc/grpc-js
Use: --plugin=protoc-gen-ts=.\node_modules\.bin\protoc-gen-ts.cmd
Specify the full path to the plugin: --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts
Install google-protobuf and import necessary types: npm install google-protobuf
npm install google-protobuf
Switch to @grpc/grpc-js and use its loadPackageDefinition.
No dependency data recorded yet.