protoc-gen-validate
grpc-web
Our great sponsors
protoc-gen-validate | grpc-web | |
---|---|---|
6 | 10 | |
3,642 | 4,336 | |
1.4% | 0.4% | |
8.0 | 0.0 | |
6 days ago | 7 months ago | |
Go | TypeScript | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
protoc-gen-validate
- Protobuf Schema Validation
-
Protobuf-ES: The Protocol Buffers TypeScript/JavaScript runtime we all deserve
My understanding is that the powers that be within Google have decided that validating messages is outside the scope of schemas and serialization. protoc-gen-validate provides a portable way to perform validation: https://github.com/bufbuild/protoc-gen-validate
The problem with required fields is it kicks the can down the road when you want to deprecate a field. Keeping everything optional is much, much better for everyone in the long run.
-
Why isn't gRPC used more for browser to api transport over REST / graphql?
I built a (go) very rough draft to support 3.1 + a json pointer pkg to support a refactor that was in progress before I bailed on the idea. The amount of effort to get a conventional API was dwarfing that of grpc, especially with protoc-gen-validate.
- Protoc-Gen-Validate (PGV)
-
is there any package to generate validation code for struct instead of using reflect (tags)?
Yes, I am currently using this. I prefer something like this https://github.com/envoyproxy/protoc-gen-validate
-
sneak peak: code generation extensions to prost (protobuf code generator)
We've been using Rust with protobuf, but had to write lots of conversions from protobuf struct to actual DTO, since prost generates Options for nested types, and does not really support custom types. So I extended prost with the options that we needed. I might aim to also support protoc-gen-validate.
grpc-web
-
Full Stack Forays with Go and gRPC
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
-
gRPC + Envoy + grpc-web = scalable multiplexed streaming?
I'll have to try the Improbable method (https://github.com/improbable-eng/grpc-web) - as it definitely includes a websocket transport, hopefully this multiplexes requests on that transport and would hence solve the problem. I'll post again once I know...
-
API Gateway in Go for Websockets to Websockets communication
I think you should check out https://github.com/improbable-eng/grpc-web/tree/master/go/grpcwebproxy
-
RPC in Go using Twitch's Twirp
What I like with gRPC is that it allows both client and server side streaming. Twirp seems to not have this feature at all. In contrast the https://github.com/improbable-eng/grpc-web even supports server and client streaming while wrapping gRPC in a HTTP1.1 Web connection.
-
Goomerang 🪃 A protocol buffers over websockets communications library
I highly recommend also to look into https://github.com/improbable-eng/grpc-web in contrast to the 'official' gRPC-web from google the improbable-eng Implementation can do both server side and client side gRPC streaming (when used with their JavaScript client library) and all this on an http1.1/websocket basis...
-
is there any startup or famous web app using grpc/grpc-web for their frontend
We use https://github.com/improbable-eng/grpc-web for the server part with https://github.com/protobufjs/protobuf.js on the frontend.
-
Why isn't gRPC used more for browser to api transport over REST / graphql?
I'm debating whether or not to rely on grpc for all client to API transport using improbable-eng's grpc-web project. The hesitation I'm running into is concern over unforeseen pitfalls. The fact that it isn't widely used is the main cause for my apprehension.
-
Aspiring Golang Developer here, could you suggest a few ideas of what I could write with Golang?
If you use https://github.com/improbable-eng/grpc-web you do not need envoy, you can wrap your golang grpc connection. I then mux the grpc and grpc-web so that I can use the same endpoint to serve http1 and http2 clients. This makes it easy to host on the cloud, eg. google cloud run.
-
Can App Load Balancer or ECS (Fargate) handle HTTP1 proxying for gRPC services?
I'm setting up a server portion of a website which uses (g)RPC. My dev setup is a docker-compose.yml that starts up my server on 50051 & another service that runs grpcwebproxy (exposes 8080 and proxies to my server @ 50051).
- JROH - Solution & Framework for JSON-RPC over HTTP
What are some alternatives?
buf - The best way of working with Protocol Buffers.
protobuf-ts - Protobuf and RPC for TypeScript
prototool - Your Swiss Army Knife for Protocol Buffers
twirp - A simple RPC framework with protobuf service definitions
prost - PROST! a Protocol Buffers implementation for the Rust Language
ts-proto - An idiomatic protobuf generator for TypeScript
ozzo-validation - An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
grpc-json-mock - This is a mock of grpc used for front-end development. Prepare the server using nodejs.
protolock - Protocol Buffer companion tool. Track your .proto files and prevent changes to messages and services which impact API compatibility.
openapi - an OpenAPI 3.x library for go
phero - Full-stack type-safety with pure TypeScript
efaceconv