Skip to content
On this page

Zig libraries

CLI

  • SimArgs - Simple, opinionated, struct-based argument parser in Zig.
  • parg - Lightweight argument parser for Zig.
  • zig-clap - Simple command line argument parsing library.
  • Zig Argument Parser - Simple-to-use argument parser with struct-based config.
  • mibu - Pure Zig library for low-level terminal manipulation.
  • zig-cli - Simple package for building command line apps in Zig.
  • zig-arg - clap-rs inspired arg parser library for zig that supports both subcommand, nested subcommand and flag.
  • ansi-term - Zig library for dealing with ANSI terminals.
  • cova - Commands, Options, Values, Arguments.

Web

  • http.zig - HTTP/1.1 server for zig.
  • h11 - HTTP/1.1 parser for Zig.
  • Routez - HTTP server for Zig.
  • Apple Pie - Basic HTTP server implementation in Zig.
  • ZHP - HTTP server written in Zig.
  • Zig Network - Small network abstraction layer around TCP & UDP.
  • zig-serve - Server implementations for several protocols in Zig. Includes http(s), gemini and gopher.
  • rem - HTML parsing library, written in Zig.
  • zfetch - HTTP request library for Zig with HTTPS support.
  • HTTP - HTTP core types for Zig.
  • Zelda - Simple HTTP client library for Zig.
  • ziget - Zig library/tool to request network assets.
  • Zap - Blazingly fast backends in zig.
  • Kobold - Easy declarative web interfaces.
  • Zerve - Simple micro web framework for writing web services.

DB

Crypto

  • charm - Zig version of the Charm crypto library.

Graphics

  • zgt - Zig GUI Toolkit.
  • tvg - Tiny Vector Graphics.
  • zig-cairo - Thin wrapper for the cairo 2D graphics library.
  • ZGL - Zig OpenGL Bindings.
  • brucelib - Monorepo of modules for programming cross-platform games, simulations, engines and editors.
  • Phyz - 2D game physics for Zig.
  • glTF parser - glTF 2.0 parser written in Zig, aiming to replace the use of some C/C++ libraries.
  • GUI - Zig native GUI toolkit for whole applications or extra debugging windows in an existing application.
  • ZIGCV - Zig bindings for OpenCV4.
  • Zero Graphics - Minimal OpenGL ES 2.0 library for Zig.
  • mach/glfw - Ziggified GLFW bindings.

WASM

Games

  • Cupcake - App framework for making small and delicious games.
  • zig-flecs - Zig wrapper over fast entity component system library.
  • jok - Minimal 2d/3d game framework.
  • zecsi - Small game framework made with Zig utilizing the awesome raylib.

macOS

  • ZigKit - Native Zig bindings for low-level macOS frameworks.

Math

  • VecFns - Automatic Vector Math Functions In Zig.
  • Zilliam - Geometric Algebra library for Zig.

Linux

  • AsyncIOUring - Event loop in Zig using io_uring and coroutines.

Embedded

  • regz - Zig code generator for microcontrollers.
  • MicroZig - Unified abstraction layer and HAL for several microcontrollers.

Test

  • Marble - Metamorphic testing library for Zig.
  • proptest.zig - Property testing library for zig.

iOS

  • Zig Deploy - Deploy your iOS apps written with Zig.

