Why Mystique?
ProcessWire creates one MySQL table (field_<name>) for every field you add. That model excels for core shared fields like title, body, or images, yet managing 30 template-specific settings or technical specifications quickly clutters Setup -> Fields and slows schema migrations across teams.
Practical Comparison
Section titled “Practical Comparison”| Need | Native ProcessWire Fields | Mystique (FieldtypeMystique) |
Entries |
|---|---|---|---|
| Storage model | One SQL table per field | One SQL table per Mystique field storing all subfields as queryable JSON | Dedicated normalized Entries tables and Managed SQL Tables |
| Schema authoring | Admin UI or migrations | Git-tracked PHP arrays, dynamic PHP Closures, JSON files, @fieldset: partials, or inline JSON |
YAML/PHP blueprints for Singles, Collections, and Blocks |
| Dynamic per-page schemas | Fixed per template | Supported natively via PHP Closure resources ($page, $field, $value) |
Fixed per blueprint |
| Dependencies | None | None (standalone ProcessWire module) | Requires Inertia + React |
| Best fit | Shared core page fields | Page-scoped metadata, specs, hero/CTA configs, template settings, and RepeaterMatrix items | Standalone multi-record collections, drafts/revisions, Kanban/Calendar workspaces |
When to Choose Mystique
Section titled “When to Choose Mystique”- You want Git-versioned field schemas directly inside
site/templates/configs/or inside a reusable ProcessWire module (site/modules/<Module>/configs/). - You need template-specific or per-page dynamic forms (for example showing different fields based on
$page->templateor$page->parentvia a PHP Closure). - You want native ProcessWire
Page,Pageimage,Pagefile, multi-language, and RepeaterMatrix compatibility without adding 20 newfield_*database tables. - You still need type-aware
$pages->find()selectors and ProcessWire Lister filtering on every subfield.