mmd-engine
v0.2.0
Published
Metadata-driven CRUD and action engine for MMD applications.
Readme
mmd-engine
MMD 服务端引擎:元数据、查询、分页、过滤、增删改和自定义操作。通过数据适配器连接数据库。
npm install mmd-contracts mmd-engine接入与 Hono 示例 · API 文档 · 源码 · MIT
Explicit action lists (0.1.1)
Set defaultActions: false to suppress generated CRUD buttons and use only explicit actions and dataActions. Existing models retain their default actions. Row placements in actions are still appended to row actions. Action visibility is presentation only: enforce authorization in your API/data adapter.
Explicit key visibility (0.2.0)
{ name: "id", fieldType: ModelFieldType.Key, readOnly: true, list: true } includes the key in generated list and detail views while respecting pageStyle. Keys remain hidden when list is omitted or false. Generated new/edit forms continue to omit keys; custom views can explicitly include them. The engine still rejects writes to primary keys and read-only fields.
Release guides
Changelog · Integration guide · Interactive demo · Example source
