Riadh Chelbi
← All work

uuiz

Role —
Author
Date —
September 1, 2025
Stack —
Zig, Libraries

uuiz is a lightweight, zero-dependency UUID library for Zig. It provides RFC 4122 compliant UUID generation, parsing, and manipulation with a focus on performance and type safety.

Every UUID is represented as a u128 — no heap allocation, no string conversion until you actually need it. The API is designed so that invalid states are unrepresentable: you can’t accidentally pass a v3 UUID where a v4 is expected.

Features

  • RFC 4122 compliant — v1 (time-based) and v4 (random) generation
  • Zero dependencies — only the Zig standard library
  • Type-safe API with compile-time version enforcement
  • Parse from string, format to string, or work directly with the u128
  • 16 commits, CI with GitHub Actions

Why it exists

I needed UUIDs in a Zig project and the existing options either pulled in dependencies or wrapped C libraries. uuiz is the Zig-native version of that — small, fast, and nothing you didn’t ask for.