spindle
GitHub

MIT licensed · self-hosted · one binary

A complete git host in Go — where the object store is the only database.

Git over smart HTTP and SSH, LFS, bundles, issues, pull requests, CI, an OCI registry, static sites, a JSON API and a UI. One binary in front of one bucket: no SQL, no Redis, no queue, no search cluster.

  • Go 1.27
  • Linux/amd64 image
  • OIDC required
  • single binary
repos/you/demo/ bucket
manifest.pb          ← commit point (CAS)log/0000000000000042.pbwal/9f2c…a1.pack  + .idxcheckpoints/000…42/refs.pbpolicy.jsonlfs/objects/ab/cd/<sha256>insights/pulse.json
Every object the repository owns, in one bucket. manifest.pb is the only commit point for a push; a push is never acknowledged before the bucket has it.

Demo

See it run.

A short animated tour of a spindle instance. No sound.

Built from captures of a local spindle instance. The on-screen push budget (≤ 5 HTTP round trips) and the strip above (store operations) count different things. Autoplay stops under prefers-reduced-motion; the poster is the fallback.

A silent 11.5-second tour of a spindle instance: landing page, repository, code file, issue, pull request diff, a Threads CI run, packages and a release.

Demo contents
  1. The landing page and its push diagram.
  2. A repository: branch, latest commit and file tree.
  3. A Go file with server-rendered highlighting.
  4. An issue with its comment thread and labels.
  5. A pull request with a passing check and its diff.
  6. A Threads container run, from steps to the job log.
  7. The packages page for one OCI tag.
  8. A release page.

Tour

The product, not a mockup.

Every capture below is a running spindle instance. The interface is server-rendered Go: the same pages your browser gets are the ones the server writes.

01 / REPOSITORY

The repository page

Clone URLs for HTTP and SSH, the default branch, the latest commit and the file tree. With anonymous_read on — the default — public repositories clone and browse without a session.

  • smart HTTP v0/v2 · SSH
  • auto-create on first push
  • source archives: tar.gz, zip
The spindle repository page for acme/spindle: the header, branch selector, latest commit, file tree and About sidebar.
Repository · header, clone control, commit and tree

02 / CODE

The code view

Files are rendered server-side in Go. Escaping text, sanitizing raw HTML through an allowlist and highlighting syntax are the XSS boundary — there is no client sanitizer to bypass.

  • rendered by the server
  • markdown, diffs and graphs, escaping included
  • no client data layer
The spindle code view: a source file with server-rendered syntax highlighting, line numbers and the file header.
Code · server-rendered highlighting, line numbers

03 / ISSUES

An issue

An immutable event log plus a CAS'd header: comments, labels, milestones, assignees, close and reopen. Issues and pull requests share one numbering space, so an issue and a PR never take the same number.

  • shared issue/PR numbering
  • templates, labels, milestones
  • same bucket family as git
An issue in spindle: the title header, comment thread, labels and sidebar metadata.
Issue · conversation, labels, metadata

04 / PULL REQUESTS

A pull request diff

The PR head is an ordinary ref: refs/pull/N/head. Mergeability is computed on demand; merging is a task with merge, squash or rebase. Reviews carry verdicts and line-anchored threads, and required checks gate the merge.

  • merge · squash · rebase
  • line-anchored review threads
  • required checks gate the merge
A spindle pull request: the description, a passing Threads check, and the changed files with added and removed lines.
Pull request · description, checks and diff

05 / PHONE

The same pages at 390 px

One server-rendered layout, no separate mobile client and no client-side router. The chrome folds: the tab strip scrolls inside itself, the file table scrolls inside its wrapper, the page never pans sideways.

  • one layout for every viewport
  • no separate mobile client
The spindle repository page at phone width: the repository header, branch row and file list stacked in one column.
Repository · 390 px

Also shipped

CI, a registry and a second listener.

One binary also runs Threads jobs in containers, keeps an OCI registry per repository, and publishes a repository's committed tree as a static site on its own cookie-less hostname.

A Threads run in spindle: a successful container job from a golang image, with its step list and a passing go test log.
Threads · a real container run, streamed log
The Packages page of one repository: a docker pull command, one OCI tag v0.3.0, and its manifest versions.
Registry · one repository, one OCI tag
A static site served by spindle's second listener: a documentation page titled One loop, no sidecars at /acme/spindle/.
Static site · committed bytes, cookie-less listener

The design, in three clips

The object store is the repository.

