ts-proto

An idiomatic protobuf generator for TypeScript (by stephenh)

Ts-proto Alternatives

Similar projects and alternatives to ts-proto

  1. TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. openapi-generator

    OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)

  4. gRPC

    243 ts-proto VS gRPC

    C++ based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)

  5. sqlx

    158 ts-proto VS 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)

  6. proposal-type-annotations

    ECMAScript proposal for type syntax that is erased - Stage 1

  7. rescript

    ReScript is a robustly typed language that compiles to efficient and human-readable JavaScript.

  8. diesel

    91 ts-proto VS diesel

    A safe, extensible ORM and Query Builder for Rust

  9. proposals

    Tracking ECMAScript Proposals

  10. grpc-rust

    A native gRPC client & server implementation with async/await support.

  11. OpenAPI-Specification

    The OpenAPI Specification Repository

  12. twirp

    A simple RPC framework with protobuf service definitions

  13. connect-es

    30 ts-proto VS connect-es

    The TypeScript implementation of Connect: Protobuf RPC that works.

  14. d2-playground

    31 ts-proto VS d2-playground

    An online runner to play, learn, and create with D2, the modern diagram scripting language that turns text to diagrams.

  15. Superstruct

    30 ts-proto VS Superstruct

    A simple and composable way to validate data in JavaScript (and TypeScript).

  16. connect-go

    Discontinued Moved to https://github.com/connectrpc/connect-go (by bufbuild)

  17. go-micro

    Discontinued A Go microservices framework [Moved to: https://github.com/micro/go-micro]

  18. protobuf-ts

    14 ts-proto VS protobuf-ts

    Protobuf and RPC for TypeScript

  19. grpc-web

    10 ts-proto VS grpc-web

    gRPC Web implementation for Golang and TypeScript (by improbable-eng)

  20. protoc-gen-validate

    Discontinued Protocol Buffer Validation - replaced by https://github.com/bufbuild/protovalidate

  21. protoc-gen-typescript-http

    Generate types and service clients from protobuf definitions annotated with http rules.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better ts-proto alternative or higher similarity.

ts-proto discussion

Log in or Post with

ts-proto reviews and mentions

Posts with mentions or reviews of ts-proto. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2026-10-31.
  • Building a Tech News Aggregator with GraphQL, gRPC and Go Microservices
    8 projects | dev.to | 31 Oct 2026
    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
    4 projects | dev.to | 8 Jan 2026
    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
    2 projects | dev.to | 1 Feb 2025
    Use the ts-proto to auto generate the interfaces and decorators for your gRPC controller.
  • Compile Protocol Buffers & gRPC to Typescript with Yarn
    2 projects | dev.to | 27 Nov 2024
    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
    2 projects | /r/Deno | 3 May 2023
    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?
    12 projects | news.ycombinator.com | 12 Jan 2023
    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
    14 projects | news.ycombinator.com | 31 Oct 2022
  • [help] Tonic-build: how to generate generic service definition?
    4 projects | /r/rust | 13 Jun 2022
    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
    10 projects | news.ycombinator.com | 1 Jun 2022
    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?
    8 projects | /r/webdev | 2 Apr 2022
    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
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic ts-proto repo stats
12
2,595
8.6
3 days ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that TypeScript is
the 2nd most popular programming language
based on number of references?