Fast Rust web frontend for bare Git repositories

195stars
24forks
Last commit: 7mo ago
Repo age: 4y old

rgit is a lightweight, high-performance web frontend for browsing bare Git repositories. It provides a modern gitweb/cgit-like interface written in Rust and optimized for fast metadata queries.

Key Features

  • Efficient metadata storage using RocksDB for commits, branches, and tags with configurable reindex interval (default: 5 minutes).
  • On-demand content loading via gitoxide: files, trees, and diffs are fetched when requested rather than preloaded.
  • Small in-memory caching for rendered READMEs and diffs to speed repeated views.
  • Modern Rust stack using an Axum web server and Askama-style templates for fast HTML rendering.
  • Dark mode UI and a simple repository listing with owner/description support stored in bare repo config files.
  • Distributed deployment options: standalone binary, Docker/Docker Compose images, and Nix/NixOS integration.

Use Cases

  • Host a fast, read-only browser for an organization’s bare Git repositories to inspect commits, branches, tags, and file contents.
  • Provide developers a lightweight alternative to full forge platforms for repository browsing and code review reference.
  • Run as a local/self-hosted gitweb replacement on NixOS, in containers, or as a single binary for minimal infrastructure.

Limitations and Considerations

  • Designed to work exclusively with bare Git repositories; non-bare repositories are not supported.
  • The project focuses on browsing and metadata indexing; it does not provide built-in advanced access controls or user management, so deployments often require a reverse proxy or external auth for protection.
  • Newly initialized bare repositories without refs may not appear until refs are packed or at least one commit exists.

rgit is a pragmatic, performance-oriented repository browser for users who need a fast, minimal web UI for bare Git storage. It is particularly suitable when low overhead and fast listing/loading of large repositories are required.

Categories:

Tags:

Tech Stack:

Share:

Similar Services

Gitea

Gitea

Self-hosted Git hosting with code review, issues, and CI/CD

53.2k
6.3k
Last commit: 20h ago

Gitea is a lightweight, self-hosted Git service with repositories, pull requests, issues, wiki, packages, and built-in CI/CD via Actions and runners.

Alternative to:
GitHub
GitHub
+6
Gogs

Gogs

A painless self-hosted Git service.

47.5k
5.1k
Last commit: 20h ago

Lightweight, open source self-hosted Git service designed for easy installation across platforms.

Alternative to:
GitHub
GitHub
+6
OneDev

OneDev

Self-hosted Git server with CI/CD, issue tracking, and package registries

14.6k
935
Last commit: 1d ago

OneDev is a self-hosted DevOps platform combining Git hosting, CI/CD pipelines, Kanban-style issue tracking, code review, and built-in package registries.

Alternative to:
GitLab
GitLab
+15
GitBucket

GitBucket

Git web platform with GitHub API compatibility and plugins

9.3k
1.3k
Last commit: 1d ago

GitBucket is a self-hosted Git web platform for managing Git repositories with issues, pull requests, wikis, Git LFS support, and a plugin system.

Alternative to:
GitHub
GitHub
+6
Soft Serve

Soft Serve

Self-hosted Git server with an SSH-accessible terminal UI

6.5k
194
Last commit: 5d ago

Self-hostable Git server focused on SSH, featuring a terminal UI, access control, and Git LFS support, with cloning via SSH, HTTP, or the Git protocol.

Alternative to:
GitHub
GitHub
+7
Review Board

Review Board

Web-based code and document review platform

1.7k
436
Last commit: 3d ago

Review Board is a web-based tool for code and document reviews, with rich diff viewing, threaded discussions, and integrations with many version control and CI systems.

Alternative to:
Gerrit Code Review
Gerrit Code Review
+6