awesome-zig
A collaborative list of awesome Zig libraries and resources.
https://github.com/zigcc/awesome-zig
Last synced: 16 days ago
JSON representation
Data & Science
Database
- tigerbeetle - The distributed financial accounting database designed for mission critical safety and performance. tigerbeetle.com.
- vrischmann/zig-sqlite - Zig-SQLite is a small wrapper around SQLite's C API, making it easier to use with Zig.
- leroycep/sqlite-zig - This repository has Zig bindings for SQLite. It tries to make the SQLite c API more Ziggish.
- mjoerussell/zdb - A library for interacting with databases in Zig.
- kristoff-it/redis-cuckoofilter - Hashing-function agnostic Cuckoo filters for Redis.
- kristoff-it/zig-okredis - Zero-allocation Client for Redis 6+.
- vrischmann/zig-cassandra - Client for Cassandra 2.1+.
- speed2exe/myzql - MySQL and MariaDB driver in native Zig.
- karlseguin/pg.zig - Native PostgreSQL driver / client for Zig.
- karlseguin/zuckdb.zig - A DuckDB driver for Zig.
- nDimensional/zig-sqlite - Simple, low-level, explicitly-typed SQLite bindings for Zig.
- thanos/couchbase-zig-client - A wrapper around Couchbase's c library libcoucbase.
- mailmug/zentropy - High-performance, lightweight key-value store (Redis alternative).
- Axion - High-Performance, Embeddable Storage Engine for Zig & SQLite.
- zeno-core/zeno - High-performance embedded key-value storage engine with ART index, WAL, and sharded concurrency.
- lispking/kvdb - A lightweight, high-performance embedded key-value database written in Zig.
- pedronaugusto/chronicle - An append-only event log for Zig, where a journal is a directory of segment files holding one JSON object per line. AI-assisted.
- seqor/seqor - Seqor is a cost-effective, Loki compatible database for logs.
- antflydb/antfly - A search-and-inference database written in Zig, with full-text, vector and graph indexes over the same table. AI-assisted.
Encryption
- gernest/base32 - Base32 encoding/decoding for Ziglang.
- deatil/zpem - A pem parse and encode library for Zig.
- deatil/zig-md2 - A MD2 hash function library for Zig.
- deatil/zig-md4 - A MD4 hash function library for Zig.
- deatil/zig-sm3 - A SM3 hash function library for Zig.
- myzonerocks/gossveil - End-to-end encryption library for messaging applications, written in Zig. No-AI.
Large Language Model
- cgbur/LLaMa2.zig - Inference LLaMA 2 in one file of pure Zig.
- clebert/LLaMa2.zig - Inference LLaMA 2 in pure Zig.
- renerocksai/gpt4all.zig - Zig build for a terminal-based chat client for an assistant-style large language model with ~800k GPT-3.5-Turbo Generations based on LLaMA.
- EugenHotaj/zig_gpt2 - Neural Network Inference Engine in Zig. GPT2 inference engine written in Zig. The inference engine can run NanoGPT.
- ollama-zig - Ollama Zig library.
- CogitatorTech/zigformer - ZigFormer is a transformer-based LLM implemented in pure Zig.
- nullclaw/nullclaw - Fastest, smallest, and fully autonomous AI assistant infrastructure written in Zig.
- cognisoc/zigllm - Educational: build an LLM in Zig from scratch — tensors to text generation.
- SMC17/faiss-zig - Pure-Zig vector similarity search; Flat + HNSW + IVFFlat + IVFPQ. AGPL-3.0.
- cztomsik/clown-code - AI Coding assistant.
- ddalcu/mlx-serve - Native LLM inference server for Apple Silicon (MLX + GGUF) with OpenAI- and Anthropic-compatible APIs; ships MLX Core, a macOS menu-bar app. MIT.
- SMC17/safetensors-zig - Pure-Zig Hugging Face safetensors reader; ~5x faster than the Rust upstream on Llama-shape parse fixtures. AGPL-3.0.
- SMC17/tokenizers-zig - Pure-Zig Hugging Face tokenizers covering BPE / WordPiece / Unigram with full HF Encoding parity, sub-token offsets, and a 600-iter property fuzz. AGPL-3.0.
- SMC17/vllm-zig - LLM serving substrate. Real TinyLlama forward pass through Zig kernels: RoPE + GQA + KV cache + multi-thread SIMD matmul + streaming. AGPL-3.0.
- guanchzhou/zig-select - Budgeted selection of retrieved chunks for LLM context: knapsack packing, score calibration, and diversity. AI-assisted.
- guanchzhou/zig-diffuse - Re-ranking of retrieval scores by diffusion on link and nearest-neighbor graphs. AI-assisted.
- guanchzhou/zig-lsh - Cross-polytope and hyperplane LSH with multi-probe for approximate nearest-neighbor search. AI-assisted.
- guanchzhou/zig-rabitq - RaBitQ one- to eight-bit vector codes with error bounds for approximate nearest-neighbor search. AI-assisted.
- guanchzhou/zig-pq - Product quantization, k-means, and IVF-PQ for approximate nearest-neighbor search. AI-assisted.
Linear Algebra
- kooparse/zalgebra - Linear algebra library for games and real-time graphics.
- ziglibs/zlm - Zig linear mathematics.
- omaraaa/VecFns - Automatic Vector Math Functions In Zig.
- Laremere/alg - Algebra for Zig.
- BanchouBoo/algae - Zig math library focused on game development.
- JungerBoyo/zmath - Simple linear algebra library written in Zig.
- pblischak/zprob - A Zig Library for Probability Distributions.
- MASS4/MEGA4/Math-3D - Multi-precision 3D math library (f16/f32/f64) with vectors, matrices, quaternions, rays, and 2D collision primitives.
Machine Learning
- zerotech-studio/zack - Backtesting engine for trading strategies, written in Zig.
- Thomvanoorschot/zigma - Algorithmic trading framework leveraging Actor based concurrency and a WebAssembly client.
Machine Learning Framework
- maihd/zten - Tensor library for Zig, based on ggml.
- candrewlee14/zgml - Tensor library for machine learning, inspired by ggml.
- andrewCodeDev/ZEIN - Zig-based implementation of tensors.
- recursiveGecko/onnxruntime.zig - Experimental Zig wrapper for ONNX Runtime with examples (Silero VAD, NSNet2).
- Zigrad - A deep learning framework built on an autograd engine with high level abstractions and low level control. Trains neural networks 2.5x faster than PyTorch on Apple Silicon and 1.5x faster on CPU.
- SilasMarvin/dnns-from-scratch-in-zig - A very simple implementation of deep neural networks written in the Zig programming language.
- zml - A high performance machine learning stack for Zig.
- myzonerocks/gosslens - Real-time visual plumbing for agents, with a from-scratch ONNX engine that runs published models on device. AI-assisted.
- ggml-zig - A replacement for ggml: Tensor library for machine learning written in Zig.
Scientific Computation
- attron/astroz - Spacecraft and Astronomical Toolkit.
Sensor and Communication Interface
- ZigEmbeddedGroup/serial - Serial port configuration library for Zig.
- tetsu-koba/v4l2capture - v4l2 video capturer written in Zig.
- kdchambers/reel - Screen capture software for Linux / Wayland.
- ringtailsoftware/commy - Serial terminal monitor for Linux, Mac and Windows.
- MasterQ32/zig-network - A smallest-common-subset of socket functions for crossplatform networking, TCP & UDP.
Fundamentals
Community
- Zigistry/Zigistry - A place where you can find all the libraries that suit your Zig lang needs.
- Ziggit - The Zig forum.
- Reddit - The Zig subreddit.
- Zig Monthly - Articles and news from the community.
- ZigCC - Chinese Zig community.
Documentation and Testing
- kristoff-it/zig-doctest - A tool for testing snippets of code, useful for websites and books that talk about Zig.
- ryo-zen/zig-docs-mcp - MCP server providing access to Zig language docs, stdlib references, and working code examples.
-
sb2bg/marionette
- Deterministic simulation testing for Zig with a
std.Ioimplementation, letting you inject faults and replay failures from seeds. -
newmathphys/kern
- Zero-trust verification gateway: a claim is admitted only with machine evidence, so every Z3 proof DAG is re-checked inside KERN's own Zig kernel and each counterexample is replayed against the real function in Python (for C/Zig/Rust the counterexample comes from the SMT model with machine-type bounds). Contract annotations (
@kern:requires/@kern:ensures) are checked in Python, Zig, C and Rust, and the toolchain ships 125 Lean 4 theorems with 0sorry. AI-assisted.
Learning Resources
- Zig Language Reference - An introduction to the language with examples.
- Zig In-depth Overview - In-depth Overview of the Zig philosophy.
- Zig cookbook - A collection of simple Zig programs that demonstrate good practices to accomplish common programming tasks.
- Zig in 30 minutes - A half-hour to learn Zig.
- Learning Zig - This guide aims to make you comfortable with Zig. It assumes prior programming experience, though not in any particular language.
- Zig 圣经 - Chinese 简单、快速地学习 Zig.
- Ziglings - Learn the Zig programming language by fixing tiny broken programs.
-
Introduction to Zig - a project based book
- This is an open book by author
Pedro Duarte Fariathat provides an introduction to the Zig programming language, which is a new general-purpose, and low-level language for building robust and optimal software. - Systems Programming with Zig - This book teaches how to write quality, useful Zig applications without relying on libraries or frameworks.
- Изучаем язык программирования Zig - Russian textbook and blog about Zig.
- Zig Guide - Get started with the Zig programming language.
- Zen of Zig - Interactive Zig book, teaching from beginner to intermediate level with playgrounds and illustrations. Also available on Leanpub.
Linker
-
kubkon/bold
- A drop-in replacement for Apple’s system linker
ld.
Linters
- DonIsaac/zlint - Linter for the Zig programming language.
-
KurtWagner/zlinter
- Zig linter that is integrated from source into your
build.zig. - forketyfork/zwanzig - Static analyzer for Zig with CFG-based checks (leaks, double-free, optional unwrap, stack escapes).
- mstdokumaci/zsort - Import sorter/organizer with pre-commit hook support.
Package and Version Manager
- Getzig - An idea for a Zig version manager along the lines of gradle wrapper.
- marler8997/zigup - Download and manage Zig compilers.
- zigtools/zpm - Zig package manager helper.
- jsomedon/night.zig - Simple tool that just install & update Zig nightly.
- mitchellh/zig-overlay - Nix flake for the Zig compiler.
- Cloudef/zig2nix - Flake for packaging, building and running Zig projects.
- Cloudef/nix-zig-stdenv - Zig based cross-compiling toolchain.
- joachimschmidt557/zigpkgs - A collection of Zig packages built with Nix.
- nektro/zigmod - A package manager for the Zig programming language.
- vezel-dev/zig-sdk - An MSBuild SDK for building Zig, C, and C++ projects using the Zig compiler.
- tristanisham/zvm - Lets you easily install/upgrade between different versions of Zig. ZLS install can be included. (written in Go).
- nix-community/zon2nix - Convert dependencies in build.zig.zon files to Nix expressions.
- rosarp/nu-zigup - Download & manage Zig compilers & zls binaries. Script is written in nushell.
- weezy20/zv - Fast Zig/ZLS version manager + project starter kit written in Rust. Binaries available for macOS/Windows/Linux.
- mlugg/setup-zig - Install a Zig compiler for usage in GitHub Actions workflows.
- asdf-community/asdf-zig - Zig plugin for the asdf version manager.
- lispking/zvm - A fast, dependency-free version manager for Zig written in Zig.
- justrach/nanobrew - A fast macOS package manager written in Zig.
- hendriknielaender/zvm - A fast and simple Zig version manager written in Zig.
- indaco/malt - Homebrew's whole ecosystem, none of its weight: a single Zig binary with native post_install and a themeable TUI and CLI.
Performance Benchmark
- lucascompython/zigXrustXc - Performance of Zig vs Rust vs C.
- zackradisic/rust-vs-zig - This is an experiment to evaluate Rust vs. Zig by writing a bytecode interpreter with GC in both languages and comparing them.
- CoalNova/BasicCompare - A basic comparative analysis of C, C++, Rust, and Zig.
- ziglang/gotta-go-fast - Performance Tracking for Zig.
- hendriknielaender/zBench - Simple benchmarking library.
- andrewrk/poop - CLI Performance Observer written in Zig.
- jnordwick/zmida - Benchmarking harness for CPU-bound code with adaptive trials, TSC timing, perf counters and text, CSV or gnuplot output. AI-assisted.
Text Editors
- zigtools/zls - The @ziglang language server for all your Zig editor tooling needs, from autocomplete to goto-def! installation.
- Tetralux/sublime-zig - My own, more lightweight, syntax highlighting for the Zig Programming Language.
- jinzhongjia/znvim - Neovim remote rpc client implementation with Zig.
- jinzhongjia/zig-lamp - Improve the Zig development experience in Neovim.
- neurocyte/flow - Flow Control - a programmer's text editor written in Zig.
- ziglang/sublime-zig-language - Zig language support for Sublime Text.
- ziglang/vscode-zig - Zig language support for VSCode.
- ziglang/zig.vim - Vim configuration for Zig.
- ziglang/zig-mode - Zig mode for Emacs.
- zed-extensions/Zig - Zig extension for Zed editor.
- FalsePattern/ZigBrains - JetBrains IDEs (CLion, IntelliJ IDEA and others) plugin for Zig.
Utility
- fearedbliss/Honeydew - A simple snapshot cleaner for OpenZFS written in Zig.
- fearedbliss/Cantaloupe - A simple backup replication tool for OpenZFS written in Zig.
- Arnau478/hevi - A minimalistic and modernized hex viewer, written in Zig.
- hspak/geteltorito-zig - Re-write of geteltorito in Zig.
- NilsIrl/dockerc - Container image to single executable compiler.
- nrdmn/ilo_license_key - This library validates HP iLO license keys.
- shepherdjerred/macos-cross-compiler - Cross-compilation toolchain for Zig users to compile binaries for macOS on Linux.
- rockorager/zzdoc - A scdoc-compatible manpage compiler for use in build.zig.
- gaskam/workspace - A powerful Zig-based tool to manage all your GitHub repositories with ease.
- BrookJeynes/jido - Jido (formerly known as zte) is a small terminal file explorer, written in Zig.
- ghostty - Modern terminal emulator written in Zig.
-
rockorager.dev/lsr
- Efficient and fast
lsalternative, written in Zig. - gauravnumber/move.zig - Zig-based mv with auto conflict resolution.
- ghext - A small library for extracting head commits from Git repositories.
- deatil/zig-dotenv - A parse and set env library for Zig.
- ktarasov/zigrep - A training project on the implementation of the similarity of the grep utility in Linux in the Zig language.
- xcaeser/zig-dotenv - A powerful Zig library for loading, parsing, and managing environment variables from .env files.
- Decryptu/zigdex - Display Pokémon sprites in your terminal. A Zig rewrite of pokeget.
- zmx - Session persistence for terminal processes.
- forketyfork/architect - A flexible terminal grid for multi-agent AI workflows.
- zlist - A simple, colorful alternative to ls built with Zig.
- midasdf/zt - Ultra-fast, minimal terminal emulator written in Zig with fbdev, X11, Wayland, and macOS backends.
- zdu - A fast, low-memory TUI disk usage analyzer written in Zig.
- mtxr/claude-switch - Swap between Claude (Code + Desktop) accounts on macOS with a single command. Credentials stored securely in macOS Keychain. Fully offline.
- copyleftdev/whatthediff - Deterministic semantic diff across many files at once — finds consensus, drift, and outliers with inspectable evidence, from configs and JSON/YAML/XML/PDF to executables (SSDeep-style fuzzy analysis). Zero dependencies.
- bare-devcontainer/templates - Security-focused Zig dev container with zls integration and a persistent build cache. The base image is available at bare-devcontainer/images.
- xsawyerx/vind - A tiny embeddable full-text search engine that also has a CLI app and a built-in service.
- Illusionna/LocalTransfer - A fast cross-platform HTTP file server.
- deatil/zig-rsa - An RSA library for Zig. No-AI.
- lkraider/keywise - View saved logins from a local Firefox profile. Single binary, TUI and native GUI on macOS and Windows, five OS/arch targets. AI-assisted.
- ktarasov/check_links - A command-line utility (CLI) written in Zig for checking links on a web page. AI-assisted.
- hgrsd/duplik - Zig-based CLI to detect duplicate files. No-AI.
Interoperability
Build with Zig
- libz - Library zlib with the build system replaced by Zig.
- libvorbis - Library libvorbis with the build system replaced by Zig.
- libogg - Library libogg with the build system replaced by Zig.
- libebur128 - Library libebur128 with the build system replaced by Zig.
- pulseaudio - Library pulseaudio with the build system replaced by Zig.
- libchromaprint - Library chromaprint with the build system replaced by Zig.
- openssl - TLS/SSL and crypto library (uses Zig Build).
- wolfssl - Library WolfSSL Using Zig Build.
- fmt - A modern formatting library (uses Zig build-system).
- boost unordered - Boost.org unordered module (uses Zig build).
- boost async - Coroutines for C++20 & asio (uses Zig build for testing).
- json - Library JSON for Modern C++ (uses Zig build-system).
-
context
- Library
boost.contextusing Zig build. - fiber - Userland threads using Zig build.
-
outcome
- Provides very lightweight
outcome<T>andresult<T>(non-Boost edition) (uses Zig build-system). - Standalone - An Asio standalone C++ HTTP/S Server (uses Zig build-system).
- asio - The Asio C++ Library with Zig build-system.
- observable - Unique-ownership smart pointers with observable lifetime.
- Catch2 - A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch) - uses Zig build-system.
- cppfront - Build Cppfront with Zig build.
- hana - Your standard library for metaprogramming.
- intrusive - Boost.org intrusive module.
- range - The Range library for C++14/17/20, basis for C++20's std::ranges.
- benchmark - A microbenchmark support library. First posted on Ziggit.
- boring_tls - Google's BoringTLS client and server. Adds TLS to any (including non standard library) TCP/HTTP traffic.
- libxlsxwriter - A C library for creating Excel XLSX files, build system replaced by Zig.
- libui-ng - Library libui-ng (a portable GUI library for C) with the build system replaced by Zig.
- libmp3lame - Library libmp3lame with the build system replaced by Zig.
- nasm - Library nasm with the build system replaced by Zig.
- FFmpeg - Library FFmpeg with the build system replaced by Zig.
- raylib - A simple and easy-to-use library to enjoy videogames programming.
FFI Bindings
- natecraddock/ziglua - Zig bindings for the Lua C API.
- mitchellh/zig-objc - Objective-C runtime bindings for Zig (Zig calling ObjC).
- katafrakt/zig-ruby - This repo contains an experiment of building a Ruby extension with Zig programming language. It implements a slightly altered version of 100 doors from Rosetta Code.
- lassade/c2z - C++ to Zig bindings and transpiler.