{"library":"protoc-gen-ts","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"0.8.7","tags":["javascript"],"install":[{"cmd":"npm install protoc-gen-ts","imports":["import { Change } from './myproto_pb';","import { Kind } from './myproto_pb';","import { MyServiceClient } from './myproto_pb';"]},{"cmd":"yarn add protoc-gen-ts","imports":[]},{"cmd":"pnpm add protoc-gen-ts","imports":[]}],"homepage":null,"github":"https://github.com/thesayyn/protoc-gen-ts","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/protoc-gen-ts","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/protoc-gen-ts/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}