hn.today

Rbit – fast, self hosted Git in a single Rust binary

github.com8 points6 comments
Screenshot of Rbit – fast, self hosted Git in a single Rust binary

rbit is a self-hosted Git hosting server packaged as a single Rust binary that requires no external services beyond the git executable. It supplies repositories, issues, pull requests, reviews and CI checks, and can be run quickly via Docker or a release binary (the first account becomes site administrator). Storage combines SQLite, redb and bare Git repositories in one data directory; releases and multi-arch container images are provided for common platforms. Setup examples and production guidance (systemd, TLS, backups) are included.

Design and features emphasize speed, security and tight resource bounds. The stack uses Axum, compiled Askama templates and gitoxide with server-rendered, htmx-driven SPA navigation for low-latency pages. Security defaults include Argon2id passwords, passkeys/TOTP, rate limits, strict CSP, scoped expiring tokens, an audit log and an SSH server that only speaks Git. Git functionality covers smart HTTP v2, a built-in SSH server, Git LFS with shared storage and file locking, imports from GitHub/Gitea preserving history and metadata, branch protection, access controls, browser editing, and merge options. Integrations include a versioned REST API (OpenAPI 3.1), GitHub-shaped webhooks with retrying delivery, commit status/checks, OpenID Connect sign-in, Prometheus metrics, and operational features like background maintenance, paged listings, capped workers, LTO builds and mimalloc for compact, predictable performance.

Read on github.com6 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Other

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.