ProtobufExplained
Learn about important Protobuf concepts in a more interactive and visual way. Learn how Protobuf works, from the language to the binary encoding.
The guide
- 1
Basics
Write practical schemas with messages, fields, and enums.
Messages, Fields, Enums, Packages, Composition, Repeated Fields, Maps, Oneof, Generating Code, Services
- 2
Advanced
Evolve messages without breaking deployed systems.
Imports, The Any Type, The Value Type, Editions, Standard Options, Unknown Fields, Schema Evolution, Field Presence, Required Fields, Size Limits
- 3
Descriptors
Inspect schemas as machine-readable data.
- 4
Extending
Use plugins, extensions, and custom options.
- 5
Validation
Enforce type and business-rule validation.
- 6
Efficiency
Compare Protobuf size and shape against JSON.
- 7
Binary
Decode wire-format bytes one field at a time.
Binary 101, Base-128 Varints, ZigZag, The Field Tag, Wire Types, Map Encoding, Presence, Parse Loop, Binary Explorer
- 8
Community
Explore Protobuf adoption, history, and community resources.
Tools and reference
Types
Reference for scalar types, well-known types, and JSON.
Ecosystem
Find implementations, libraries, and Protobuf projects.
Practice
Fix broken schemas and get instant compiler feedback.
Quiz
Test what you know, from schema basics to wire format.
Playground
Edit a schema and see a message that fits it.
Language Spec
Read the formal Protobuf language specification.
PDF Book
The whole guide as one PDF, for reading offline.
Trending this month
All 124 projects- 1
ConnectRPC
connectrpc/connect-go
+87
8.4K stars
- 2
Protocol Buffers (Google)
protocolbuffers/protobuf
+75
72.2K stars
- 3
gRPC
grpc/grpc
+57
45.5K stars
- 4
Prost
tokio-rs/prost
+42
4.8K stars
- 5
Buf CLI
bufbuild/buf
+33
11.5K stars
- 6
Buffa
anthropics/buffa
+27
952 stars
GitHub stars gained in the last 30 days.