A Zig build tool that compresses and embeds asset directories directly into executables, exposing them as Zig declarations.

Stars

27

7-day growth

No data

Forks

0

Open issues

0

License

MIT

Last updated

2026-07-08

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It eliminates file name strings from optimized builds, provides compile-time known compressed and extracted sizes, and gives developers full control over when to extract the bundle at runtime.

Who it is for

  • Zig developers building self-contained executables with embedded assets
  • Game developers using Zig who want to compress and bundle resources
  • CLI tool authors needing to ship configuration or static files
  • Developers working on Zig applications for WebAssembly or embedded systems

Use cases

  • Embedding game assets like textures, sounds, and levels into a single binary
  • Bundling configuration files or templates for command-line tools
  • Packaging static web assets (HTML, CSS, JS) for a Zig-based HTTP server
  • Shipping documentation or data files without requiring external paths

Strengths

  • Compressed and extracted sizes are known at compile time, enabling precise binary size analysis
  • All files are compressed into a single blob for high compression ratios
  • Prevents leaking file names in release builds by mapping them to Zig declarations
  • Extraction can be deferred to runtime, allowing memory-efficient usage

Considerations

  • Only one compression algorithm is currently supported (the README lists plans for more)
  • No support for iterating the file tree at runtime (currently requires hard-coded file names)
  • All files are compressed together; per-file compression/decompression is not yet available

README quick start

Usage

Description

Compress and embed directories into your Zig executables.

Related repositories

Similar projects matched by category, topics, and programming language.

jazzzooo
jazzzooo GitHub avatar

buz

Buz is an experimental fork of pre-Rust Bun that aims to be a drop-in replacement for Bun, prioritizing incremental compilation and code cleanup via LLM-assisted contributions.

Zig
168
nevvixsz
nevvixsz GitHub avatar

zp

zp is a minimal, source-based package manager written in Zig that fetches, builds, and installs packages from source by aggregating recipes from Void, Crux, and KISS Linux.

Zig
3