-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Home
Daniel Wirtz edited this page Nov 30, 2016
·
101 revisions
NOTE: The wiki currently contains information related to protobuf.js v5 and earlier. protobuf.js v6 describes its API within its README and new API documentation instead.
protobuf.js is a Protocol Buffers implementation on top of bytebuffer.js including a .proto parser, reflection, message class building and simple encoding and decoding in plain JavaScript. There is no compilation step required, it's super easy to use and it works out of the box on .proto files.
Latest API changes:
- protobuf.js 5.0 - webpack compatibility
- ProtoBuf.js 4.0 - proto3 and pbjs
- ProtoBuf.js 3.8 - Binary in JSON
- ProtoBuf.js 3.7 - OneOfs
- ProtoBuf.js 3.5 - Extension fields
- ProtoBuf.js 2.2 - Delimited encode/decode
- ProtoBuf.js 2.0 - General API
Frequently asked questions:
- Why protobuf.js instead of, let's say, JSON?
- How to validate / decode / reverse engineer a protobuf buffer by hand?
- How to read binary data in the browser / under node.js?
- field_name looks ugly, can it be converted to fieldName?
- What about google/protobuf/descriptor.proto?
- See: wiki/Installation
- See: wiki/Getting-started