loxdb

Embedded database for microcontrollers. Three engines. One malloc. Zero dependencies. Deterministic durable storage core for MCU/embedded systems.

MIT licenseC99175+ testsMCU · Linux · Windows · macOS
Overview

Three storage models behind one API surface

loxdb is a compact embedded database written in C99 for firmware and small edge runtimes. It is intentionally narrower than SQLite: deterministic storage for constrained firmware, dataloggers, controllers and small edge runtimes where predictable memory and a small integration surface matter more than SQL features.

KV engine

Configuration, cache entries and TTL-backed state.

Time-series engine

Sensor samples and rolling telemetry.

Relational tables

Small indexed structured data with a fixed schema.

One allocation

A single malloc at lox_init() with fixed RAM budgeting.

Power-loss safe

Optional WAL-backed persistence and recovery.

Embedded-first HAL

RAM-only or storage-backed operation, zero external dependencies, ESP32 benchmarks included.

What loxdb is not

loxdb is not a tiny SQLite clone. SQLite is excellent, but targets a different operating point. loxdb is intentionally narrower — and says so.

Next in the family loxdb_pro — commercial production modules →