proto-to-trpc
v0.2.3
Published
Generate ConnectRPC TypeScript clients and fully-typed tRPC routers from .proto files using a simple CLI.
Downloads
1,337
Maintainers
Readme
proto-to-trpc
Generate ConnectRPC TypeScript clients and fully-typed tRPC routers from your .proto files with a single CLI.
This package is designed to work seamlessly with modern Next.js (App Router), tRPC, and TanStack Query setups.
Quickstart
After installing the package:
pnpm dlx proto-to-trpc --proto_dir=./proto --out=./src/genThis will produce:
src/gen/connect– protoc + Connect TS outputssrc/gen/trpc– tRPC router factory, per-service routers, andappRouter
For full documentation, architecture, and design notes, see docs/index.md in this repository.
