Alpha (platform kernel). Suitable for demos and custom modules. Not for production or regulated workloads.
Core DevAlpha

Addons overview

An addon (module) is a directory that contains manifest.json and optional models/, views/, security/, and static/ assets.

Discovery and naming

  • Each root in addons_path (comma-separated in sumeru.conf) is scanned for first-level subdirectories that contain manifest.json.
  • manifest.name is the technical module name. It must match **^[a-z][a-z0-9_]*$ (same rule as sumeru-bp**).
  • If the same name appears in two roots, the later path in addons_path wins (override pattern for forks or sumeru_custom_addons).

manifest.json

FieldNotes
nameTechnical name; equals folder name in normal setups
display_nameShown in Apps / UI when set
versionSemantic string for humans and sys.module
dependsList of module names; topological order for install/update
author, descriptionMetadata
dataOrdered list of XML paths relative to the addon root loaded on install/update
applicationIf true or omitted, module can appear as an application in Apps; set false for technical glue modules

Only installed modules have their data XML applied on startup sync. Uninstalled modules are still discovered (visible in Apps) but menus/views from them are not loaded.

Go side-effect imports

Go models register via generated models/zmodels.go, which calls sdk.MustRegister. The server binary must blank-import the addon root package so those init hooks run.

  • make generate runs sumeru-import-gen, which rewrites zimports.go and regenerates zmodels.go per addon from addons_path in your INI.
  • After adding a new model struct or addon, run make generate then -i your_module once.

See Tooling and How-to: install a module.

Typical layout

text
addons/engagement_cookbook/
  manifest.json
  init.go                 # usually: import _ "sumeru/addons/engagement_cookbook/models"
  models/
    my_model.go           # struct + sdk.Model embed + sumeru tags
    zmodels.go            # generated — sdk.MustRegister
  views/
    actions.xml
    menus.xml
    my_model_form.xml
  security/
    security.xml          # optional XML records
    sys.access.csv        # optional CSV ACLs
  static/
    css/theme-overrides.css   # optional; served as /static/addon-css/<module>.css

The reference implementation is sumeru/addons/base/. Platform shells that own menus/ACL over kernel models (no extra Go models) live next to it — e.g. sumeru/addons/contacts/ (address book over core.partner).