Kaitai Struct Compiler is a tool that generates parsers for binary data formats from a declarative YAML or JSON definition (KSY format). Current stable version is 0.11.0, released September 2025. It supports multiple target languages including C++, C#, Java, JavaScript, Python, Ruby, Rust, and Go. The compiler is part of the Kaitai Struct ecosystem, which provides a language-agnostic way to describe binary formats and then compile those descriptions into efficient, reusable parsers in various programming languages. Unlike hand-written parsers, Kaitai Struct ensures consistency across languages and reduces maintenance overhead. The compiler is distributed as a standalone JAR file, available via releases on GitHub.
npm install kaitai-struct-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates installing the compiler, compiling a KSY file to JavaScript, and using the generated parser with the kaitai-struct runtime.
Explicitly specify -t java if you previously relied on the default.
Use short flags (-t, -o) instead of long options.
Install JRE 8+ and ensure java is in PATH.
Download the JAR directly from GitHub releases if offline.
Use require('kaitai-struct/KaitaiStream') instead of require('kaitai-struct').Remove the flag from your compilation commands.
Run 'npm install kaitai-struct' to install the runtime.
Install JRE 8+ and ensure the kaitai-struct-compiler JAR is in the expected location.
Add npm global bin directory to PATH or reinstall with -g.
No dependency data recorded yet.