awesome-zig
A collaborative list of awesome Zig libraries and resources.
https://github.com/zigcc/awesome-zig
Last synced: 5 days ago
JSON representation
-
Data & Science
-
Database
- tigerbeetle - The distributed financial accounting database designed for mission critical safety and performance. [tigerbeetle.com](https://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.
-
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.
-
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](https://github.com/karpathy/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.
-
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.
-
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.Io` implementation, letting you inject faults and replay failures from seeds.
-
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 Faria` that 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](https://leanpub.com/zenofzig).
-
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](https://github.com/asdf-vm/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.
-
Text Editors
- zigtools/zls - The @ziglang language server for all your Zig editor tooling needs, from autocomplete to goto-def! [installation](https://zigtools.org/zls/install/).
- 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 `ls` alternative, 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](https://github.com/bare-devcontainer/images/tree/main/zig).
- 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.
-
-
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.context` using Zig build.
- fiber - Userland threads using Zig build.
- outcome - Provides very lightweight `outcome<T>` and `result<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](https://ziggit.dev/t/is-there-a-list-of-projects-that-has-been-zigged/1785).
- 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.
- floooh/sokol-zig - Zig bindings for the sokol headers.
- jiacai2050/zig-curl - Zig bindings for libcurl.
- jiacai2050/zig-rocksdb - Zig bindings for RocksDB.
- jiacai2050/zig-jemalloc - Zig allocator baked by jemalloc.
- arshidkv12/zig-php - Write PHP extension in Zig.
- sackosoft/zig-luajit - Zig bindings for the LuaJIT C API.
- OnlyF0uR/pqc-zig - Zig bindings and abstractions for [PQClean](https://github.com/PQClean/PQClean/), post-quantum cryptography.
- happystraw/phpz - Build PHP extensions with Zig.
- pedronaugusto/zjolt - Zig bindings for Jolt Physics — the whole runtime, from shapes and the step to constraints, characters, vehicles, ragdolls, soft bodies and hair. AI-assisted.
- pedronaugusto/zecs - Zig bindings for flecs, Sander Mertens's entity component system — vendored byte for byte. AI-assisted.
- pedronaugusto/ztypeset - Text shaping and glyph rasterisation for Zig: vendored FreeType, HarfBuzz, SheenBidi and libunibreak behind one package. AI-assisted.
- pedronaugusto/zozz - Zig bindings for the ozz-animation runtime — skeletal animation sampling. AI-assisted.
- pedronaugusto/zmeshopt - Zig bindings for meshoptimizer — mesh indexing, optimization, simplification, compression and meshlet building. AI-assisted.
- pedronaugusto/zcgltf - Zig bindings for cgltf — glTF 2.0 parsing, validation, accessor reading and writing. AI-assisted.
- pedronaugusto/zrecast - Zig bindings for recastnavigation — navmesh baking, path queries, off-mesh links, dynamic obstacles through a tile cache and crowd steering. AI-assisted.
-
Categories
Sub Categories
Game Development
42
File Format Processing
36
Build with Zig
31
Network
31
Utility
31
Graphics Library
27
Operating Systems
23
Data Structure and Algorithm
23
Web Framework
22
Package and Version Manager
20
FFI Bindings
19
Embedded Development
18
GUI
17
Database
17
Web3 Framework
16
Memory Allocator and Management
15
Command Line and Argument Parser
14
WebAssembly
13
Learning Resources
12
Date, Time and Timezones
11
Emulators
11
Large Language Model
11
Text Editors
11
Compilers and Interpreters
10
Image and Video Processing
9
Machine Learning Framework
8
Linear Algebra
8
GPU Computing
7
Performance Benchmark
6
Asynchronous Runtime
6
String Processing
6
Logging Processing
6
Sensor and Communication Interface
5
Community
5
Encryption
5
Linters
4
Documentation and Testing
3
Parser Library
3
Kernel and Containers
2
Audio Processing
2
Machine Learning
2
Finite State Machine
1
Multithreading
1
Scientific Computation
1
Browser
1
Linker
1
Keywords
zig
284
zig-package
144
ziglang
72
zig-library
38
wasm
16
cpp
12
gamedev
11
c
10
cli
9
webassembly
9
cpp-library
8
linux
8
parser
7
graphics
7
zig-gamedev
7
http
7
argument-parser
6
cplusplus
6
networking
6
math
6
osdev
6
kernel
6
command-line
5
opengl
5
embedded
5
library
5
gui
5
terminal
5
operating-system
5
tls
5
api
4
datetime
4
server
4
lua
4
time
4
risc-v
4
os
4
version-manager
4
game
4
windows
4
bindings
4
async
4
http-server
4
web
4
cryptography
4
html
4
vulkan
4
nuttx
4
2d
4
cross-platform
4