Stricture 4.0.2 is a multi-target data definition language (MicroDDL) compiler that transforms a Markdown-inspired, line-based schema definition into MySQL scripts, Meadow schema files, relationship diagrams (Graphviz), data dictionaries (Markdown, LaTeX, CSV), and test fixtures. Unlike general-purpose schema tools, Stricture is purpose-built for the Meadow application framework and provides first-class support for audit columns, authorization definitions, and PICT UI definitions. The project follows a service-oriented architecture on the Pict/Fable 3.x stack, with both a Commander-based CLI and a programmatic API. Releases are irregular but stable; v3 introduced a major CLI syntax change (migrating from yargs to Commander subcommands).
npm install strictureNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Programmatically compile a JSON model and generate MySQL DDL using Stricture's ESM API.
Use 'stricture full Model.mddl' instead of 'stricture -i Model.mddl -c Full'
Use import statements or dynamic import(). Add 'type': 'module' to package.json if needed.
Migrate to subcommand syntax described in v3 migration guide.
Use the programmatic API with model objects if you already have JSON; otherwise ensure input is .mddl.
Use exact names: CreateDate, UpdateDate, Deleted (case-sensitive).
Review generated migration scripts before running on production databases.
Switch to import statements or use dynamic import() as a fallback.
Use 'stricture full <input.mddl>' syntax instead.
Import named export directly: import { StrictureCompiler } from 'stricture'.Use Node >= 14 and set 'type': 'module' in package.json, or use dynamic import().