Declarative Binary Parser
JSON →Binary-parser is a JavaScript/TypeScript library designed for declaratively building efficient parsers for structured binary data. It allows developers to define complex binary structures using a fluent API, supporting a wide range of data types including various integer sizes (8, 16, 32, 64-bit, signed/unsigned, big/little endian), floating-point numbers, bit fields, strings, arrays, and nested user-defined types. The library dynamically generates and compiles optimized parser code at runtime, aiming for performance comparable to hand-written parsers. The current stable version is 2.3.0, with an active development cadence including regular patch and minor releases, alongside significant major updates like v2.0.0. Key differentiators include its declarative syntax for defining complex structures and its focus on runtime performance through code generation.
Traffic · last 30 days ↓37% vs prev 7d
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France