• TypeScript99%
  • JavaScript0.4%
  • CSS0.1%
  • Other0.0%
README.md

gitfor

gitfor

Git hosting, code review and CI that runs entirely on Cloudflare.
Use it at gitfor.dev, or deploy your own instance.

Website · Self-host · Develop · Docs


Repositories live in Cloudflare Artifacts. Everything else runs on Workers, D1, KV, R2, Queues, Workflows, Durable Objects and Containers. There are no servers to manage.

Features

  • Repositories: create, import from any HTTPS remote, fork and archive, with public or private visibility. Browse trees, history, diffs, branches and tags, and edit files in the browser.
  • Pull requests: cross-fork PRs, inline review threads, approvals, drafts, merge queues, and merge, squash or rebase.
  • Branch protection: required reviews, status checks and code owner approval.
  • Issues: labels, assignees, closing keywords (fixes #12) and full-text search.
  • Actions: GitHub Actions–style workflows with matrices, needs, secrets, artifacts and live logs, on Cloudflare Containers or your own runners.
  • And more: releases, webhooks, notifications, organizations, Sites hosting and an in-browser editor.

Quick start

Clone over HTTPS with your username and a personal access token from Settings → Access tokens:

git clone https://gitfor.dev/alice/project.git

Add a workflow at .gitfor/workflows/ci.yml:

on: [push, pull_request]
jobs:
  test:
    runs-on: cloudflare
    steps:
      - uses: actions/checkout@v4
      - run: bun install && bun test

Run your own

bun install
bun run deploy

You need a Workers Paid account with Artifacts enabled. Resources, secrets and the first admin are covered step by step in the self-hosting guide.

Documentation

Guide What it covers
Self-hosting Resources, configuration, deploying, scaling
Development Local setup, scripts, architecture
Workflows Triggers, steps, third-party actions, runners
Billing Optional Stripe plans and add-ons
Metering Usage limits and quotas
Notifications Email and in-app notifications
Integrations Third-party integrations
Analytics Optional PostHog analytics
Abuse handling Reports, takedowns, operator tools
Sites Static and dynamic site hosting
Editor In-browser code editor
Stacked pull requests Working with dependent PRs
Video Encoding and serving marketing video

See the roadmap for what's next.

License

0BSD