Buf makes working with Protocol Buffers easy. Linting, breaking change detection, code generation, and a schema registry — all in one CLI.
What Is Buf?
Buf replaces protoc and makes Protobuf development modern. It catches breaking changes before they ship and generates code for any language.
Features:
- Protobuf linting
- Breaking change detection
- Code generation (any language)
- Buf Schema Registry (BSR)
- protoc replacement
- Free for open source
Quick Start
brew install bufbuild/buf/buf
# Init project
buf config init
# Lint
buf lint
# Check breaking changes
buf breaking --against .git#branch=main
# Generate code
buf generate
BSR API
# Search modules
curl https://buf.build/api/v1/search \
-d '{"query":"googleapis"}'
# Get module
curl https://buf.build/api/v1/modules/buf.build/googleapis/googleapis
Use Cases
- gRPC development — lint + generate client/server code
- API governance — enforce schema standards
- Breaking change CI — catch breaking changes in PRs
- Code generation — Go, TypeScript, Python, Java, etc.
- Schema registry — share .proto files across teams
Need web data at scale? Check out my scraping tools on Apify or email spinov001@gmail.com for custom solutions.
Top comments (0)