protobuf-grammar VS buf

Compare protobuf-grammar vs buf and see what are their differences.

protobuf-grammar

This repository contains grammars for parsing Protocol Buffers's .proto files (by protocolbuffers)
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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
protobuf-grammar buf
1 41
25 8,397
- 2.0%
10.0 9.6
almost 5 years ago 5 days ago
Go
BSD 3-clause "New" or "Revised" License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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-grammar

Posts with mentions or reviews of protobuf-grammar. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-12.
  • Finally: A Language Specification for Protocol Buffers
    10 projects | news.ycombinator.com | 12 Sep 2022
    bufdev brought up some good concerns on that issue:

    > This as a community project defeats the purpose of creating a definitive grammar/spec that protocolbuffers/protobuf holds itself to - without that component, having a community-written spec is no improvement over the current situation from what I can see, and in fact could create even more fragmentation and confusion, just my two cents.

    It looks like the protobuf team created a repo intended for this (https://github.com/protocolbuffers/protobuf-grammar), perhaps the spec could be contributed there, including a review/blessing from the official team.

buf

Posts with mentions or reviews of buf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-06-08.
  • What happened to Captura? OSS maintainer burnout
    5 projects | news.ycombinator.com | 8 Jun 2024
    > Open-sourcing protobuf was most likely not a big cost, and it had benefits for Google (otherwise it would not have been rational to open source it).

    Nah honestly it was more like I said "Hey I want to open source this!" and other engineers said "Yeah that sounds awesome!" so I did. That was Google in ~2007, you could basically do whatever you wanted and as long as it was vaguely plausibly useful management said "sure".

    I'm honestly not sure the company had any idea what they should do with OSS protobuf, at least for many years. Management never really gave me any credit for releasing it and gently pressured me to find a different project to work on that more directly aligned with company goals, which I eventually did.

    Still not clear if they even know today. They seem more serious about it today but at the same time it's still clear that they mostly don't care about external users, so much so that startups like https://buf.build have to come in and build the actual products around Protobuf that Google never delivered publicly (but has internally). Of course, companies are not hive minds -- there are clearly people at Google who want to make Protobuf a great product, but I don't think management sees it as strategically interesting.

    > If protobuf was not open source, something like Cap'n Proto may take its place, and that's not good for Google.

    Honestly I don't know if Google cares. Cap'n Proto hasn't caught on much because frankly I don't care to make it a product, I maintain it for my own use (primarily in the Cloudflare Workers runtime, my day job). But if that changed and Cap'n Proto got really good and people ditched Protobuf for it, would it really affect Google? I kind of don't think it would. (Just like I'm not sure it would benefit me that much, which is why I don't make this my job.)

    Certainly the strategy around open sourcing something like Protobuf vs. something like Chromium or Android is entirely different. Sundar probably doesn't even know what Protobuf is TBH.

    (Disclosure: I wrote and open sourced proto2, created Cap'n Proto, and have a small investment in Buf.)

  • Building a gRPC Server with NestJS and Buf: A Comprehensive Showcase
    1 project | dev.to | 6 May 2024
  • 5 Open Source tools written in Golang that you should know about
    5 projects | dev.to | 15 Dec 2023
    The Buf CLI is a versatile tool designed for handling Protocol Buffers (Protobuf), a method of serializing structured data. It offers several key features, including managing Protobuf assets through the Buf Schema Registry (BSR), providing a linter to enforce optimal API design and structure, and a breaking change detector to maintain compatibility either in source code or at the wire level. Additionally, the Buf CLI includes a generator that activates plugins based on user-defined templates and a formatter to standardize the formatting of Protobuf files according to industry norms. It also integrates seamlessly with the Buf Schema Registry, supporting comprehensive dependency management.
  • Create Production-Ready SDKs With gRPC Gateway
    5 projects | dev.to | 8 Dec 2023
    We'll use the Buf CLI as an alternative to protoc so that we can save our generation configuration as YAML. Buf is compatible with protoc plugins.
  • gut: convert golang structs to typescript interfaces
    4 projects | /r/golang | 29 May 2023
    Not so much anymore! Take a look at buf.build, it makes the whole thing notoriously easy :)
  • Flutter + gRPC for Desktop and Mobile App Development - Good choice?
    4 projects | /r/FlutterDev | 29 May 2023
    In my opinion it's a good idea, it's the architecture we use at work, and it works well for us. The main limitation to be aware of is that many PaaS don't support gRPC traffic (because of the proxies used). For example, DigitalOcean App Platform or Heroku if I remember correctly. If the way you want to host your backend is OK with HTTP/2 and gRPC traffic, then it's not a limitation. One way around this limitation is to use the gRPC-Web protocol, or the Connect protocol (https://connect.build/). Unfortunately, Dart's gRPC client does not support the gRPC-Web protocol outside the web platform. So for a mobile application, it's not usable at the moment. (If this PR were accepted, it would solve the issue: https://github.com/grpc/grpc-dart/pull/557.) As for Connect, no client is currently offered by Buf for Dart. Don't hesitate if you want to know more. That said, I'd advise you to use the Connect implementation for Go to implement your backend. Connect will enable your server to speak all three protocols (gRPC, gRPC-Web and Connect), which is very useful in the long term. What's more, the code is cleaner, and you benefit from official support for observability with OpenTelemetry. If you don't know Buf (the creators of Connect),I suggest you visit their website: https://buf.build/. :-) Good luck!
  • Building a modern gRPC-powered microservice using Node.js, Typescript, and Connect
    15 projects | dev.to | 20 Apr 2023
    As mentioned in the intro, we are going to use Buf and Connect as our tools. We’ll start by installing the dependencies.
  • Building High-Performance Web Services with Golang gRPC
    2 projects | /r/golang | 17 Apr 2023
    gRPC itself is quite nice, especially with buf which makes generating Go code much easier. The rest of the code was in a bad state. Unmaintained router packages, repository pattern without any actual benefit or a repository pattern.
  • gRPC vs REST: Comparing API Styles in Practice
    6 projects | dev.to | 21 Feb 2023
    The second big difference is that we now have auto-generated client and server stubs. For this task, I chose to use buf and the protobuf-ts plugin in order to generate idiomatic Typescript classes and objects. Not only do these classes describe the types we'll use in the server and client, but also includes the actual gRPC implementations used to serialize and send messages back and forth across the wire.
  • Show HN: ProtoCURL, a Curl for Protobuf
    4 projects | news.ycombinator.com | 20 Feb 2023
    Our team has been using Buf (https://buf.build) recently, and they have a nice solution for schema dependency management.

What are some alternatives?

When comparing protobuf-grammar and buf you can also consider the following projects:

wireshark

protoc-gen-validate - Protocol Buffer Validation - Being replaced by github.com/bufbuild/protovalidate

prototool - Your Swiss Army Knife for Protocol Buffers

grpc-web - gRPC for Web Clients

goprotobuf - Go support for Google's protocol buffers

gRPC - The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)

oapi-codegen - Generate Go client and server boilerplate from OpenAPI 3 specifications

grpc-gateway - gRPC to JSON proxy generator following the gRPC HTTP spec

grpcui - An interactive web UI for gRPC, along the lines of postman

powerproto - 🎉 An awesome version control tool for protoc and its related plugins.

grpc-microservice-example - Go microservice tutorial project using gRPC

evans - Evans: more expressive universal gRPC client

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured