1. @bufbuild/protobuf
A complete implementation of Protocol Buffers in TypeScript, suitable for web browsers and Node.js.
@bufbuild/protobuf
Package: @bufbuild/protobuf
Created by: bufbuild
Last modified: Mon, 22 Apr 2024 11:07:37 GMT
Version: 1.9.0
License: (Apache-2.0 AND BSD-3-Clause)
Downloads: 1,582,243
Repository: https://github.com/bufbuild/protobuf-es

Install

npm install @bufbuild/protobuf
yarn add @bufbuild/protobuf

@bufbuild/protobuf

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

Protocol Buffers for ECMAScript

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

Protobuf-ES is intended to be a solid, modern alternative to existing Protobuf implementations for the JavaScript ecosystem. It is 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.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin