Zig-Index/registry
The unofficial registry of Zig packages and applications projects for Zig Index.
Zig Index is an independent and unofficial registry of Zig projects. It is not affiliated with, endorsed by, or maintained by the Zig Software Foundation or any of its founders. All projects listed on this website are owned and maintained by their respective developers and the community. No ownership or responsibility is claimed over any third-party software hosted or indexed. I do not own or claim any rights to trademarks, logos, or names referenced or displayed; all such assets belong to their respective owners.
Update: Based on community feedback, the registry functionality has been changed to be fully automated! no need for Fork PR anymore, Thank you for all your feedback! All new projects will appear on the live site within few hours automatically!
Zig Index is a community-driven registry for discovering and sharing Zig projects. It provides:
zig fetch commandsdatabase/
├── username/ # GitHub username or organization
│ ├── repo-name.json # Repository details
│ └── another-repo.json
└── another-user/
└── project.json
You must add one of the following topics to your GitHub repository:
zig-packagezig-applicationOptionally, you can also add zig-index to show support.
Users can install projects directly using zig fetch:
# Using .tar.gz (recommended)
zig fetch --save https://github.com/{owner}/{repo}/archive/refs/tags/{version}.tar.gz
# Using .zip
zig fetch --save https://github.com/{owner}/{repo}/archive/refs/tags/{version}.zip
For repositories without releases, the main branch is used:
# Main branch (latest commit)
zig fetch --save https://github.com/{owner}/{repo}/archive/refs/heads/main.tar.gz
The website automatically generates these commands with copy-to-clipboard functionality!
After running zig fetch --save, add the dependency to your build.zig:
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
// Add dependency
const dep = b.dependency("package-name", .{
.target = target,
.optimize = optimize,
});
const exe = b.addExecutable(.{
.name = "my-app",
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
// Import module from dependency
exe.root_module.addImport("package-name", dep.module("package-name"));
b.installArtifact(exe);
}
build.zig or build.zig.zon# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
This registry is open source under the MIT License.
We welcome contributions! Here's how you can help:
Made with ❤️ by the Zig Community