Schema Forge

Database schema migrations and tooling for your stack.

npm install -g @xubylele/schema-forge

Install & Quickstart

Run without installing globally via npx, or install globally and use the same commands.

  1. Init Scaffold project or add to existing.
    npx schema-forge init
  2. Generate Generate migrations from your .sf schema.
    schema-forge generate
  3. Diff Compare schema versions and show SQL diff.
    schema-forge diff

How it works

schema-forge-core

Deterministic engine that parses the .sf DSL, diffs schema versions, and generates SQL. Framework-agnostic; powers the CLI and VSCode extension.

Core (npm)

schema-forge CLI

Terminal workflow: init, generate, diff, validate. Tracks state and outputs migrations; CI-friendly exit codes.

Install CLI

VSCode Extension

Editor support for .sf: diagnostics, hover docs, quick fixes, and Command Palette actions (Init, Generate, Diff, Preview SQL).

VSCode Extension