TypeScript Protobuf

Open-source TypeScript projects categorized as Protobuf

Top 10 TypeScript Protobuf Projects

  • ts-proto

    An idiomatic protobuf generator for TypeScript

  • Project mention: Deno-first implementation of protobuf Reader and Writer | /r/Deno | 2023-05-03

    I created it so that I could use `protoc` and `ts-proto` to convert the otel proto files into typescript files.

  • tsrpc

    A TypeScript RPC framework, with runtime type checking and serialization, support both HTTP and WebSocket. It is very suitable for website / APP / games, and absolutely comfortable to full-stack TypeScript developers.

  • Project mention: Tsrpc: A TypeScript RPC Framework | news.ycombinator.com | 2023-09-02
  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • connect-es

    The TypeScript implementation of Connect: Protobuf RPC that works.

  • Project mention: I Reviewed 1,000s of Opinions on gRPC | news.ycombinator.com | 2023-12-26

    > However, it's important to note that browser support wasn't a primary focus in gRPC's design. This oversight necessitates an additional component, grpc-web, for browser accessibility. Furthermore, external services often have specific needs like caching and load balancing, which are not directly catered to by gRPC. Adopting gRPC for external services might require bespoke solutions to support these features.

    The article should mention the Connect protocol for web-based Protobuf messaging:

    https://connectrpc.com/

  • protobuf-ts

    Protobuf and RPC for TypeScript

  • Project mention: tRPC – Move Fast and Break Nothing. End-to-end typesafe APIs made easy | news.ycombinator.com | 2023-08-12

    DX for front or back end? The beauty of tRPC is that the types are derived/inferred from the backend runtime code (like, as you type). It would be nigh impossible to do that with grpc(-web) using proto files as the source of truth.

    It's possible there's a project out there which could automatically produce proto files from something like zod, json-schema, etc. which could be directly interpreted by TS to provide similar (as you type) DX while still allowing some other language backend to consume the derived proto files (though the DX there would be less than ideal).

    If you're just looking for similar TS clients/interfaces for grpc-web then I'd recommend https://github.com/timostamm/protobuf-ts which operates on plain JS objects (no new MyMessage().serialize(), instead the code generator mostly produces TS interfaces for you to work against: const myMessage: MyMessage = pojoConformingToInterface; const binary = MyMessage.toBinary(myMessage);)

  • protobuf-es

    Protocol Buffers for ECMAScript. The only JavaScript Protobuf library that is fully-compliant with Protobuf conformance tests.

  • Project mention: gut: convert golang structs to typescript interfaces | /r/golang | 2023-05-29

    Yes, you can. You are mistaking protobuf with gRPC. See this for more information.

  • pbkit

    Protobuf toolkit for modern web development

  • Project mention: Need help to set up the pbkit language server | /r/neovim | 2023-09-21

    I am trying to set up the pbkit language server for protobuf files. Since it is not part of the nvim-lspconfig repo's server configurations, I have to figure the way out myself. It doesn't seem to be too difficult, as I can start from the bufls configuration there. The following is what I have at the moment:

  • json-to-proto.github.io

    convert JSON to Protocol Buffers online in your browser instantly

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • openpgp-mobile

    Native code used in react-native-fast-openpgp and flutter-openpgp

  • protobuf-project

    Protobuf with Go import paths for Go and TypeScript: project boilerplate w/ Makefile. Supports grpc, vtprotobuf, drpc, ts-proto, twirp, starpc.

  • deno-pbf

    Deno pbf port of https://github.com/mapbox/pbf

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

TypeScript Protobuf related posts

Index

What are some of the best open-source Protobuf projects in TypeScript? This list will help you:

Project Stars
1 ts-proto 1,913
2 tsrpc 1,745
3 connect-es 1,202
4 protobuf-ts 944
5 protobuf-es 932
6 pbkit 289
7 json-to-proto.github.io 244
8 openpgp-mobile 21
9 protobuf-project 16
10 deno-pbf 4

Sponsored
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com