Other

  • Zig ECS
  • Upaya - Zig-based framework for creating game tools and helper apps.
  • zalgebra - Linear algebra library for games and computer graphics.
  • zld - Zig's lld drop-in replacement.
  • Mecha - Parser combinator library.
  • Dida - Differential dataflow for mere mortals.
  • zang - Audio synthesis.
  • zig-protobuf - protobuf 3 implementation.
  • zap - Asynchronous runtime with a focus on performance and resource efficiency.
  • Zig itertools - Improved rewrite of the python itertools library to Zig.
  • ziglyph - Unicode text processing.
  • Zigstr - UTF-8 string type.
  • Zig Interfaces - Dynamic dispatch for zig made easy.
  • hyperia - Playground of Zig async code.
  • zigimg - Create, process, read and write different image formats with Zig.
  • simdjzon - Port of simdjson, a high performance JSON parser.
  • zig-nodejs-example - Node.js Native Module written in Zig.
  • sokol-zig - Auto-generated Zig bindings for the sokol headers.
  • known-folders - Provides access to well-known folders across several operating systems.
  • zig-graph - Directed graph data structure for Zig.
  • ish - Sketches for Zig.
  • zig-libgc - Implements a Zig allocator that uses the Boehm-Demers-Weiser conservative Garbage Collector (libgc, bdwgc, boehm-gc).
  • Cosmic - Single binary tool for building graphical and cli apps in JavaScript/TS.
  • zjson - Minimal JSON library with zero allocations.
  • Zig Generator - Async generator type for Zig.
  • ctregex.zig - Compile time regular expressions in zig.
  • zoltan - Sol-inspired minimalist Lua binding for Zig. (Article)
  • zzz - Simple and boring human readable data format for Zig.
  • ctradix - Comptime radix tree in Zig.
  • protozig - Complete implementation of protobuf in Zig.
  • HeaderGen - Automatically generate headers/bindings for other languages from Zig code.
  • zig-libgit2 - Zig bindings to libgit2.
  • Adma - General purpose, multithreaded capable slab allocator for Zig.
  • Getty - Serialization framework for Zig.
  • json - Serialization library for JSON.
  • Concepts - Compile-time validation of type constraints.
  • hzzp - I/O agnostic HTTP/1.1 parser and encoder for Zig.
  • zig-yaml - YAML parser for Zig.
  • inon - Data serialization format in Zig.
  • nats.zig - Zig Client for NATS.
  • s2s - Zig binary serialization format and library.
  • uuid6-zig - UUIDv6 implemented in Zig.
  • zig-docker - Zig bindings for the Docker Engine API.
  • zlog - Zero-allocation log library for Zig.
  • mustache-zig - Logic-less templates for Zig.
  • Cuckoo Filter - Production-ready Cuckoo Filters for any C ABI compatible target.
  • Zort - Implementation of 13 sorting algorithms in Zig.
  • audiometa - Audio metadata/tag reading library written in Zig.
  • Metron - Zig library for writing micro-benchmarks.
  • Vortex - Structured concurrency in Zig.
  • any-pointer - Type erasure library for Zig.
  • zig-deque - Double-ended queue implementation in Zig.
  • Zig-TOML - TOML parser written in Zig.
  • Zig-Validate - Type validation library for writing a zero-cost, declarative, understandable, generic code.
  • Zig-LibreSSL - LibreSSL stream wrappers for Zig.
  • zigmkv - Matroska/webm (mkv) parser in Zig.
  • protobruh - Protobuf for Zig.
  • ziguid - GUIDs for Zig.
  • BYOL - Bring Your Own Loop -- A memory-efficient, straggler-avoiding, cache-friendly scheduler.
  • zcirc - Dynamic circular buffer allocator for zig.
  • poolalloc - Arena allocator with object re-use.
  • zig-js - Access the JS host environment from Zig compiled to WebAssembly.
  • zble - Bluetooth in Zig.
  • Zorrow - Borrowchecker in Zig.
  • pegzi - PEG (parsing expression grammar) parser in zig.
  • Composable allocators
  • zubench - Micro-benchmarking package for Zig.
  • zasp - Streaming parser.
  • zig-csv - Low-level CSV parser library for Zig.
  • libpcre.zig - Zig bindings to libpcre.
  • zigpb - Simple Protobuf encoder and decoder in Zig.
  • Zig Tree Formattar - Colored tree-like formatter for Zig.
  • libxev - Cross-platform event loop. libxev provides a unified event loop abstraction for non-blocking IO, timers, signals, events.
  • funzig - Functional Zig features.
  • protobuf-zig - Protocol buffers implementation in zig.
  • coyote-ecs - Fast and simple zig native ECS.
  • wave - Tiny WAV encoder/decoder for Zig.
  • zig-diff - Text diffing in zig.
  • Zig String - UTF-8 String Library.
  • zig-wfc - Implementation of the wave function collapse algorithm in Zig.
  • tres - ValueTree-based JSON parser.
  • okra - Pseudo-random deterministic merkle tree built on LMDB.
  • fastfilter - Binary fuse & xor filters for Zig.
  • zig-bench - Simple benchmarking lib in Zig.
  • mach/ecs - Entity Component System from first-principles designed for Zig.
  • zigrc - Reference-counted pointers for Zig inspired by Rust's Rc and Arc.
  • zig-steamworks - Steamwork bindings for Zig.
  • Z-HTML - HTML parser built in Zig.
  • arrow-zig - Apache Arrow implementation.
  • numz - Numerics library written in zig.
  • zigfsm - Finite state machine library for Zig.
  • zig-memutils - Memory utilities for the Zig programming language, including a reference counted pointer.
  • Zon - DOM based Zig Object Notation parser.
  • Accelerated Zig Parser - High-throughput tokenizer and parser for Zig.
  • Zig Itertools
  • Bit String - Library to check and extract values from integers based on a "bit string".