Protocol Buffer Compiler for TypeScript

JSON →
library 0.8.7 ·javascript
verified May 27, 2026

protoc-gen-ts is a `protoc` plugin that generates plain TypeScript source files from Protocol Buffer `.proto` definitions, effectively replacing separate `.d.ts` declaration files. It is actively maintained, with the current stable version being `0.8.7`, and new features/fixes are delivered through frequent minor releases. A key differentiator is its direct TypeScript output which eliminates common prefixes (e.g., `getField`) and exposes fields as standard getters/setters, along with `fromObject` and `toObject` methods for robust bidirectional mapping between JSON and message instances, supporting deep structures without runtime type reflection. It offers native support for gRPC Node (`@grpc/grpc-js`) and gRPC Web, including options for promise-based RPC calls. Messages defined within a `package` directive in the `.proto` file are by default encapsulated within a TypeScript namespace, though this behavior can be toggled.

total hits 17
actors 8 distinct systems
last hit 3d ago Bingbot
MetaBot
4
GPTBot
2
Script
2
ClaudeBot
1
PerplexityBot
1
Search engines
1

top countries 🇺🇸 United States · 🇳🇴 Norway · 🇫🇷 France · 🇮🇳 India · 🇨🇦 Canada