{"library":"pbf","type":"library","category":null,"description":"PBF is a low-level, fast, and ultra-lightweight JavaScript library (3KB gzipped) for efficiently decoding and encoding Protocol Buffers (protobuf), a compact binary format for structured data serialization. Version 4.0.1 is the current stable release, which includes minor fixes building upon the significant 4.0.0 overhaul. The library is actively maintained, with a recent major release focusing on modernizing the codebase and developer experience. A key differentiator of PBF is its exceptional performance, consistently outperforming `JSON.parse`/`JSON.stringify` and other protobuf implementations like `protocol-buffers` in benchmarks. It supports lazy decoding and offers extensive customization options for reading and writing data, making it suitable for both Node.js and browser environments where performance and bundle size are critical considerations.","language":"javascript","status":"active","version":"4.0.1","tags":["javascript","protocol","buffer","pbf","protobuf","binary","format","serialization","encoder","typescript"],"install":[{"cmd":"npm install pbf","imports":["import Pbf from 'pbf';","import { readMyMessage, writeMyMessage } from './my-schema.js';","import { compile } from 'pbf/compile';"]},{"cmd":"yarn add pbf","imports":[]},{"cmd":"pnpm add pbf","imports":[]}],"homepage":null,"github":"https://github.com/mapbox/pbf","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/pbf","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/pbf/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}