mod-ui is the web interface and Python backend of MOD OS (MOD Duo, Duo X, Dwarf) and of MOD Desktop (Linux, Windows, macOS). One code base serves both products. This file explains how the branches work, how a change reaches each product, and the rules that keep the two from drifting apart. Read it before opening a pull request.
| Branch | Role |
|---|---|
master |
The trunk. Every change starts here, as a pull request. |
plugin-store |
Receives master periodically. Release lines are cut from it. |
hotfix-<version> (for example hotfix-1.14) |
The release line of one MOD OS version. Only fixes that the release needs, each cherry-picked from master. Tagged v<version>.<build> per published build. |
Rules that follow from this:
plugin-store or a hotfix-* branch. A fix lands on master
first and is cherry-picked by the maintainers. If a fix only makes sense on the release line,
say so in the pull request and it will be handled as an exception.master. Rebase onto master
before asking for review. A branch that lives for months becomes a second code base; mod-ui
has paid for that once already with MOD Desktop.plugin-store and the hotfix-* line, never from master directly.MOD Desktop runs the very same mod-ui as the devices, from the same commit. The differences are handled at run time, behind one flag, and at packaging time, by what each product ships:
MOD_DESKTOP=1 (settings.DESKTOP in
Python, DesktopApp.isActive() in JavaScript, the desktop_app template variable). The
Desktop launcher sets that variable; a MOD device never does. The rendered device page must not
contain a single Desktop token; a test checks this. Desktop-only assets (html/js/desktop-app.js,
html/css/desktop-app.css, html/include/desktop-app/, html/img/desktop-app/) are served
only when the flag is on.hotfix-<version> commit. MOD Desktop pins the same commit as
the OS release line it ships with. Desktop never pins master and never carries its own
branch of mod-ui. Desktop-only code therefore has to be on the release line too; it is inert
there, by construction.What this means for a contributor:
html/js/desktop-app.js for the pattern.master as a normal pull request, behind the
flag, with the device-output test passing. It will be cherry-picked to the current release line
like any other change.pull request → master → cherry-pick → hotfix-<version> → tag v<version>.<build>
├─ MOD OS image (build system pins the tag)
└─ MOD Desktop (mod-desktop pins the same commit)
A fix shipped to the devices and to the Desktop is therefore always the same commit. When you
report a bug, give the version shown in the address bar (?v=…): on a device it is the OS build,
on the Desktop it is the Desktop build, and both identify the mod-ui commit.
master (or onto the branch it stacks on,
stated in the description).mod-ui reads plugin TTLs and writes pedalboard bundles. Both use RDF vocabulary that outlives any branch: a term written into a pedalboard file stays on users' devices for years. The published vocabulary lives at moddevices.com/ns (source: mod-audio/mod-ns). Three tiers:
| Tier | Namespace | Who defines it | MOD writes it? |
|---|---|---|---|
| Core | mod#, modgui#, modpedal# |
MOD | yes |
| Extension | ns/ext/<feature># (and ns/hmi#) |
the contributor who proposes the feature, published by MOD when it is adopted into master |
yes, once published |
| Third-party | the contributor's own domain | the contributor | never: read where supported, dropped on save |
The gate is on writing, not on reading.
mod/host.py) needs the term published first, in the right tier, and bumps
modpedal:formatVersion as the pedalboard page
records. Open the mod-ns pull request alongside the mod-ui one.mod:label (the plugin author's display name) and
modpedal:instanceLabel (the user's name for one instance) are the worked example.modpedal#;
what the plugin author declared is mod# / modgui#. A per-instance annotation is always
the former.The pedalboard writer regenerates the whole file from the running state on every save, so
terms it does not know are lost. That is by design for the third-party tier and is the reason
to get a feature adopted. Readers must keep working when any modpedal# term is absent.
Frontend tests live in test/js/ and run under Node's built-in test runner against the real
files in html/:
npm install # once, pulls in jsdom
npm test
Python-side tests are plain unittest modules in test/:
python3 -m unittest discover -s test -p 'test_*.py'
A pull request that touches the Desktop seam must keep test/test_desktop_app.py and
test/js/desktop-app*.test.js green: they assert what the Desktop shows and hides and that the
device output is unchanged with the flag off.
Contributions are accepted under the project licence, AGPL-3.0-or-later. The MOD logo is a registered trademark (EU trade mark no. 016228827; UK trade mark no. UK00916228827).
The licence of the code does not extend to the logo: see TRADEMARKS.md.
Please don't add new logo artwork or third-party brand assets without saying where they
come from and under what terms.
Open an issue in this repository, or ask on the MOD forum. Release and channel decisions are taken by MOD; the rules above are the contract that lets everyone else work without surprises.