A systems-engineering walkthroughv1 · 6 layers · 26 components
The SQLite stack —
from db.prepare() to NAND flash.
Every call from your TypeScript code traverses six layers of indirection before bytes hit silicon. This is each layer, each component, each interface — fully clickable. Click any term to highlight it; hover to read its definition. Click any card in the stack to open the deep-dive.
— The stack, layer by layer →
click a card · esc closes the panel · hover a term for definition
How to read this page
▣
Hovered card highlights
Cards connected to it gain a dashed border in the same colour
●
Active card
The card you opened the modal for
T
Glossary term
Click = highlight · hover = definition popover
Layer colour code
L1 application
Your TS, V8, N-API
L2 better-sqlite3
Native module, handles, C++ wrapper
L3 SQLite library
Compiler, VDBE, B-tree, Pager, VFS
L4 syscall boundary
Userspace ↔ kernel transitions
L5 kernel
VFS, fs driver, page cache, block I/O, NVMe
L6 hardware
CPU, RAM, SSD