Architecture

IIFE Build and Registration

  • Built as IIFE via Vite (see vite.config.lib.ts). Entry src/index.ts, output dist/index.iife.js.

  • Registers itself with the Octopus host when the global becomes available.

  • Type declarations emitted under dist/.

Runtime Data Flow

  • Either subscribes to new values (tangoAttributes subscription) or polls HDB++ histories.

  • Applies optional server-side downsampling and client-side throttling (appendInterval).

  • Heatmap mode reprojects traces into a matrix (attr × time).

Importing in octopus-frontend

  • Include dist/index.iife.js; it auto-registers under key HDBPPLiveWidget (label “HDBPP Live”).