protobuf-es
sick
protobuf-es | sick | |
---|---|---|
7 | 3 | |
937 | 9 | |
2.8% | - | |
9.2 | 7.1 | |
2 days ago | 4 months ago | |
TypeScript | C# | |
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.
protobuf-es
-
gut: convert golang structs to typescript interfaces
Yes, you can. You are mistaking protobuf with gRPC. See this for more information.
-
TypeScript type safety with GO
You can use this with connect: https://github.com/bufbuild/protobuf-es
-
Ask HN: Why isn't JSON-RPC more widely adopted?
Ah you should check out https://github.com/bufbuild/protobuf-es which feels great so far. Then there's connect by the same buf people but it has a grpc-web option https://connect.build/docs/web/getting-started/. The amount of code generated is also tiny, which I love.
-
Connect-Web: ergonomic Protobuf & gRPC for browsers
I'd recommend looking into protobuf-ts (Timo from Buf) or protobuf-es (Buf maintained).
-
Connect-Web: It's time for Protobuf/gRPC to be your first choice in the browser
Not sure if it is a magic bullet, but it was definitely written by TypeScript developers, for TypeScript developers.
The generated TypeScript code is already pretty minimal because all serialization ops are implemented with reflection instead of generated code (which is only marginally slower than generated code in JS).
But you can also switch to generating JavaScript + TypeScript declaration files, which is truly minimal: JavaScript is an entire dynamic language, so we actually only generated a small snippet of metadata in the .js output, and create a class at run time with a function call. The generated typings (.d.ts) give you type safety, autocompletion in the IDE, and so on.
You can see the output here: https://github.com/bufbuild/protobuf-es/blob/main/packages/p...
- Connect: A Better gRPC
sick
- FLaNK Stack Weekly 12 February 2024
-
On-demand JSON: A better way to parse documents?
I solved this problem with a custom indexed format: https://github.com/7mind/sick
-
Ask HN: Why isn't JSON-RPC more widely adopted?
JSON-like data structures do not necessary require a stack automaton for parsing. Moreover it doesn't necessarily require any parsing at all.
E.g. I've implemented a simple indexed binary format for JSON-like data: https://github.com/7mind/sick
The problems with JSON-RPC are mostly in its design, it's not ergonomic and its type system is a joke.
There are many better alternatives ranging from gRPC (still not ergonomic and not modular) to Protoforce (extremely powerful and ergonomic but only marginally adopted).
What are some alternatives?
ts-proto - An idiomatic protobuf generator for TypeScript
json-api - A specification for building JSON APIs
connect-go - Moved to https://github.com/connectrpc/connect-go
connect-es - The TypeScript implementation of Connect: Protobuf RPC that works.
bloomrpc - Former GUI client for gRPC services. No longer maintained.
refute - Refute module.
protobuf-ts - Protobuf and RPC for TypeScript
grpc-web - gRPC for Web Clients
grpcurl - Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers
master-spring-and-spring-boot - Spring and Spring Boot Tutorial For Absolute Beginners - 10-in-1 - Spring to Spring Boot to REST API to Full Stack to Containers to Cloud
Healthcare-Demo - Demo for HIMSS Conference 2024 which covers patient outcome prediction and LLM condition recommendations.