jeremytregunna

The database that is a log, and all operations are `fold(log)`.

12
0
100% credibility
Found Apr 28, 2026 at 12 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Zig
AI Summary

Foldb is a replicated SQL database ensuring consistent state across nodes via a pure log-derived fold function cached in an LSM tree.

How It Works

1
🔍 Discover Foldb

You learn about Foldb, a reliable spot to store and retrieve your precious data without worries.

2
📥 Get it ready

Download the simple files and prepare them on your computer in moments.

3
📁 Choose your save folder

Pick a safe folder where all your data will live and grow.

4
🚀 Launch your database

Hit one easy command and watch your personal data guardian come alive.

5
💻 Start chatting

Open the friendly helper window to build tables and add your first bits of info.

6
🔍 Ask and receive

Pose questions to your database and get speedy, spot-on answers every time.

Data dreams achieved

Your information is now safe, fast, and ready to share across computers if needed.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 12 to 12 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is foldb?

foldb is a replicated deterministic database written in Zig, where the log serves as the single source of truth and state derives purely from folding it into an LSM tree cache. It delivers strict serializable SQL transactions with one global sequence number, skipping wall clocks for clock-free consistency. Run it via `foldb serve --config config.json` for single-node stability or cluster with Raft peers, plus S3 snapshots, CDC streams, and a REPL client—all in this lean database github repo.

Why is it gaining traction?

Unlike clock-dependent databases prone to skew, foldb enforces total determinism across replicas, making replication reliable without complex tuning. Zig's safety and speed shine in its SQL engine supporting joins, windows, and JSON indexes, while database logging via CDC beats manual tailing database logs mysql or oracle setups. Devs dig the pure-function model for reproducible deploys and easy testing.

Who should use this?

Systems engineers building fault-tolerant apps needing embedded SQL with replication, like game backends tracking database log civ 7-style events. Prototype teams wanting strict isolation without Postgres overhead, or Zig fans prototyping database github pages with auth and S3 backups.

Verdict

Promising for single-node use today—excellent tests and docs—but multi-node Raft is WIP, and 12 stars signal 1.0% credibility. Experiment if you need deterministic SQL; hold for production until clustered stability lands.

(187 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.