lgit
Version control where the storage is a neural network - commit trains it, checkout reconstructs from memory.
Working when we checked on .
What is lgit?
lgit is a version control experiment where a neural network acts as the storage backend: committing code or an image trains a small network to memorize it, and checkout reconstructs the data from the network's weights. It is aimed at developers and tinkerers curious about how lossy, neural storage differs from byte-perfect files. The browser-based demo supports pasting, dropping, or uploading code and images, and exposes controls like hidden size, layer count, and epochs. Smaller networks compress aggressively and hallucinate, so reconstructions range from perfect to amusingly corrupted. Everything runs in the browser with no install.
lgit pricing
Pricing model: Free
lgit pros
- Commits are training runs; checkouts are inference from network weights
- Runs entirely in the browser with no installation
- Accepts code text and images via paste, drop, or file upload
- Tunable network settings: hidden size 16–128, 1–4 layers, epochs
- Shows side-by-side original vs. neural reconstruction, including runnable JS
- Uses Fourier positional encoding, ReLU layers, and Adam optimizer
lgit cons
- Reconstructions are lossy; small networks hallucinate and corrupt data
- Not suitable for real source control since files are not stored exactly
- No pricing, support, or deployment options documented — it is an experimental demo
- Requires JavaScript in the browser to function
Frequently asked questions about lgit
What is lgit?
lgit is a version control demo where storage is a neural network. Committing code or an image trains a small network to memorize it; checkout reconstructs the data from the network's weights, sometimes perfectly and sometimes with corruption.
How does lgit work?
Instead of storing files as bytes, lgit trains a neural network to map positional encodings to your data — byte by byte for code, pixel by pixel for images. The network uses Fourier positional encoding, ReLU hidden layers, and an Adam optimizer. Checkout is inference.
Who is lgit for?
It is for developers and experimenters curious about neural storage and how lossy, AI-era version control behaves differently from traditional file systems. The failures themselves are part of the entertainment.
What kinds of input does the demo accept?
You can paste, drop, or upload code text or an image. Sample inputs include a JavaScript FizzBuzz snippet and images like a gradient, smiley, and Mondrian-style picture.
Can I control the neural network's settings?
Yes. The demo exposes a hidden layer size from 16 to 128, one to four layers, and an epoch count, letting you trade accuracy against aggressive compression.
What happens with a small network?
A small network, such as --hidden 16, compresses aggressively and hallucinates, producing reconstructions with noticeable neural corruption. A larger network memorizes data perfectly but defeats the point of the experiment.
Does lgit run locally or in the cloud?
It runs entirely in your browser. Training and inference both happen client-side, so no install or server is needed.
How does text differ from images in reconstruction?
For text, the network outputs a probability distribution over 256 possible byte values. For images, it predicts RGB values directly for each pixel.
Why would corruption be interesting?
You can run the JavaScript code before and after a commit to see how neural corruption breaks a program in ways that differ completely from traditional file corruption.
Where can I find the code and more details?
The source code is on GitHub at github.com/nicobrenner/lossy-git, and a full writeup with the story, math, and benchmarks is linked from the demo page.