Skip to main content
Version: 3.14 Beta (Latest)

Modes: Installation

Every installed mode is an entry in platform/app/pluginConfig.json and is compiled into the viewer at build time.

From npm​

pnpm add -w @acme/mode-bar
platform/app/pluginConfig.json
{ "modes": [ { "packageName": "@acme/mode-bar" } ] }

Or do both in one step with the helper:

pnpm run plugin add @acme/mode-bar

Declare the mode's extensions​

The extensions a mode lists in its peerDependencies must also be installed and declared in the extensions array — the build does not add them automatically. pnpm run plugin add does: it installs and declares the OHIF extensions and modes the package lists as peers (pass --no-peers to add only the package you named). If you install by hand or link a checkout, pnpm run plugin doctor flags missing ones.


The procedure is otherwise identical to extension installation: the same pnpm run plugin commands (add, remove, link, unlink, list, doctor) apply, and out-of-tree and in-tree placement work the same way.