DurinDoor
Deployment

Compatibility

Supported Node version, database drivers, platforms and artifacts, with what CI actually exercises.

This page lists what DurinDoor supports and how each claim is backed. Tested means an automated job in this repository runs it. Health-checked means a job only confirms the server answers /api/health. Checked manually means a maintainer ran it once and no job repeats it. Untested means the code path exists but nothing exercises it, so treat it as unsupported until you verify it yourself.

Node.js

SurfaceVersionWhere it is enforced
App (package.json engines)>=24.22.2 <25, pnpm 12.18.0package.json, .nvmrc
CLI package (durindoor)>=24.22.2 <25cli/package.json
Docker imagenode:24.22.2-alpineDockerfile (NODE_IMAGE)
CI, nightly, release, artifact smoke24.22.2.github/workflows/*.yml

Node 24.22.2 is the migration target. Install, build, test, native prebuild availability and artifact validation are pending on this toolchain. Previous validation used Node 26.13.0 and does not establish Node 24 compatibility. No additional Node version is claimed as tested by this migration. The packages that DurinDoor depends on may list wider ranges (better-sqlite3 12.11.1 declares 20.x through 26.x), but that is their claim, not a result from this project's CI.

Compatibility matrix

Except for the explicitly pending native-driver row, the evidence and statuses below describe the pre-migration Node 26.13.0 configuration. They are historical coverage, not successful runs on Node 24.22.2.

ComponentWhat it isEvidenceStatus
better-sqlite3 (native SQLite)Preferred driver. App dependency ^12.11.1; CLI runtime copy remains npm-installedNode 24.22.2 native loading, ABI prebuild availability and driver selection have not been verified for this migrationPending Node 24 validation
node:sqliteSecond choice on Node 22.5 or laterThe fallback order is unit-tested in tests/unit/db-driver-chain.test.js. No job runs the server on itSelection logic tested, server untested
sql.jsPure-JS fallback, ships its .wasm beside the bundleUnit tests for persistence and for the shipped wasm asset. The artifact smokes do not force or assert which driver opens, so the server is not known to run on sql.jsComponent tested, server untested
PostgreSQLpg ^8.13, queried from a worker_threads worker (pgSyncWorker.cjs) with a synchronous facadepnpm run check:postgres-migrations checks that PostgreSQL migrations match SQLite's. Unit tests use mocks. No workflow starts a PostgreSQL serverMigration parity tested, live server untested. Compose ships postgres16, postgres17 and postgres18 profiles
Worker threadsPostgreSQL query worker onlyCovered by the PostgreSQL rowUntested against a live server
System tray (CLI)macOS and Linux: systray2 2.1.4, lazy-installed into DATA_DIR/runtime. Windows: PowerShell NotifyIcon, no binaryNo test starts a trayUntested
Standalone build.next/standalone/custom-server.jspnpm run verify:installed in release.yml and the manual artifact-smoke.yml: starts the server in an isolated DATA_DIR, checks health, login, settings and auth denialTested on Linux x64
npm tarballnpm pack of the CLInpm run verify:packed in the same two workflows installs the tarball with --ignore-scripts and runs the installed-artifact smokeTested on Linux x64. The postinstall runtime install is not exercised
Docker linux/amd64Alpine (musl) imagedocker-publish.yml builds on ubuntu-24.04 and requires /api/health before publishing. Health also passes on a sql.js fallback, so the database driver is not assertedHealth-checked
Docker linux/arm64Alpine (musl) imageSame job on ubuntu-24.04-armHealth-checked
Web-session browser (ChatGPT Web)Alpine Chromium under Xvfb, playwright 1.63.0. Build with --build-arg CHATGPT_WEB_BROWSER=false to leave it outThe image builds. No test drives a real browser sessionUntested
Bunpnpm run start:bun and a bun:sqlite branch in the driver chainNothing runs under BunUntested

Operating systems and architectures

These platform statuses are historical, before this migration. Node 24.22.2 validation is pending for every platform; prior prebuild or manual-load evidence must not be reused for the new runtime.

PlatformHow it runsStatus
Linux x64Source, npm, standaloneTested
Linux x64DockerHealth-checked
Linux arm64DockerHealth-checked
Linux arm64 without Dockernpm, sourceUntested. Node 24 native prebuild availability is unverified
macOS arm64npm, sourceChecked manually. Not in CI
macOS x64npm, sourceUntested
Windows x64npm, sourceUntested. The CLI contains Windows-specific code for the tray, process scanning and APPDATA
Windows arm64, Linux arm (32-bit)npm, sourceUntested

Known gaps

  • tests/unit/node-version-alignment.test.js keeps the Node table above honest for the app, test package, CLI, Dockerfile and workflows. It also checks that the better-sqlite3 and sql.js versions the CLI installs into DATA_DIR/runtime satisfy the app's ranges.
  • There is no required CI job that runs the standalone artifact on macOS or Windows, or the server on sql.js, node:sqlite or a live PostgreSQL server.
  • The CLI runtime pins exact versions rather than the app's ranges, because npm runs through a shell on Windows that mangles ^. They must be bumped together with package.json.

Move to a new Node, machine or platform

  1. Stop DurinDoor and any watchdog. Make a full data backup with the encryption keys and secrets. For PostgreSQL, take a verified dump.
  2. Install the Node version in the table above. For a source or npm install, reinstall dependencies on the new Node so native modules are rebuilt: reinstall the CLI package, or run pnpm install --frozen-lockfile in a checkout.
  3. Restore the data directory with the same JWT_SECRET, API_KEY_SECRET and master-key. SQLite database files are not tied to a CPU architecture, but this repository does not test cross-platform restores, so copy the files with the app stopped and verify afterwards.
  4. Start and read the startup log. A line naming the driver, for example [DB] Driver: pg | engine: postgres, shows what opened. A native-driver warning is not a failure if a later driver opens. No SQLite driver available means all of them failed.
  5. Verify as described in Upgrading: health, /v1/models, one authenticated request, and Settings → Database.

Recover from a failed move

  • Native driver does not load. Reinstall the CLI package, or rebuild in the checkout. sql.js can run a small installation in the meantime. See Troubleshooting.
  • PostgreSQL unreachable. Legacy dashboard-managed installs fall back to SQLite once per process and record databaseEngineError. Explicit PostgreSQL startup fails instead. See Boot fallback.
  • Bad migration or data. Stop every writer, restore the verified pre-move backup with its matching secrets, and start the previous version. Starting an old binary against a migrated database does not undo migrations. See Roll back a failed upgrade.
  • Coming from 9router. Use the migration script.

On this page

Edit on GitHub