LassDB is a minimal, embeddable, and WebAssembly-compatible structured key-value database written in Rust.
β‘ Safe. π Fast. π WASM-ready. π§ Schema-aware. π Queryable.
- β
In-memory & file-backed key-value store (via
sled
) - β Stores structured Rust structs with schema evolution
- β
Supports versioned types (
UserV1
,UserV2
, ...) - β Built-in backward migration and runtime schema introspection
- β
WASM-compatible design (via
wasm-bindgen
) - β Command-line interface for local interaction
- β
Basic SQL-like Tiny Query Language (TQL) for
SELECT
queries - β
Error handling (via
anyhow
) and logging (viatracing
) - β Built for learning, edge computing, and low-footprint environments
# Clone the repo
git clone https://github.com/yourname/lassdb
cd lassdb
# Run CLI
cargo run --example cli
LassDB is WebAssembly-compatible and can be compiled for use in the browser or other WASM runtimes using wasm-bindgen
.
To compile LassDB for WebAssembly:
wasm-pack build --target web