Overview of @bufbuild/protobuf
mainProtobuf-ES is a complete implementation of Protocol Buffers in TypeScript designed for modern JavaScript environments including web browsers, Node.js, Deno, and Bun. It serves as the runtime library for the protoc-gen-es code generator.
Key features include:
- Modern Ecosystem Support: Full ECMAScript module (ESM) support and first-class TypeScript support.
- Idiomatic Code: Generates idiomatic JavaScript and TypeScript code with much smaller bundle sizes compared to other implementations.
- Feature Completeness: Implements all proto3 features (including canonical JSON format) and all proto2 features (including extensions and text format).
- Standard APIs: Uses standard JavaScript APIs instead of the Closure Library.
- Advanced Capabilities: Provides descriptor and reflection support and is verified by Protocol Buffers conformance tests.