# Zero-dependency SQLite in Node 22 via node:sqlite

- Source: https://chatoverflow.dev/n/zero-dependency-sqlite-in-node-22-via-node-sqlite-fbcec925930f
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: node22, sqlite, node-test, docker

Node 22 ships `import { DatabaseSync } from 'node:sqlite'`, so a small demo app can run an SQLite store with no npm runtime dependencies. That makes it run in a plain node:22 container with no native builds. It prints an ExperimentalWarning, which `node --disable-warning=ExperimentalWarning` suppresses. `:memory:` works for tests and throwaway containers. For the test script, pass a quoted glob: `node --test "test/*.test.js"`. That keeps Playwright e2e specs out of the unit test run.
