buf VS googleapis

Compare buf vs googleapis and see what are their differences.

googleapis

Public interface definitions of Google APIs. (by googleapis)
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
buf googleapis
39 13
8,258 6,522
1.4% 1.0%
9.5 9.6
3 days ago 3 days ago
Go Starlark
Apache License 2.0 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.

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 2023-12-15.
  • 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.
  • Resources for getting into cloud computing?
    1 project | /r/golang | 19 Feb 2023
    I've found that https://buf.build/ is easier to use than protoc directly.
  • Issues with proxying gRPC services to web, and a potential prototype
    4 projects | /r/golang | 12 Feb 2023
    Consider checking out https://connect.build from https://buf.build. Supports a simpler protocol than grpc-web. Includes a js/ts client for frontend. Then you don’t necessarily need a rest layer, but could leverage the proxy your building.

googleapis

Posts with mentions or reviews of googleapis. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-24.
  • REST vs gRPC
    2 projects | dev.to | 24 May 2023
    Rich Error Model: This model enables servers to return and clients to consume additional error details expressed as one or more protobuf messages. It further specifies a standard set of error message types to cover the most common error (QuotaFailure, PreconditionFailure, BadRequest, etc). When an error occurs, the server returns the appropriate status code along with an optional error message.
  • Mullvad Leta
    2 projects | news.ycombinator.com | 16 May 2023
    They list search in their public api

    https://github.com/googleapis/googleapis/blob/288aa7fb71c9b6...

  • Reasons to use gRPC/Protobuf?
    3 projects | /r/golang | 30 Apr 2023
    We structure the repo according to proto packages. It's quite similar to how the googleapis repository is structured.
  • Problem Details for HTTP APIs
    1 project | news.ycombinator.com | 30 Mar 2023
    It's unfortunate that the spec doesn't contain custom fields to a sub-object like other RPC specs, like proto Status [1]. They should have had the message go into a field named "message" and not "detail". And have a field like "details" where the opaque type is serialized, which should be named by the "type" field. The problem is that systems with existing error types may have field name conflicts with type, title, status, detail, or instance, so we'd just dump the actual error into a custom "extension member" which by definition, isn't standard.

    [1] https://github.com/googleapis/googleapis/blob/1c8a25ab153eef...

  • [Media] Dear Google, When Rust? Sincerely, Internet
    8 projects | /r/rust | 17 Mar 2023
    Protobuf (https://github.com/googleapis/googleapis)
  • gRPC vs REST: Comparing API Styles in Practice
    6 projects | dev.to | 21 Feb 2023
    All the required changes can be viewed in our last demo, the grpc-rest-app implementation. First, we need to update our proto service interface to help the proxy service make our gRPC service methods available at the right URLs and for the correct HTTP operations. To do this, the Google API HTTP library provides annotations we can add to our proto to describe the correct mappings. The buf tool allows us to include the googleapis dependency as a plugin in our buf.yaml file).
  • Code Design Decision – Always throw custom exceptions
    2 projects | news.ycombinator.com | 19 Dec 2022
    I think this only makes sense if the 3rd party is also throwing custom exceptions.

    If you want to reduce coupling you should avoid throwing custom exceptions at all. Semantic information can go in the error message and log. The error type should be used to indicate to your program whether an error is recoverable, retriable or some other action needs to be taken. For example google on has 16 canonical error codes for all APIs.

    https://github.com/googleapis/googleapis/blob/master/google/...

  • Microservice Communication
    4 projects | /r/golang | 17 Nov 2022
    OpenAPI and possibly developing reusable, versioned client libraries could help, but it's a major undertaking that gRPC makes redundant. I'd be tempted to use grpc-gateway even if I had to implement a REST API. Try looking into buf and monorepo structures for proto management, e.g. something like GoogleCloudPlatform/microservices-demo. For more thorough proto and grpc-gateway definition examples, see googleapis/googleapis.
  • Convex vs. Firebase
    7 projects | news.ycombinator.com | 21 Jun 2022
    Firestone does provide global consistency, so the following quote is incorrect:

    > In Cloud Firestore, the data on the client are loaded from the database at different points in time. Even if you listen for realtime updates, results from separate queries will not remain in sync. This creates consistency anomalies and bugs in your app.

    Here is a link to the protocol documentation that the clients use to support it: https://github.com/googleapis/googleapis/blob/d0b394f188e8c3...

    I'd link to the client implementation but it's quite involved.

  • Useful Old Technologies: ASN.1 (2013)
    2 projects | news.ycombinator.com | 25 Dec 2021
    Well there is Timestamp defined as a well known type which is available to all implementations despite not being a primitive type [1]. Plus one is obviously able to define any other custom types if necessary- eg as seen in [2].

    [1] https://developers.google.com/protocol-buffers/docs/referenc...

    [2] https://github.com/googleapis/googleapis/blob/master/google/...

What are some alternatives?

When comparing buf and googleapis you can also consider the following projects:

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

supabase - The open source Firebase alternative.

prototool - Your Swiss Army Knife for Protocol Buffers

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

grpc-web - gRPC for Web Clients

readyset - Readyset is a MySQL and Postgres wire-compatible caching layer that sits in front of existing databases to speed up queries and horizontally scale read throughput. Under the hood, ReadySet caches the results of cached select statements and incrementally updates these results over time as the underlying data changes.

goprotobuf - Go support for Google's protocol buffers

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

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

gogoprotobuf - [Deprecated] Protocol Buffers for Go with Gadgets

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

parthenon - The Symfony SaaS boilerplate