Skip to content

Generator Engine Documentation

Reference documentation for blutrixx/generator-engine. All JSON structures accepted by the generator are documented here.


Guides

DocumentWhat it covers
module-config.mdTop-level module config structure — all keys, menu_config, seeder, constants
columns.mdColumn types, FK columns, morph pairs, featureSelections, frontend field type mapping
features-config.mdfeatures.backend and features.frontend per-operation config (list, create, view, edit, delete)
mobile-config.mdfeatures.mobile_app config, card layout, offline sync, generated file list
delegations.mdRelated-module tab/modal panel config
actions.mdCustom action buttons and service config
processors.mdLifecycle pipeline hooks (before/after save/delete)
scaffold-blueprint.mdBlueprint JSON for make:modules-from-db, make:mobile-modules, make:mobile-scaffold
ux-blueprint.mdUX blueprint for make:ux-from-blueprint — composites, wizards, shortcuts, dashboard

Examples

FileDescription
examples/module-config-full.jsonComplete annotated Products module config
examples/scaffold-blueprint.jsonFull scaffold blueprint with groups, delegations, seeders, actions
examples/ux-blueprint.jsonFull UX blueprint with composite, wizard, shortcuts, dashboard

JSON Schemas

Machine-readable schemas for editor validation and autocompletion (VS Code, IntelliJ, etc.).

SchemaValidates
schema/module-config.schema.jsonSingle module config array
schema/scaffold-blueprint.schema.jsonScaffold blueprint JSON
schema/ux-blueprint.schema.jsonUX blueprint JSON

Using schemas in VS Code

Add this to .vscode/settings.json in your project:

json
{
  "json.schemas": [
    {
      "fileMatch": ["blueprint.json", "*-blueprint.json"],
      "url": "./vendor/blutrixx/generator-engine/schema/scaffold-blueprint.schema.json"
    },
    {
      "fileMatch": ["ux-blueprint.json", "*-ux-blueprint.json"],
      "url": "./vendor/blutrixx/generator-engine/schema/ux-blueprint.schema.json"
    }
  ]
}

Quick Reference: Common Agent Errors

ErrorCauseFix
UX generators produce 0 filesmodule_groups missing from ux-blueprintAdd every referenced module to module_groups
Dashboard produces 0 filesquick_actions is []Add at least one entry to quick_actions
FK field renders as plain inputrelatedModule not set on columnSet relatedModule to the StudlyCase module name
Mobile list card shows wrong fieldcard.titleField not setSet features.mobile_app.list.card.titleField
Processor not calledoperations array missing operation nameAdd "create", "edit", or "delete" to processor operations
Delegation tab not appearingenabled: false on list operationSet operations.list.enabled: true

Released under the Apache-2.0 License.