Skip to main content
Gitflare Hero

Welcome to Gitflare

Gitflare is a self-hosted GitHub alternative designed to run entirely on the Cloudflare Developer Platform. With no VMs or containers required, Gitflare leverages Cloudflare Workers and Durable Objects to provide a fully serverless Git hosting experience at the edge.
Gitflare is currently in early development. Expect bugs and missing features as we continue to build and improve the platform.

Key features

Gitflare brings modern Git hosting capabilities to the serverless edge:

Serverless architecture

No VMs or containers needed. Built entirely on Cloudflare Workers and Durable Objects for automatic scaling and zero maintenance.

Global edge network

Deployed on Cloudflare’s global network for low latency access from anywhere in the world.

Unlimited repositories

Create unlimited public and private repositories with full Git protocol support.

Issues & pull requests

Track bugs and feature requests with built-in issue management. Pull requests coming soon!

Web interface

Manage repositories, browse code, view commits, and handle issues through an intuitive web UI.

Open source

Completely open-source under the MIT License. Self-host on your own Cloudflare account.

How it works

Gitflare reimagines Git hosting with a fully serverless architecture:
┌─────────────────────────────────────────────────────────────────────┐
│                          Git Client (You)                           │
│                     git push / git pull / git clone                 │
└────────────────────────────────┬────────────────────────────────────┘
                                 │ HTTPS

┌─────────────────────────────────────────────────────────────────────┐
│                      Cloudflare Workers (Edge)                      │
│  ┌───────────────────────────────────────────────────────────────┐  │
│  │              TanStack Start Application                       │  │
│  │                                                               │  │
│  │  • Authentication & Authorization                             │  │
│  │  • Git Smart HTTP Protocol Handlers                           │  │
│  │  • Web UI                                                     │  │
│  └───────────────────────────────────────────────────────────────┘  │
└──────────────────┬────────────────────────────┬─────────────────────┘
                   │                            │
                   ▼                            ▼
┌──────────────────────────────────┐  ┌─────────────────────────────┐
│   Cloudflare Durable Objects     │  │       Cloudflare D1         │
│                                  │  │                             │
│  • Git objects storage           │  │  • User accounts            │
│  • Packfile operations           │  │  • Repository metadata      │
│  • Virtualized file system       │  │  • Issues & comments        │
│  (One per repository)            │  │                             │
└──────────────────────────────────┘  └─────────────────────────────┘
1

Git protocol handling

When you run standard Git commands, requests are handled by the TanStack Start application running on Cloudflare Workers. The application implements the Git Smart HTTP protocol (git-upload-pack for fetch/pull and git-receive-pack for push).
2

Repository data storage

Each repository gets its own isolated Durable Object instance with a virtualized file system built on Durable Object SQLite storage. All Git objects (blobs, trees, commits, tags) and references (branches, tags) are stored here.
3

Metadata & coordination

User accounts, repository metadata, issues, and access control information are stored in Cloudflare D1, providing fast queries and real-time updates for the web interface.

Tech stack

Gitflare is built with modern web technologies optimized for edge computing:

Get started

Ready to deploy your own Gitflare instance?

Quickstart

Set up your first Gitflare instance in minutes

Architecture

Learn how Gitflare works under the hood

Git operations

Push, pull, and clone repositories

Community and support

GitHub repository

Star us on GitHub and contribute to the project

Report issues

Found a bug? Let us know on GitHub Issues

Build docs developers (and LLMs) love