MCPcopy Index your code
hub / github.com/bufbuild/buf-examples

github.com/bufbuild/buf-examples @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
974 symbols 2,230 edges 124 files 236 documented · 24%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

The Buf logo

Buf examples

This repository houses example projects and code for products in the Buf ecosystem. For more information, we recommend checking out the official docs.

Buf CLI

This directory contains quickstart and example code that demonstrates key functions and usage of the Buf CLI.

Buf Schema Registry (BSR)

This directory contains quickstart code that demonstrates key functions and usage of the BSR, and how to create Buf plugins for custom lint and breaking change rules that you can upload to the BSR.

Protovalidate

Quickstart guides and examples for Protovalidate show how standard annotations and custom CEL expressions can be used to validate Protobuf messages.

Integrations

Integrations contains example code supporting Buf's documentation about integration with CI/CD pipelines.

Extension points exported contracts — how you extend this code

InvoiceServiceClient (Interface)
InvoiceServiceClient is a client for the invoice.v1.InvoiceService service. [20 implementers]
protovalidate/connect-go/finish/gen/invoice/v1/invoicev1connect/invoice_service.connect.go
InvoiceServiceClient (Interface)
InvoiceServiceClient is a client for the invoice.v1.InvoiceService service. [20 implementers]
bsr/quickstart/finish/server/gen/invoice/v1/invoicev1connect/invoice.connect.go
LocationOrBuilder (Interface)
(no doc) [4 implementers]
cli/managed-mode/gen/proto/java/io/acme/weather/v1/WeatherProto.java
PetStoreServiceClient (Interface)
PetStoreServiceClient is a client for the pet.v1.PetStoreService service. [2 implementers]
cli/quickstart/finish/gen/pet/v1/petv1connect/pet.connect.go
Worker (Interface)
(no doc)
protovalidate/quickstart-es/finish/vitest.d.ts
InvoiceServiceHandler (Interface)
InvoiceServiceHandler is an implementation of the invoice.v1.InvoiceService service. [20 implementers]
protovalidate/connect-go/finish/gen/invoice/v1/invoicev1connect/invoice_service.connect.go
InvoiceServiceHandler (Interface)
InvoiceServiceHandler is an implementation of the invoice.v1.InvoiceService service. [20 implementers]
bsr/quickstart/finish/server/gen/invoice/v1/invoicev1connect/invoice.connect.go
WeatherOrBuilder (Interface)
(no doc) [3 implementers]
cli/managed-mode/gen/proto/java/io/acme/weather/v1/WeatherProto.java

Core symbols most depended-on inside this repo

newBuilder
called by 75
cli/managed-mode/gen/proto/java/io/acme/weather/v1/WeatherProto.java
build
called by 73
cli/managed-mode/gen/proto/java/io/acme/weather/v1/WeatherProto.java
New
called by 50
cli/managed-mode/gen/proto/cpp/acme/weather/v1/weather.pb.h
createInvoice
called by 13
protovalidate/grpc-java/finish/src/main/java/invoice/v1/InvoiceService.java
buildPartial
called by 10
cli/managed-mode/gen/proto/java/io/acme/weather/v1/WeatherProto.java
setLatitude
called by 8
cli/managed-mode/gen/proto/php/Acme/Weather/V1/Location.php
setLongitude
called by 8
cli/managed-mode/gen/proto/php/Acme/Weather/V1/Location.php
getDefaultInstance
called by 7
cli/managed-mode/gen/proto/java/io/acme/weather/v1/WeatherProto.java

Shape

Method 666
Function 139
Struct 84
Class 58
Interface 19
Enum 5
TypeAlias 3

Languages

Go60%
Java18%
C++9%
Python7%
C#3%
PHP2%

Modules by API surface

cli/managed-mode/gen/proto/java/io/acme/weather/v1/WeatherProto.java108 symbols
cli/managed-mode/gen/proto/cpp/acme/weather/v1/weather.pb.h67 symbols
cli/quickstart/finish/gen/pet/v1/pet.pb.go63 symbols
bsr/quickstart/finish/server/gen/invoice/v1/invoice.pb.go38 symbols
cli/quickstart/finish/gen/google/type/datetime.pb.go34 symbols
cli/managed-mode/gen/proto/go/github.com/acme/weather/v1/acme/weather/v1/weather.pb.go29 symbols
cli/managed-mode/gen/proto/go/acme/weather/v1/weather.pb.go29 symbols
cli/managed-mode/gen/proto/csharp/Weather.cs27 symbols
protovalidate/rules-predefined/gen/bufbuild/people/v1/person.pb.go26 symbols
protovalidate/grpc-go/start/gen/invoice/v1/invoice.pb.go24 symbols
protovalidate/grpc-go/finish/gen/invoice/v1/invoice.pb.go24 symbols
protovalidate/connect-go/start/gen/invoice/v1/invoice.pb.go24 symbols

For agents

$ claude mcp add buf-examples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact