I built LuaDB – an embeddable relational database written 100% from scratch in pure Lua (no C extensions or external dependencies).
Key features:
Slotted 4KB binary pages with B+Tree primary/secondary indexing
ACID transactions via Write-Ahead Logging (WAL)
Built-in PostgreSQL Wire Protocol server (connect via psql or DBeaver)
Pluggable VFS storage (Local disk, RAM, and Amazon S3 with AWS SigV4)
Native JSON/JSONB extractions (-> / ->>), Foreign Keys with ON DELETE CASCADE, and WITH CTEs.
Runs anywhere Lua runs (Lua 5.1+, 5.4, 5.5, LuaJIT). Feedback and technical questions welcome!
https://github.com/jncastilho/luadb
Top comments (0)