SaaSHub helps you find the best software and product alternatives Learn more →
Top 5 twirp Open-Source Projects
-
InfluxDB
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.
-
rails_respond_to_pb
Middleware for a Rails App providing an interface for existing controllers to Twirp
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
The next time I want to build an API, I will probably make use of https://github.com/twitchtv/twirp. I like working with Protobuf and having strongly-typed and well-defined messages, but gRPC is way, way too much. It's obviously a Google product, built for what Google needs.
Use Protobuf for messages, but just use HTTP for transport.
Project mention: tRPC – Move Fast and Break Nothing. End-to-end typesafe APIs made easy | news.ycombinator.com | 2023-08-12DX 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);)
twirp related posts
-
I Reviewed 1,000s of Opinions on gRPC
-
How do I provide bot RPC and REST endpoints?
-
Deno-first implementation of protobuf Reader and Writer
-
Reasons to use gRPC/Protobuf?
-
A detailed comparison of REST and gRPC
-
Error using JWT Authentication using GRPC Web in .net 7; postman works - typescript client does not authorize
-
gRPC vs REST: Comparing API Styles in Practice
-
A note from our sponsor - SaaSHub
www.saashub.com | 7 May 2024
Index
What are some of the best open-source twirp projects? This list will help you:
Project | Stars | |
---|---|---|
1 | twirp | 6,836 |
2 | ts-proto | 1,933 |
3 | protobuf-ts | 951 |
4 | answersuck | 10 |
5 | rails_respond_to_pb | 8 |
Sponsored