Schema Forge
Database schema migrations and tooling for your stack.
npm install -g @xubylele/schema-forgeInstall & Quickstart
Run without installing globally via npx, or install globally and use the same commands.
- Init —Scaffold project or add to existing.
npx schema-forge init - Generate —Generate migrations from your .sf schema.
schema-forge generate - 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 CLIVSCode Extension
Editor support for .sf: diagnostics, hover docs, quick fixes, and Command Palette actions (Init, Generate, Diff, Preview SQL).
VSCode Extension