Refs, packs, config, policy, issues, PRs and CI runs are objects in one bucket. Disk and memory are caches; the manifest CAS is the only commit point for a push. Wipe every instance and the repositories are still there.

Still: the bucket holding refs, packs, config and policy, with an instance connecting to it.
One bucket. The repository is the store. An instance is a reader and writer in front of it, not the owner of the data.
Still: a laptop pushing a pack of git objects toward a bucket, before the acknowledgement.
A push is acknowledged by the bucket. The write lands and the CAS commits before the client hears success.
Still: an issue, a linked pull request and a passing check beside the git lane.
Collaboration rides beside git. Issues, reviews and checks are object families of their own; the write-ahead log stays git-only.

Why spindle

Six properties that follow from one decision.

The bucket is the only database. Everything else — disposable instances, one binary, a complete surface — is a consequence.

01

The object store is the only database

Refs, packs, config, policy, issues, pull requests, reviews, checks, releases, CI runs and notifications are object families under one prefix, read through a single ObjectStore contract.

02

Disposable by construction

Kill an instance, wipe a cache, run a second reader: the bucket is unchanged and a fresh process serves the same repositories immediately. Disk and memory are warmth, not truth.

03

One binary, every role

serve, maintain, events and runner serve are the same binary. Nothing else to install, schedule or keep in sync — the maintainer runs checkpoints, bundles, compaction and repair.

04

A complete surface

Git over smart HTTP and SSH, LFS and bundle-uri; issues, PRs, reviews and checks; Threads CI; an OCI registry per repository; static sites; a JSON API, SSE and a dependency-free SDK.

05

OIDC and nothing else

Any OpenID Connect issuer; verified groups decide who administers the instance. No local accounts, no passwords, no email or domain admin rule, no static-token admin. A config that cannot satisfy it boots restricted, never open.

06

It speaks walgit's bucket

Key layout, protobuf field numbers and wire encoding, JSON shapes and git wire behaviour follow walgit. Golden fixtures in testdata/ fail the build if either side drifts — compatibility is a test, not an intention.

Measured on the real code path, with harnesses committed: docs/EVIDENCE.md

Deploy

One container, one bucket, no database.

The prebuilt image runs spindle serve by default. The first boot is restricted until OIDC is configured: there is no setup token and no open mode.

  1. Register the OIDC client

    Any issuer works. The redirect URI is <public_url>/_auth/callback; membership of an admin group is what makes an administrator.

  2. Start it

    Pull the image and give it one volume at /var/lib/spindle. Publish 2222 for git over SSH. TLS terminates at your proxy, not in spindle.

  3. Configure at /admin

    Save writes <data-dir>/spindle.toml without dialling the identity provider, then you restart. Push a repository, browse it, open an issue.

Back up the store, not the machine: store.root (or the bucket under store.prefix), spindle.toml and the SSH host key. spindle doctor reads the config and a bounded bucket sample before an upgrade. Full procedure: docs/BACKUP.md · docs/UPGRADE.md.

docker-compose.ymlghcr.io
services:
  spindle:
    image: ghcr.io/crueber/spindle:latest   # :main · vX.Y.Z · sha-<sha>
    ports: ["8080:8080", "2222:2222"]       # HTTP · SSH
    environment:
      SPINDLE__SERVER__SSH__LISTEN: 0.0.0.0:2222
    volumes: [spindle-data:/var/lib/spindle]
    restart: unless-stopped

volumes:
  spindle-data: {}
shellprebuilt
docker pull ghcr.io/crueber/spindle:latest
docker compose up -d
# then open http://localhost:8080/admin

CLI

One CLI for the whole surface.

The server binary is also the client: the API command groups speak the JSON API, spindle api reaches any endpoint directly, and spindle auth keeps the token.

spindle · real commandsclient
spindle auth login --server https://spindle.example.com \
  --token-file ~/token
spindle repo create you/demo
spindle issue list you/demo --state open
spindle pr merge you/demo 17 --method squash --delete-head --wait
spindle threads run you/demo ci --ref main
spindle config check
spindle doctor --json
  • git and repositoriesspindle repo, spindle import and spindle wal cover creation, import and the write-ahead log.
  • collaborationspindle issue, spindle pr, spindle release, spindle checks and spindle org.
  • CI and registryspindle threads runs and watches workflows; spindle packages reads the OCI surface.
  • operationsspindle config dump|check shows the effective config and validates file plus environment overrides; spindle doctor is the read-only upgrade check.
  • anything elsespindle api /api/v1/me --json — the same JSON API the UI uses. Reference: docs/CLI.md.