Skip to main content

Ledge

git-compatible. git-free.

agent-native git server built in rust. real git smart-HTTP on the outside. on the inside: BLAKE3 content addressing, a lock-free adaptive radix tree for refs, sharded Raft on openraft, and TLA+ model checking of the ref store, garbage collection, sharding, and cross-shard commits. for systems that needed git infrastructure that was architecturally different, not just api-wrapped.

measuredledgegit
warm clone~2× faster
0.13 s0.31 s
pack size~5% smaller
1.50 MB1.58 MB

measured on ledge's own source repo (~2,500 objects, 1.5 MB pack) · 667 tests green · zero clippy warnings · a stock git client, no plugin

workspace sdk · TypeScript · agent-native

// fork an ephemeral workspace, leased for 120 s

const ws = await client.fork([], 120);

// agent works here, isolated and concurrent

await client.commit(ws.id, [{ workspaceRef, durableRef }]);

await client.release(ws.id);

// or just use git, it all works

$ git clone http://localhost:3000/ws/<id>

1.25M

distinct TLA+ states 5 modules · model-checked

4

SDKs Rust · TS · Python · Go

componentdetail
git smart-HTTPprotocol
pkt-line · upload-pack · receive-pack · any client
BLAKE3 object storestore
sha1 externally · BLAKE3 internally · atomic-rename writes
lock-free ARTrefs
adaptive radix tree · CAS · CRC32 WAL · O(1) snapshots
sharded Raftconsensus
openraft per shard · linearizable ref CAS · leader election
workspacesagent-api
CoW fork · WAL leases · mark-and-sweep GC · REST + git routing
TLA+ formal specverified
ref store · GC · sharding · cross-shard 2PC · distributed GC (Raft safety inherited from openraft)

clone it. push to it. fetch from it.

there is no git on the other side.

built in rust. from the wire protocol down.

what's not ready

source-available (BSL 1.1), not open source; converts to apache-2.0 in 2030. single-host tested; multi-host is experimental.

it's on github. clone it, read the dogfood scripts, reproduce the numbers.

github.com/v-code01/ledge

$ git clone https://github.com/v-code01/ledge

questions → vansh@vanshverma.com