# @bufbuild/protoplugin

> Helps to create your own Protocol Buffers code generators.

Latest version **2.15.0** (published 2026-09-11) · Apache-2.0 license · 0 weekly downloads

## Install

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

## 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.15.0 |
| Published | 2026-09-11 |
| First published | 2022-07-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 225.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1661 |
| Maintainers | bufdev, tstamm-buf, bufbot, jdailey_buf, doriakeung, cmahony |
| Keywords | protobuf, schema, typescript, ecmascript, protoc-plugin |

## Links

- npm: https://www.npmjs.com/package/@bufbuild/protoplugin
- 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/protoplugin

## Dependencies (3)

- [typescript](https://npm.io/package/typescript.md) 5.4.5
- [@typescript/vfs](https://npm.io/package/@typescript/vfs.md) ^1.6.2
- [@bufbuild/protobuf](https://npm.io/package/@bufbuild/protobuf.md) 2.15.0

## 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.15.0 (latest) — 2026-09-11
- 1.10.1 (legacy) — 2025-04-17
- 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
- 2.6.3 — 2025-08-04
- … 53 more at https://npm.io/package/@bufbuild/protoplugin/versions

## README

# @bufbuild/protoplugin

This package helps you create your own code generator plugin using the
Protobuf-ES plugin framework.

**Protobuf-ES** is a complete implementation of [Protocol Buffers](https://protobuf.dev) in TypeScript, suitable for web browsers, Node.js, Deno, and Bun.

In addition to a full Protobuf runtime library, it provides the [`protoc-gen-es`](https://www.npmjs.com/package/@bufbuild/protoc-gen-es)
code generator, which uses a plugin framework to generate base types from
your Protobuf schema. It is fully compatible with both `buf` and `protoc` compilers.

And now, you can write your own **Protobuf-ES** compatible plugins using this same
plugin framework with the `@bufbuild/protoplugin` package.

With `@bufbuild/protoplugin`, you can generate your own TypeScript code tailored
to your project or needs. You also have various options for producing
JavaScript and TypeScript declaration files:

- Exercise full control by writing your own JavaScript and declaration file
  generators in addition to TypeScript.

- Generate TypeScript files only and let the framework generate JavaScript and
  declaration files automatically using our internal TypeScript compiler.

- Generate TypeScript files only and bring your own TypeScript compiler, using
  it to generate JavaScript and declaration files with your own version of
  TypeScript and your own compiler options.

With `@bufbuild/protoplugin`, you have all the tools at your disposal to produce
ECMAScript-compliant code.

## Usage

Get started now with our [plugin documentation](https://protobufes.com/guides/writing-plugins/).

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