grpc-ts is a CLI tool and library for generating TypeScript type definitions from gRPC service definitions (.proto files). It provides both a command-line interface and a programmatic API. As of v0.0.48, the project appears to be in early development with limited releases and no recent updates. It differentiates by offering a straightforward conversion of proto files to TypeScript interfaces, but lacks the ecosystem maturity of alternatives like protobuf-ts or protoc-gen-ts.
npm install grpc-tsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows programmatic usage to generate TypeScript definitions from a .proto file.
Use npx grpc-ts -i input.proto -o output/
Use async/await or .then() when calling generate().
Upgrade to v0.0.42+ or manually rename colliding types.
Upgrade Node.js to v12 or later.
Switch to ESM by setting type: module in package.json or use dynamic import: const { generate } = await import('grpc-ts');Use npx grpc-ts -i service.proto -o ./out
Use import { generate } from 'grpc-ts'; (named export).No dependency data recorded yet.