# gpb

> Protocol Buffers compiler for Erlang

Source: https://talira.ai/catalog/gpb-frdfz62d
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [libraries / serialization](https://talira.ai/categories/libraries/serialization), [languages / erlang](https://talira.ai/categories/languages/erlang)
- Licence: LGPL-2.1-or-later[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Tomas Abrahamsson](https://talira.ai/orgs/tomas-abrahamsson.md)

gpb is a compiler that turns [Protocol Buffers](https://talira.ai/catalog/protocol-buffers-6w9h1xsc.md) definition files into Erlang modules for encoding and decoding messages, through its `protoc-erl` command-line tool or rebar integration. The code it generates belongs to whoever owns the input `.proto` files, not to gpb's licence.

## Links

- GitHub: https://github.com/tomas-abrahamsson/gpb
- Docs: https://hexdocs.pm/gpb/

## Problems it solves

- use Protocol Buffers in an Erlang app
- generate Erlang code from .proto files
- decode protobuf messages in Elixir

## Features

- compiles .proto files to Erlang encoders and decoders
- protoc-erl command-line tool
- rebar integration
- generated code isn't covered by gpb's licence

## Trust

Overall: 0.33 out of 1.
Signals: maintenance 0.27, adoption 0.55, momentum 0.19, community 0.65, backing 0.30, extensibility 0.00.

- latest release 5.0.0 6 months ago
- 582 GitHub stars
- 41 contributors
- backed by Tomas Abrahamsson

Warnings:

- last commit 6 months ago

## Related

- Works with [Protocol Buffers](https://talira.ai/catalog/protocol-buffers-6w9h1xsc.md)

## Sources

[^1]: https://github.com/tomas-abrahamsson/gpb/blob/master/COPYING.LIB (checked 29 Nov 2026)
[^2]: https://github.com/tomas-abrahamsson/gpb/blob/master/src/gpb.erl (checked 29 Nov 2026)
