{"slug": "luadb-a-pure-lua-embeddable-sql-database-for-game-save-files-state-tracking-and", "title": "LuaDB: A pure Lua embeddable SQL database for game save files, state tracking, and cloud sync", "summary": "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.", "body_md": "Wanted to share a project I've been building called LuaDB: a lightweight, zero-dependency embeddable database system written in pure Lua.\n\nWhy pure Lua? Cross-platform embedding without needing C bindings or compiling native SQLite shared libraries (great for LÖVE, Roblox, OpenResty, or embedded devices).\n\nWhat it includes:\n\nFull B+Tree index engine on 4KB slotted binary pages\n\nWrite-Ahead Logging (BEGIN, COMMIT, ROLLBACK)\n\nNative PostgreSQL wire protocol gateway (run luajit bin/luadb_server.lua and connect with psql)\n\nNative JSONB operators (details->'address'->>'city')\n\nForeign Keys with ON DELETE CASCADE and ALTER TABLE migrations\n\nMaster-master cluster replication with hinted handoff\n\nCheck out the GitHub repo: [https://github.com/jncastilho/luadb](https://github.com/jncastilho/luadb)\n\nWould love to hear your thoughts and feedback!", "url": "https://wpnews.pro/news/luadb-a-pure-lua-embeddable-sql-database-for-game-save-files-state-tracking-and", "canonical_source": "https://dev.to/cold_war/luadb-a-pure-lua-embeddable-sql-database-for-game-save-files-state-tracking-and-cloud-sync-l0p", "published_at": "2026-08-28 23:39:58+00:00", "updated_at": "2026-08-28 23:47:48.776465+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["LuaDB", "Jncastilho", "Lua", "PostgreSQL", "LÖVE", "Roblox", "OpenResty"], "alternates": {"html": "https://wpnews.pro/news/luadb-a-pure-lua-embeddable-sql-database-for-game-save-files-state-tracking-and", "markdown": "https://wpnews.pro/news/luadb-a-pure-lua-embeddable-sql-database-for-game-save-files-state-tracking-and.md", "text": "https://wpnews.pro/news/luadb-a-pure-lua-embeddable-sql-database-for-game-save-files-state-tracking-and.txt", "jsonld": "https://wpnews.pro/news/luadb-a-pure-lua-embeddable-sql-database-for-game-save-files-state-tracking-and.jsonld"}}