cd /news/developer-tools/luadb-a-pure-lua-embeddable-sql-data… · home topics developer-tools article
[ARTICLE · art-114761] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=· neutral

LuaDB: A pure Lua embeddable SQL database for game save files, state tracking, and cloud sync

Developer Jncastilho has released LuaDB, a pure Lua embeddable SQL database designed for game save files, state tracking, and cloud sync. The zero-dependency system includes a B+Tree index engine, write-ahead logging, a PostgreSQL wire protocol gateway, JSONB operators, foreign keys, and master-master cluster replication.

read1 min views1 publishedAug 28, 2026

Wanted to share a project I've been building called LuaDB: a lightweight, zero-dependency embeddable database system written in pure Lua.

Why pure Lua? Cross-platform embedding without needing C bindings or compiling native SQLite shared libraries (great for LÖVE, Roblox, OpenResty, or embedded devices).

What it includes:

Full B+Tree index engine on 4KB slotted binary pages

Write-Ahead Logging (BEGIN, COMMIT, ROLLBACK) Native PostgreSQL wire protocol gateway (run luajit bin/luadb_server.lua and connect with psql)

Native JSONB operators (details->'address'->>'city') Foreign Keys with ON DELETE CASCADE and ALTER TABLE migrations

Master-master cluster replication with hinted handoff

Check out the GitHub repo: https://github.com/jncastilho/luadb Would love to hear your thoughts and feedback!

── more in #developer-tools 4 stories · sorted by recency
── more on @luadb 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/luadb-a-pure-lua-emb…] indexed:0 read:1min 2026-08-28 ·