@schemat/core
v0.2.1
Published
Canonical IR, parser interface, and differ for Schemat.
Maintainers
Readme
@schemat/core
Core of Schemat: the canonical schema
IR (intermediate representation), the SchemaParser interface that parsers
implement, and the structural differ.
This package has zero parser dependencies — it defines the shared contract that
@schemat/parser-prisma, @schemat/parser-sql, and @schemat/render build on.
Install
npm i @schemat/coreUsage
import { diff, IR_VERSION, type IRSchema, type SchemaChange } from "@schemat/core";
const changes: SchemaChange[] = diff(before, after); // structural delta between two IRSchemaLicense
MIT © Ali Reza Hamid
