API reference
Everything the four packages export, generated from their source and checked on every build. A name that is not listed here is not public, whatever the package contains. To learn how the pieces fit, start with Embedding the runtime, then come here for the detail; the engine’s entry point is TypeDBLiteInterpreter.
Modules
Section titled “Modules”| Module | Description |
|---|---|
| @typedblite/content-revision | Canonical state encoding and content-derived generation-digest revision identifiers (ADR-003 D3). |
| @typedblite/language | TypeQLite’s grammar, generated AST, synchronous validation and language services. Start with createTypeQLiteServices. |
| @typedblite/runtime | @typedblite/runtime on Node: everything the browser entry has, plus the node:sqlite binding and the SSE hub (ADR-009 D3). |
| @typedblite/runtime/wasm | The SQLite binding on the official WASM build, for a browser, a Web Worker, Electron or a Capacitor WebView (ADR-009). Call initWasmSqlite once, then pass openWasmSqlite as openDatabase. |
| session/src | - |
TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.