SaaSHub helps you find the best software and product alternatives Learn more →
Ts-proto Alternatives
Similar projects and alternatives to ts-proto
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
openapi-generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
-
-
sqlx
đź§° The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite. (by transact-rs)
-
-
rescript
ReScript is a robustly typed language that compiles to efficient and human-readable JavaScript.
-
-
-
-
-
-
-
d2-playground
An online runner to play, learn, and create with D2, the modern diagram scripting language that turns text to diagrams.
-
-
-
-
-
-
protoc-gen-validate
Discontinued Protocol Buffer Validation - replaced by https://github.com/bufbuild/protovalidate
-
protoc-gen-typescript-http
Generate types and service clients from protobuf definitions annotated with http rules.
ts-proto discussion
ts-proto reviews and mentions
-
Building a Tech News Aggregator with GraphQL, gRPC and Go Microservices
2. Mapping protobuf ↔ GraphQL by hand is a lot of code. The BFF has plenty of toObject() and field-by-field mapping. Next time I'd look at ts-proto for plain TypeScript interfaces, or Connect for a nicer client API, or generate the mapping code.
-
From Swagger UI to React: Building qcontroller's Frontend
The solution was surprisingly elegant: using Protocol Buffers for WebSocket messages. With ts-proto, the WebSocket message handling became as type-safe as the REST API, with everything generated from .proto definitions. Only a few lines of WebSocket connection code needed to be written manually—the rest was generated and type-safe.
-
NestJS + gRPC + step by step guide + e2e tests
Use the ts-proto to auto generate the interfaces and decorators for your gRPC controller.
-
Compile Protocol Buffers & gRPC to Typescript with Yarn
There are various libraries for protobuf and gRPC on web, and they have significant differences. I will use the ts-proto library - this library generates idiomatic Typescript classes at compile time from .proto message definitions, giving a good development experience. You get working autocomplete in IDE, compile-time type checking and reading and writing message fields works like with any other TS object. It also supports both protobuf and JSON wire formats for data. It does not implement gRPC out of the box, but provides support for gRPC-Web proxy connections. For my use case, where I encode gRPC as HTTP+JSON requests, there's unfortunately no direct support currently.
-
Deno-first implementation of protobuf Reader and Writer
I created it so that I could use `protoc` and `ts-proto` to convert the otel proto files into typescript files.
-
Is TypeScript actually worth It?
Re libraries incompatible with certain typescript versions - e.g. protobufjs fix - it’s been my experience that you want to try and only use compilers specific to each library and compile libraries separately. It’s unfortunate but the JS community often tries to run all JS for a project through the same single compiler tool chain, using one global version of the compiler instead of relying on and effectively linking the JS output for each library. Unless you routinely rewrite third-party libraries to match your toolchain’s expectations, you’re going to have a hard time doing that.
For a library that generates code, that’s a special case, as the code it generates must target a particular language version. You have three choices: 1. Upstream a fix as you propose; 2. Side-by-side install both TS 4.6 and TS 4.7 using workspaces or sub-projects and have some of your code compile with 4.6 and then link the results or 3. Find a replacement that is updated to 4.7. For example, https://github.com/stephenh/ts-proto has 4.7 support listed in its readme.
- Protobuf-ES: The Protocol Buffers TypeScript/JavaScript runtime we all deserve
-
[help] Tonic-build: how to generate generic service definition?
With ts-proto, I can pass a --ts_proto_opt=outputServices=generic-definitions as a flag to protoc to generate "generic service definitions". These definitions contain descriptors for each method, which allows to generate server and client stubs at runtime, and also generate strong types for them at compile time.
-
Connect: A Better gRPC
Curious to see their typescript implementation and how it compares with https://github.com/stephenh/ts-proto which works great for grpc-web.
-
Why isn't gRPC used more for browser to api transport over REST / graphql?
I'm planning on modding https://github.com/stephenh/ts-proto to use https://github.com/ianstormtaylor/superstruct on the client.
-
A note from our sponsor - SaaSHub
www.saashub.com | 6 Nov 2026
Stats
stephenh/ts-proto is an open source project licensed under Apache License 2.0 which is an OSI approved license.
The primary programming language of ts-proto is TypeScript.