Socket
Book a DemoInstallSign in
Socket

@bufbuild/protobuf

Package Overview
Dependencies
Maintainers
6
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bufbuild/protobuf

A complete implementation of Protocol Buffers in TypeScript, suitable for web browsers and Node.js.

latest
Source
npmnpm
Version
2.10.0
Version published
Weekly downloads
5.8M
0.69%
Maintainers
6
Weekly downloads
 
Created
Source

@bufbuild/protobuf

This package provides the runtime library for the protoc-gen-es code generator plugin.

Protocol Buffers for ECMAScript

A complete implementation of Protocol Buffers in TypeScript, suitable for web browsers, Node.js, and Deno, created by Buf.

Protobuf-ES is a solid, modern alternative to existing Protobuf implementations for the JavaScript ecosystem. It's the first project in this space to provide a comprehensive plugin framework and decouple the base types from RPC functionality.

Some additional features that set it apart from the others:

  • ECMAScript module support
  • First-class TypeScript support
  • Generation of idiomatic JavaScript and TypeScript code
  • Generation of much smaller bundles
  • Implementation of all proto3 features, including the canonical JSON format
  • Implementation of all proto2 features, except for extensions and the text format
  • Usage of standard JavaScript APIs instead of the Closure Library
  • Compatibility is covered by the Protocol Buffers conformance tests
  • Descriptor and reflection support

Installation

npm install @bufbuild/protobuf

Documentation

To learn how to work with @bufbuild/protobuf, check out the docs for the Runtime API and the generated code.

Official documentation for the Protobuf-ES project can be found at github.com/bufbuild/protobuf-es.

For more information on Buf, check out the official Buf documentation.

Examples

A complete code example can be found in the Protobuf-ES repo here.

Keywords

protobuf

FAQs

Package last updated on 20 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts