Generate Zig.
Own the bytes.
API contracts and examples from the Flatzz library. Explore native values, caller-owned storage, and borrowed views.
Runtime API
Serialize, verify, read, and update. Follow ownership and lifetime contracts through the public declarations.
Explore the runtime →Compiler API
Parse FBS and work with reflection metadata, JSON, and binary schemas.
Explore the compiler →Official examples
Read complete Zig projects, their build files, and linked schemas. Copy or download the original source.
Read the examples →Live playground
Edit FBS to generate Zig or schema JSON. Import BFBS and inspect schema fields.
Open the playground →From library to website
This website generates both API references from Flatzz’s public Zig modules and discovers official examples from its example/ directory. zig build docs and zig build examples refresh these website sections.
Download the library guides: Copyable examples · WebAssembly compiler.
Serialization accepts an allocator or an aligned buffer sized with comptime flatzz.storage.capacityFor. Keep backing storage alive while using borrowed views.