Skip to main content

Roadmap

DB-X lives in its own repository, rtorcato/db-x. Releases ship per package under the @db-x npm scope. The engine (@db-x/runtime, @db-x/cli) is BUSL-1.1; the libraries and snapshot drivers are MIT — see LICENSING.md.

Experimental

DB-X is 0.1.0-alpha.0. The schema and API are unstable, breaking changes land every release, and it is not ready for real data. Everything below the "Shipped" line is planned, not built.

Architecture

Shipped:

@db-x/runtime JSX runtime, defineComponent contract, reconciler, diff engine, state I/O
@db-x/cli the `db-x` binary
@db-x/postgres-library <DatabaseTarget>, <Postgres>, <Table>, <Column>, <Index>, <Extension>, <SeedData>, <DbUser>
@db-x/sqlite-library <Sqlite>, <Table>, <Column>, <Index>, <SeedData>
@db-x/mongodb-library <Mongo>, <Collection>, <Index>, <SeedData>
@db-x/snapshot-pg-dump pg_dump SnapshotDriver
@db-x/snapshot-mongodump mongodump SnapshotDriver
@db-x/snapshot-sqlite sqlite3 .backup SnapshotDriver

Planned, with the issue tracking each:

@db-x/mysql-library #12 @db-x/snapshot-cockroachdb #109
@db-x/sqlserver-library #29 @db-x/snapshot-sqlserver #32
@db-x/duckdb-library #30 @db-x/snapshot-duckdb #33
@db-x/mcp #9 @db-x/types-export #10

Sequence

Milestones are the single source of truth — see them on GitHub.

VersionThemeHeadline
v0.0Scaffold + rich diffWorkspace packages exist; <Table> diff handles type / default / NOT NULL changes and column renames via from=.
v0.1Time Machinedb-x snapshot create, db-x history, db-x diff <revA> <revB>. Snapshot id pinned to state revision. db-x restore has shipped; the rest is #6.
v0.2Shadow-DB previewdb-x preview --shadow spins an ephemeral copy, runs the DDL, returns a structured report (timings, locks, errors).
v0.3MCP serverdb-x mcp exposes describe / explain / preview / snapshot-history / restore-preview as tools. The marketing-ready milestone.
v0.4Type exportGenerate .d.ts from the live schema; add Drizzle schema emit as an optional second target.
v1.0Beyond PostgresManaged-DB drivers, multi-environment apply.
v1.1More SQL enginesMySQL, SQL Server, DuckDB — plus the beyond-relational exploration.

Live trackers

Competitive positioning and the gap-closing roadmap live in docs/competition.md; the sharding and large-scale design note lives in docs/large-scale.md.

Relationship to Infra-X

DB-X began as a fork of Infra-X and has since vendored the runtime — there is no @infra-x dependency in the tree today, and the two projects release independently.

What carried over is the model, not the code path: the same defineComponent contract, the same phase ordering, the same state shape. A component written against @db-x/runtime is not automatically loadable by Infra-X's CLI, and vice versa. The db-x binary is scoped to database resources and never exposes a general-purpose apply for arbitrary resource types.