xt.db
Database text, system, node, and runtime layers.
xt.db is a portable database stack: text builders generate SQL and PGREST shapes, system layers run against memory/postgres/sqlite/supabase, and node layers expose clients, kernels, and proxies.
1 Motivation
Applications need a single schema and query model across local memory, SQL databases, Supabase, web workers, and generated clients. xt.db splits that problem into text generation, runtime systems, and node-facing adapters.
2 How to read the layers
Start with xt.db.text for schema/query builders, then xt.db.system for backend implementations, then xt.db.node for client/kernel/proxy integration. POC tests under test-lang/xt/db/poc show how those layers combine.
3 Pages
Database documentation
xt.db.text
Schema, graph, tree, SQL, and PGREST builders.
xt.db.system
Memory, postgres, sqlite, supabase, realtime, and websocket systems.
xt.db.node
Client, kernel, proxy, and runtime layers.
xt.db walkthrough
Binding framework and substrate walkthrough material.