Driver capabilities
On this page 11
Stacks lets you swap the driver behind most subsystems - the database, the queue, the cache, storage, mail, realtime and deploy. This page says which of those are actually supported, how far, and what evidence backs the claim.
It is not a marketing table. capabilityRegistry in @stacksjs/config is the allowlist:
configuring a driver that is not in it fails config validation with the known names, and
configuring one marked unsupported fails with the reason. So a driver missing from this page
is a driver you cannot select.
- supported - Contract evidence runs in CI.
- partial - Works, with the gaps named below.
- experimental - Usable, but without retained evidence.
- unsupported - Cannot be selected; configuring it fails loudly.
How current is this? This table is generated from
capabilityRegistryin@stacksjs/config, anddocs:capabilities:checkfails CI when the two disagree - so it is verified at every commit, not as of some date.The claims themselves are checked by
capabilities.test.ts: every cited file must exist, anything short ofsupportedmust give a reason, and asupporteddriver on a remote topology must name the provider version it was proven against.
Database
| Driver | Status | Topology | Live service | Evidence |
|---|---|---|---|---|
sqlite | supported | embedded | - | integration.test.tssqlite-tx-serialization.test.ts |
mysql | supported | client-server | mysql 26.7.0 | integration.test.tsaffected-rows.test.tsensure-database-sessions.test.tssession-refresh-mysql.test.ts |
singlestore | experimental | client-server | - | none retained |
vitess | experimental | mysql-behind-vtgate | - | vitess-constraints.test.ts |
postgres | supported | client-server | postgres 17.11 | postgres-pivot-timestamptz.test.tspostgres-transaction-scope.test.tsaffected-rows.test.tsensure-database-sessions.test.ts |
turso | experimental | managed-service | - | turso.test.ts |
dynamodb | unsupported | managed-service | - | none retained |
Limitations
mysql- The migration files shipped under database/migrations are emitted for a single dialect (SQLite in the default template) and do not replay on MySQL. Regenerate them against MySQL (buddy generate:migrations) before migrating.singlestore- MySQL wire compatibility exists, but a dedicated conformance matrix is not published.vitess- No live cluster in CI; the retained evidence covers unsharded and sharded DDL profiles plus VSchema generation, not a round trip through vtgate.vitess- Set DB_VITESS_SHARDED=true for a sharded keyspace; those keyspaces reject cross-shard foreign keys and AUTO_INCREMENT, so use application-generated IDs and a VSchema.vitess- Schema changes on sharded keyspaces should go through Vitess online DDL.vitess- A transaction spanning shards is best-effort or two-phase, not the single-node ACID the ORM assumes.postgres- The migration files shipped under database/migrations are emitted for a single dialect (SQLite in the default template) and do not replay on PostgreSQL. Regenerate them against PostgreSQL (buddy generate:migrations) before migrating.turso- Proven against a local sqld 0.24.32 (turso CLI 1.0.33turso dev), not a hosted Turso database, and no libSQL service runs in CI yet, so the retained evidence skips its live half there.turso- SQLite SQL over Hrana HTTP: each statement outside a transaction is one request, and a transaction holds one server stream for its duration.turso- sqld refuses VACUUM, ATTACH, temporary tables and every PRAGMA except the read-only ones and foreign_keys.turso- Embedded replicas are not supported; the connection is always remote.turso- Model writes inside transaction() have not been measured on libSQL: on SQLite, PostgreSQL and MySQL they are part of the transaction (stacksjs/stacks#3269), but here write through the tx handle until a live sqld test shows the same.turso- Scheduler onOneServer() locks stay per-host, as they are on SQLite.turso-buddy db:backupdoes not dump a Turso database; rely on Turso's own point-in-time restore.dynamodb- DynamoDB helpers are not an ORM SQL driver and cannot be selected as database.default.
Queue
| Driver | Status | Topology | Live service | Evidence |
|---|---|---|---|---|
sync | supported | inline | - | jobs.test.ts |
database | supported | worker-and-embedded-sqlite | - | integration.test.tsfailure-path-correctness.test.ts |
redis | supported | worker-and-redis | redis 8.8.0 | redis-contract.test.ts |
sqs | unsupported | managed-service | - | none retained |
memory | unsupported | in-process | - | none retained |
beanstalkd | unsupported | client-server | - | none retained |
Limitations
sync- Not durable.database- Other SQL providers require their own provider evidence.redis- The retained contract covers queue persistence operations; horizontal scaling and distributed-lock extensions require separate evidence.sqs- Configuration shape is reserved; dispatch fails loudly.memory- Reserved driver name; dispatch fails loudly.beanstalkd- Reserved driver name; dispatch fails loudly.
Cache
| Driver | Status | Topology | Live service | Evidence |
|---|---|---|---|---|
memory | supported | in-process | - | Memory.test.tsttl.test.ts |
sqlite | supported | embedded | - | sqlite-cache.test.tssqlite-concurrent-open.test.tstag-index-processes.test.ts |
redis | supported | client-server | redis 8.8.0 | redis-contract.test.tsredis-config-connection.test.tsredis-namespaces.test.ts |
singlestore | experimental | client-server | - | none retained |
Limitations
memory- Not shared across processes.sqlite- Values must be JSON-serializable. Retain the SQLite file across deploys. Stampede protection is process-local; this is not a distributed cache.redis- The retained contract covers core cache and TTL operations, a connection built from host and port, and namespace isolation from the queue and realtime; TLS/authenticated deployments require separate provider evidence.singlestore- No dedicated CI service matrix.
Storage
| Driver | Status | Topology | Live service | Evidence |
|---|---|---|---|---|
local | supported | local-filesystem | - | localStorage.test.tsdeep-integration.test.ts |
memory | supported | in-process | - | memoryAdapter.test.ts |
s3 | partial | managed-object-storage | - | s3-presigned-post.test.tss3-roundtrip.test.ts |
bun | partial | local-filesystem | - | bunAdapter.test.ts |
azure | partial | managed-object-storage | - | azure-adapter.test.tsazure-signing.test.ts |
Limitations
memory- Not persistent.s3- CI covers SigV4 signing and an in-process HTTP wire round trip, not a hosted cloud bucket.bun- Adapter-specific feature parity is not fully reported.azure- CI covers Shared Key and service-SAS signing plus request construction, not a live container round trip.azure- Visibility is a container property on Azure, so changeVisibility() refuses rather than silently doing nothing; a per-object grant is signedUrl().azure- ensureConfiguredBuckets provisions S3 buckets only, so the container must exist before the disk is used.
| Driver | Status | Topology | Live service | Evidence |
|---|---|---|---|---|
log | supported | local-file | - | email.test.ts |
capture | supported | in-process | - | email.test.ts |
smtp | partial | smtp-server | - | driver-credentials.test.tssmtp-live-roundtrip.test.ts |
ses | partial | managed-service | - | driver-credentials.test.ts |
sendgrid | partial | managed-service | - | driver-credentials.test.ts |
mailgun | partial | managed-service | - | driver-credentials.test.ts |
mailtrap | partial | managed-service | - | driver-credentials.test.ts |
commshq | partial | managed-service | - | commshq-driver.test.ts |
stacks-mail | experimental | managed-service | - | none retained |
Limitations
log- Development/testing transport only.capture- Testing transport only.smtp- CI covers a real loopback TCP RFC-5321 round trip (EHLO, AUTH, DATA, 550 bounce), not a remote mail relay.ses- CI validates configuration and request behavior without a live delivery assertion.sendgrid- CI validates configuration and request behavior without a live delivery assertion.mailgun- CI validates configuration and request behavior without a live delivery assertion.mailtrap- CI validates configuration and request behavior without a live delivery assertion.commshq- CI validates the request against a stand-in for CommsHQ without a live delivery assertion.commshq- Attachments are refused: use the smtp driver for a message that carries one.stacks-mail- CI does not yet run a live Stacks Mail delivery assertion.
Realtime
| Driver | Status | Topology | Live service | Evidence |
|---|---|---|---|---|
websocket | supported | single-process-websocket | - | ws-auth.test.tswebsocket-options.test.ts |
redis-invalidations | experimental | worker-and-redis | - | invalidation-bus.test.tsstream-invalidations.test.tsredis-invalidations.test.tsredis-invalidation-process.test.ts |
sqlite-replay | supported | worker-and-embedded-sqlite | - | durable-replay-sql.test.tsdurable-replay-process.test.tsdurable-replay-http.test.ts |
postgres-replay | supported | client-server | postgres 17.11 | durable-replay-sql.test.tsdurable-replay-process.test.tsdurable-replay-http.test.ts |
Limitations
websocket- Scale-out requires an application-provided fan-out layer.redis-invalidations- Metadata-only at-most-once hints; no transcript forwarding, durable delivery or automatic WebSocket cluster fan-out.redis-invalidations- Bun documents the native Pub/Sub interface as experimental; unsupported runtimes fail only on explicit factory use.redis-invalidations- Live tests own isolated loopback Redis and skip without STACKS_TEST_REDIS_BINARY or redis-server on PATH; this record does not claim a CI service contract.redis-invalidations- Reconnect issues resync hints, but producer-only outages can lose hints; applications still need authoritative snapshots/replay or periodic refresh.redis-invalidations- TLS, ACL and managed cluster configurations require separate qualification.sqlite-replay- Selected explicitly with createSqlDurableReplayStore; this is finite history, not a live transport driver.sqlite-replay- Idempotency expires with retained events; permanent domain deduplication remains application-owned.sqlite-replay- Applications bound channel cardinality and prune inactive channels.sqlite-replay- Nested savepoints cannot publish a committed cursor before the outer transaction commits.postgres-replay- Selected explicitly with createSqlDurableReplayStore; this is finite history, not a live transport driver.postgres-replay- Idempotency expires with retained events; permanent domain deduplication remains application-owned.postgres-replay- Applications bound channel cardinality and prune inactive channels.postgres-replay- Nested savepoints cannot publish a committed cursor before the outer transaction commits.
Deploy
| Driver | Status | Topology | Live service | Evidence |
|---|---|---|---|---|
ts-cloud-hetzner | experimental | hetzner-vm-systemd-rpx | - | deploy-ssh-target.test.ts |
ts-cloud-ssh | experimental | ssh-box-systemd-rpx | - | deploy-ssh-target.test.ts |
Limitations
ts-cloud-hetzner- Live provider evidence and rollback conformance are not yet retained in the protocol report.ts-cloud-ssh- DNS, TLS issuance, CDN and mail reconciliation are skipped for a host on a private address.ts-cloud-ssh- One app host per project; multi-host ssh fleets are not supported.ts-cloud-ssh- No live hardware evidence is retained in CI.
Reading it
Status is a judgement about evidence, not about code quality. supported means a contract
test runs in CI. partial means it works and something is not covered - the limitation says
what. experimental means it is usable but nothing is retained to prove it stays that way.
Evidence names the test files behind the status. They are checked to exist: a driver called
supported on the strength of a test that has been deleted is the failure this guards against
(capabilities.test.ts).
Live service is filled in when CI runs against a real instance of the service rather than a mock, and names the version it ran against.
A missing round trip against a real provider is the most common reason for partial. It usually
means request construction and signing are covered but nobody has pointed CI at a live account -
often because that needs credentials somebody has to own.
Using it from code
import { assertCapabilityAvailable, capabilityDrivers, findCapability } from '@stacksjs/config'
// Throws for an unknown or unsupported driver, naming the alternatives.
assertCapabilityAvailable('queue', 'redis')
// Everything selectable in a category.
capabilityDrivers('storage').map(driver => driver.name)
// The whole record, including limitations and evidence.
findCapability('storage', 'azure')
The table above is generated from that registry by buddy docs:capabilities, and CI fails when
the two disagree. Change the registry, not this page.
Desktop: interactive content
The desktop target is not a driver, so it is not in the registry above. What it can offer frame-driven content - a game, a visualisation, anything an engine somebody else wrote renders - is recorded the same way, as data rather than prose.
Whether a Craft window can host a game or other frame-driven content that somebody else
builds, measured by the probe harness in @stacksjs/desktop-build
(stacksjs/stacks#877). Ordinary browsers
on the same machine are measured alongside it for comparison.
How current is this? Unlike the driver tables above, these are measurements, not claims CI can re-check. Each column is one run on one machine, and says when, against which host version, on which OS and hardware. If your Craft is newer than the column, the numbers describe something you are not running: re-measure with
buddy desktop:probe --record.
| Probe | Craft 0.0.107 | Safari 27.0 |
|---|---|---|
| WebGL2 | available | available |
| WebGPU | available | available |
| Frame pacing | measured - 60 Hz rAF on a 120 Hz display, p99 18 ms under load | measured - 60 Hz rAF on a 120 Hz display, p99 19.42 ms under load |
| Input latency | measured - pointerdown p50 2.5 ms to next frame | requires-interaction |
| Audio latency | measured - base 2.7 ms, output 15.8 ms | requires-interaction |
| Gamepad API | available | available |
| Fullscreen | available | requires-interaction |
| Pointer lock | denied | requires-interaction |
| Measured on | macOS 27.0 arm64, Apple M3 Pro (Mac15,6) | macOS 27.0 arm64, Apple M3 Pro (Mac15,6) |
| Measured at | 2026-10-03 | 2026-10-02 |
- available / measured - the API exists and the probe exercised it.
- unavailable - the API is missing, or creating it failed.
- requires-interaction - needs a real click, key press or controller that the run did not have. What was still observable is in the notes; no number is invented.
- denied - requested from a real click and refused.
Craft 0.0.107 - macOS 27.0 arm64, Apple M3 Pro (Mac15,6), 120 Hz display
- WebGL2 - WebGL2 context created (WebGL 2.0); renderer "Apple GPU", max texture 16384, MSAA up to 4x.
- WebGPU - Adapter (apple) and device created; maxTextureDimension2D 16384.
- Frame pacing - requestAnimationFrame ran at 60 Hz on a 120 Hz display, so a game cannot reach the panel's rate. Under load (480,000 triangles + 6 ms CPU per frame): p50 17 ms, p95 18 ms, p99 18 ms; 0 frames dropped at 60 Hz and 359 at the display's 120 Hz over 6 s. The page clock is clamped to 1 ms, so intervals read as whole milliseconds.
- Input latency - Event timestamp to the next rAF callback: pointerdown p50 2.5 ms to next frame (2 samples); pointermove p50 2 ms to next frame (16 samples); keydown p50 4 ms to next frame (5 samples). Real input from the OS; no synthetic events.
- Audio latency - The context started without a user gesture. baseLatency 2.7 ms, outputLatency 15.8 ms at 48000 Hz.
- Gamepad API - navigator.getGamepads() is present; no controller was connected, so axis and button input was not exercised.
- Fullscreen - requestFullscreen() from a real click entered fullscreen. Without a gesture: rejected (TypeError: Cannot request fullscreen without transient activation.). Craft's own window.craft.window.setFullscreen(true), which needs no gesture: entered (viewport grew to the screen).
- Pointer lock - requestPointerLock() from a real click: rejected (pointerlockerror). Without a gesture: rejected (NotAllowedError: Pointer lock requires a user gesture.).
Safari 27.0 - macOS 27.0 arm64, Apple M3 Pro (Mac15,6), 120 Hz display
- WebGL2 - WebGL2 context created (WebGL 2.0); renderer "Apple GPU", max texture 16384, MSAA up to 4x.
- WebGPU - Adapter (apple) and device created; maxTextureDimension2D 16384.
- Frame pacing - requestAnimationFrame ran at 60 Hz on a 120 Hz display, so a game cannot reach the panel's rate. Under load (480,000 triangles + 6 ms CPU per frame): p50 17 ms, p95 18 ms, p99 19.42 ms; 0 frames dropped at 60 Hz and 361 at the display's 120 Hz over 6 s. The page clock is clamped to 1 ms, so intervals read as whole milliseconds.
- Input latency - No trusted input reached the page in the 20 s window, and synthetic events are not counted. Observable: event.timeStamp is on the performance.now() clock, timer resolution 1 ms, Event Timing API supported.
- Audio latency - The context stayed suspended without a user gesture, so device latency was not observable. Reported before running: baseLatency 2.7 ms, outputLatency 0 ms at 48000 Hz.
- Gamepad API - navigator.getGamepads() is present; no controller was connected, so axis and button input was not exercised.
- Fullscreen - The API exists (fullscreenEnabled true) but needs a real click to test. Without a gesture: rejected (TypeError: Cannot request fullscreen without transient activation.).
- Pointer lock - The API exists but needs a real click to test. Without a gesture: rejected (NotAllowedError: Pointer lock requires a user gesture.).
Out of scope. Stacks is not shipping a game engine, a physics engine, an audio mixer or an asset pipeline. This section establishes what a Craft window gives an engine somebody else wrote; it is not a plan to write one.
How the Craft 0.0.107 column got its interactive rows: the clicks, pointer moves and key
presses were OS-level events (CGEvent, posted at the HID event tap) from a small helper aimed
at the probe panel, not typed by a person. The page counts only isTrusted events, and these
are; nothing was dispatched into the DOM. Pointer lock was refused from a genuine click in both
orders tried, before and after the fullscreen probe, so denied is the Craft window's answer
and not a missing gesture.
Related
- Desktop support matrix - the same treatment for platform targets
- stacksjs/stacks#877 - why the desktop target is measured for interactive content, and what is out of scope
stacks-database,stacks-queue,stacks-cache,stacks-storage,stacks-emailfor how to configure each