Skip to content
Back to Libraries

protobuf.js

10k

Protocol Buffers for JavaScript

License
BSD-3-Clause
Released
2013
Stars
10k

Use Cases

Efficient data serialization, gRPC communication, cross-language data exchange

Code Example

import protobuf from 'protobufjs';
const root = await protobuf.load('awesome.proto');
const Message = root.lookupType('package.Message');
const buffer = Message.encode({ field: 'value' }).finish();

Related Libraries