An Accelerator Pack is a whole working process for a domain — claims, HR onboarding, KYC — shipped through the Marketplace as content. Installing one gives a tenant case types, stages, steps, forms, rules and SLA targets that already fit together, instead of an empty designer. A pack carries no code and introduces no runtime.
A pack is a .hxapp bundle whose manifest declares "type": "accelerator_pack". Provisioning it delegates to the same importer that promotes artifacts between customer environments — hxdeploy.packager.apply_bundle — so a pack can never do more than a promotion bundle can, and there is exactly one import path to reason about and secure.
| Section | What it carries |
|---|---|
case_types.json | The case type definitions the pack installs, with their versions |
stages.json | Stage and step structure per case type — the shape of the process |
form_definitions.json | Forms bound to the steps that collect data |
rule_definitions.json | Validation, routing and SLA rules |
pack.json | Identity and metadata: id, name, vertical, version, summary, optional sample-data block |
| Pack | Id | Vertical | Sample cases |
|---|---|---|---|
| Insurance Claims Accelerator | velaris/claims-accelerator | claims | 25 (opt-in) |
| HR Onboarding Accelerator | velaris/onboarding-accelerator | onboarding | 15 (opt-in) |
Sample data is off unless asked for at provision time. When enabled, the synthetic cases are marked synthetic:true in their metadata, so they can be found and removed once the team has finished exploring.
A pack must be installed from the Marketplace first. Every pack endpoint re-checks that install before doing anything — provisioning works from the installed record, not from a downloaded file, so the blacklist, the per-access-group rules and the conformance gate all still apply.
(tenant_id, package_id), so two concurrent calls cannot both provision — the loser gets a 409.Tenants customise what they install. An upgrade therefore compares three states: the snapshot taken when the pack was provisioned (the merge base), the incoming version, and what the tenant has now. Every artifact is classified, and the result is shown before anything is written.
| Situation | Outcome |
|---|---|
| Pack unchanged | Nothing to do |
| Pack changed, tenant untouched | Apply the new version |
| Pack unchanged, tenant customised | Keep the tenant's version |
| Both changed | Conflict — reported, never auto-resolved |
| New in this version | Apply |
Sometimes a team customises a pack so heavily that tracking upstream stops being useful. Forking exports the pack's current state — customisations included — as a new, editable pack with a new id.
A fork is severed deliberately: it carries no upgrade relationship to its parent, because a fork that still tracked upstream would reintroduce exactly the conflicts it was created to escape.
All routes sit under the marketplace router on the gateway at :8200.
| Method | Path | Purpose |
|---|---|---|
| GET | /api/v1/marketplace/packs | Packs provisioned for this tenant |
| GET | /api/v1/marketplace/packs/{package_id}/preview | What provisioning would create |
| POST | /api/v1/marketplace/packs/{package_id}/provision | Provision into this tenant |
| GET | /api/v1/marketplace/packs/{package_id}/upgrade-preview | Merge plan: apply, skip, conflict |
| POST | /api/v1/marketplace/packs/{package_id}/upgrade | Apply the non-conflicting part of the plan |
| GET | /api/v1/marketplace/packs/{package_id}/upgrades | Upgrade history |
| POST | /api/v1/marketplace/packs/{package_id}/fork | Export current state as a new pack |
Pack sources live in packs/, one directory per pack. The builder turns a directory into an installable bundle and emits its SHA-256 — the marketplace index pins that digest, and it is verified at install before the bundle is opened, so publishing the file without the digest makes it uninstallable.
# Build one pack uv run python scripts/build-pack.py packs/velaris-claims-accelerator # Build every pack into a directory uv run python scripts/build-pack.py packs/* --out dist/
| Table | Purpose |
|---|---|
marketplace_pack_installs | One row per provisioned pack per tenant, with the provision-time snapshot used as the merge base |
marketplace_pack_upgrades | Upgrade history: what was applied, skipped and reported as a conflict |
Introduced by migrations 134 and 135, with the provisioning uniqueness constraint added in 136.
Packs have their own Accelerator Packs tab in the Marketplace module: browse what is installed, preview, provision with or without sample data, review an upgrade's merge plan before applying it, and fork.