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. Learn more →
Top 7 TypeScript grpc-web Projects
-
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.
-
grpc-json-mock
This is a mock of grpc used for front-end development. Prepare the server using nodejs.
-
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.
A proxy is required to communicate from web clients to a server running gRPC, and there are only two choices for this proxy: a. The Improbable gRPC-Web client or b. The Google gRPC-Web client
I created it so that I could use `protoc` and `ts-proto` to convert the otel proto files into typescript files.
> 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/
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);)
TypeScript grpc-web related posts
- Creating the Local First Stack
- Leveraging Temporal for resilient remote procedure calls (RPC)
- Connect RPC – A Better gRPC
- Error using JWT Authentication using GRPC Web in .net 7; postman works - typescript client does not authorize
- gRPC + Envoy + grpc-web = scalable multiplexed streaming?
- Why are gRPC and Node.js so difficult?
- API Gateway in Go for Websockets to Websockets communication
-
A note from our sponsor - SurveyJS
surveyjs.io | 28 Apr 2024
Index
What are some of the best open-source grpc-web projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | grpc-web | 4,336 |
2 | ts-proto | 1,913 |
3 | ts-protoc-gen | 1,325 |
4 | connect-es | 1,202 |
5 | ezy | 948 |
6 | protobuf-ts | 944 |
7 | grpc-json-mock | 2 |
Sponsored