jokecode
rich / zit Private

Tiny git server in Zig — smart-http v2, stores objects in R2

ziggitserverwasm
zit / README.md
32 lines · 689 B · markdown
# zit

A tiny self-hosted git server, written in Zig, that runs on Cloudflare Workers
via Wasm.

## Why

GitHub is fine. But I want a private code host that I fully control, with
zero monthly cost beyond the Workers free tier, that also serves as a
fingerprint of how compact a git server can really be.

## Status

Pre-alpha. Smart-HTTP v2 protocol mostly works for clone. Push lands next.

## Architecture

- **Storage**: R2 buckets, one per repo
- **Refs**: KV namespace, key per ref
- **Server**: Wasm-compiled Zig handler in a Worker
- **Frontend**: jokecode.net (this repo's reader UI)

## Build

```sh
zig build -Dtarget=wasm32-wasi -Doptimize=ReleaseSmall
```

## License

AGPLv3.