# @bufbuild/protobuf

> Protocol Buffers for ECMAScript. Fully compliant with the Protobuf conformance tests.

Latest version **2.16.0** (published 2026-09-29) · (Apache-2.0 AND BSD-3-Clause) license · 0 weekly downloads

## Install

```sh
npm install @bufbuild/protobuf
pnpm add @bufbuild/protobuf
yarn add @bufbuild/protobuf
bun add @bufbuild/protobuf
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.16.0 |
| Published | 2026-09-29 |
| First published | 2022-03-07 |
| Weekly downloads | 0 |
| License | (Apache-2.0 AND BSD-3-Clause) |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| Maintainers | bufdev, tstamm-buf, bufbot, jdailey_buf, doriakeung, cmahony, kmcdonald-buf |
| Keywords | protobuf, schema, typescript, ecmascript |

## Links

- npm: https://www.npmjs.com/package/@bufbuild/protobuf
- Repository: https://github.com/bufbuild/protobuf-es
- Homepage: https://protobufes.com/
- Issues: https://github.com/bufbuild/protobuf-es/issues
- npm.io page: https://npm.io/package/@bufbuild/protobuf

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.16.0 (latest) — 2026-09-29
- 1.10.1 (legacy) — 2025-04-17
- 2.15.0 — 2026-09-11
- 2.14.1 — 2026-08-31
- 2.14.0 — 2026-08-13
- 2.13.0 — 2026-07-21
- 2.12.1 — 2026-06-22
- 2.12.0 — 2026-04-23
- 2.11.0 — 2026-01-21
- 2.10.2 — 2025-12-12
- 2.10.1 — 2025-11-12
- 2.10.0 — 2025-10-20
- 2.9.0 — 2025-09-18
- 2.8.0 — 2025-09-11
- 2.7.0 — 2025-08-19
- … 65 more at https://npm.io/package/@bufbuild/protobuf/versions

## README

# @bufbuild/protobuf

This package provides the runtime library for the [protoc-gen-es](https://www.npmjs.com/package/@bufbuild/protoc-gen-es)
code generator plugin.

## Protocol Buffers for ECMAScript

A complete implementation of [Protocol Buffers](https://protobuf.dev/) in TypeScript,
suitable for web browsers, Node.js, Deno, and Bun, created by [Buf](https://buf.build).

**Protobuf-ES** is a solid, modern alternative to existing Protobuf implementations for the JavaScript ecosystem. It
provides a comprehensive plugin framework and decouples the base types from RPC functionality.

Some additional features:

- Generates pure TypeScript
- Plain message objects, no getters/setters
- Reflection, registries, and custom options
- 100% conformant against the official Protobuf test suite
- Standard plugin-based generation, works with the Buf CLI as well as `protoc`
- Write your own code generators with [@bufbuild/protoplugin](https://www.npmjs.com/package/@bufbuild/protoplugin)
- Pairs with [@connectrpc/connect](https://www.npmjs.com/package/@connectrpc/connect) for RPC and [@bufbuild/protovalidate](https://www.npmjs.com/package/@bufbuild/protovalidate) for validation

## Installation

```bash
npm install @bufbuild/protobuf
```

## Documentation

To learn how to work with `@bufbuild/protobuf`, check out the docs for the [Runtime API](https://protobufes.com/guides/messages/)
and the [generated code](https://protobufes.com/reference/generated-code/).

Official documentation for the Protobuf-ES project can be found at [protobufes.com](https://protobufes.com/).

For more information on Buf, check out the official [Buf documentation](https://buf.build/docs/).

## Examples

A complete code example can be found in the **Protobuf-ES** repo [here](https://github.com/bufbuild/protobuf-es/tree/main/packages/protobuf-example).

---
_Source: https://npm.io/package/@bufbuild/protobuf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
