⚡ Zig Guide LiveUnofficialbut fully verified
✓ Zig 0.17.0-dev.1567+f0354179aWhat's newOn an older Zig?

Zig Guide Live

A tutorial for the Zig programming language where every snippet is compiled and executed against current Zig master on every build. If an example on this site were out of date, the build would be red.

Snippets run in your browser as WebAssembly: the very same artifact CI verified. No server, nothing to install.

Zig moves fast, and documentation that is merely proofread rots quietly. This one is re-verified against a fresh compiler nightly, and republishes itself only when every snippet still passes. The exact mechanism, including what happens to the snippets a browser cannot run, is written up in how this guide is verified. Already on a tagged release? See what changed.

Read the guide → or pick a reading path.

What is in it

210 chapters in four tracks, in one reading order. The arrows at the foot of every page follow that order, so the whole guide is one walk if you want it to be.

Every section, in order →

What your browser needs

Running a snippet needs WebAssembly and JavaScript, and nothing else. The scripts here are built for Chrome and Edge 111, Firefox 114, and Safari 16.4 (iOS and iPadOS 16.4) or newer. On anything older, or with JavaScript off, every chapter still reads normally and every snippet is on the page, highlighted and complete; only the Run button is missing.

Who writes it

Rajesh Pillai, by hand. It is an unofficial community guide and is not affiliated with the Zig Software Foundation, whose documentation is at ziglang.org. More on what this is and what it is not, and how to report an error in a chapter.