A self-hosted Buf Schema Registry, in one Go binary.

Drop-in for the official buf CLI. SQLite or PostgreSQL. Local filesystem or S3/R2/MinIO. An embedded web UI with generated API docs and dependency graphs.

Get started Live demo GitHub

Apache-2.0 Go no cgo single static binary

What you get

Drop-in buf CLI compatibility

Works with the official CLI: buf registry login (device flow or --token-stdin), buf push, buf dep update, buf export, buf breaking, and buf registry organization create.

One binary, minimal deps

A single static Go binary. SQLite by default (modernc.org/sqlite, no cgo), or PostgreSQL for metadata. No runtime services required to start.

Built-in web UI + API docs

Owners, modules, commits, labels, a source browser, dependency graphs, and API docs generated from your .proto files. No JavaScript framework or external assets.

Real access control

Users, organizations with owner/member roles, bearer tokens, browser device login, optional OIDC SSO, and private modules.

Quickstart

Build the binary, prepare a database, create an admin user and token, then start the server.

git clone https://github.com/icycodes/protobay.git
cd protobay

make build                       # produces bin/protobay (or: go build -o bin/protobay ./cmd/protobay)

cp config.example.yaml protobay.yaml
./bin/protobay migrate --config protobay.yaml                       # apply DB migrations
./bin/protobay user create admin --admin --config protobay.yaml     # create the admin user
./bin/protobay token create --user admin --config protobay.yaml     # prints the token once

Start the server, passing the token as the bootstrap admin token:

PROTOBAY_ADMIN_TOKEN=<token-from-above> ./bin/protobay serve --config protobay.yaml

With no --config, the server runs on its built-in defaults (:8080, data in ./data). Open http://localhost:8080/ for the web UI.

Prefer containers? The image runs as a non-root user and migrates on first start:

make docker-build && docker run --rm -p 8080:8080 -v protobay-data:/data -e PROTOBAY_ADMIN_TOKEN=secret protobay:latest

Point buf at it

Name your module in buf.yaml using <public_host>/<owner>/<module>:

version: v2
modules:
  - path: proto
    name: localhost:8080/acme/weather
buf registry login localhost:8080
buf push --create --create-visibility public

The web UI

The embedded read-only UI ships with the server. Screenshots below are from a running instance.

protobay module overview page for acme/weather showing the README, license, file list, and a buf.yaml dependency snippet.
Module overview: README, license, file list, and a buf.yaml dependency snippet.
protobay home page listing organizations, users, and the most recently created public modules.
Home: organizations, users, and recently created public modules.
Generated API documentation page listing services, RPCs, messages, enums, and their comments.
Generated API docs: services, RPCs, messages, enums, and comments.
Module dependency page showing an SVG dependency graph and a dependency tree.
Dependency graph (SVG) and dependency tree.

Works with the buf CLI

The registry speaks the BSR ConnectRPC surface over Connect, gRPC, and gRPC-Web, so the real buf CLI drives it without a plugin.

Name the module

The name is <public_host>/<owner>/<module>. The host must match server.public_host exactly, or digest verification breaks.

version: v2
modules:
  - path: proto
    name: localhost:8080/acme/weather

Log in

Browser-based device flow, or --token-stdin with a token from protobay token create. The token is stored in ~/.netrc.

buf registry login localhost:8080

Push a module

--create creates the module on first push. Visibility defaults to private, so pass --create-visibility public for a public module.

buf push --create --create-visibility public

Resolve deps and check breaking changes

Pin dependencies in buf.lock, then check for breaking changes against the registry's default label.

buf dep update
buf breaking . --against-registry

Features in depth

Protocol and digests

Storage

Auth and access

Web UI

Operations

How protobay compares

Comparison of protobay and the hosted buf.build registry
Aspect protobay buf.build
Hosting Self-hosted, on your infrastructure Hosted, managed BSR
License Apache-2.0, open source Proprietary service
Works with the buf CLI Yes Yes
Storage you control SQLite or PostgreSQL; your local FS or S3/R2/MinIO Managed by the service
Web UI Included, embedded (read-only) Hosted

protobay is an independent project and is not affiliated with Buf Technologies.

Limitations

Known and deliberate limits — worth reading before you deploy.