An open API service indexing awesome lists of open source software.

awesome-zig

A collaborative list of awesome Zig libraries and resources.
https://github.com/zigcc/awesome-zig

Last synced: 4 days ago
JSON representation

Data & Science

Database

Encryption

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.
  • h0rv/instructor.zig - Structured LLM output with validation and retries for OpenAI and Anthropic. AI-assisted.
  • h0rv/openai.zig - Generated SDK for the OpenAI API. AI-assisted.
  • h0rv/anthropic.zig - Generated SDK for the Anthropic API. AI-assisted.
  • h0rv/openresponses.zig - Generated SDK for the Open Responses API specification. AI-assisted.

Linear Algebra

Machine Learning

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

Sensor and Communication Interface

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.
  • 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 0 sorry. AI-assisted.

Learning Resources

Linker

  • kubkon/bold - A drop-in replacement for Apple’s system linker ld.

Linters

Package and Version Manager

Performance Benchmark

Text Editors

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 - Switch between Claude Code and Claude Desktop accounts without logging out, with per-directory profiles and concurrent terminals. Standalone binaries for macOS and Linux; Claude Desktop support is macOS only. AI-assisted.
  • 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.
  • ensky0/tildaz - Native Quake-style drop-down terminal for Linux, macOS, and Windows, written in Zig on libghostty-vt. AI-assisted.
  • aikoschurmann/zog - Fast JSONL search engine with a SQL-like query language for filtering, field extraction and aggregation. A SIMD prefilter skips lines that cannot match and a validating parser decides the rest exactly. 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.
  • 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.

FFI Bindings