type: reference title: "Runtime Parity Showcase" description: "The runtime parity showcase example: a hosted MapPackage, HonuaController, web components and widget sources over one linked-view state." resource: "https://www.npmjs.com/package/@honua/sdk-js"

Runtime Parity Showcase

The runtime parity showcase lives in examples/runtime-parity-showcase. It is an app-first SDK demo, not a landing page.

Architecture

The app starts by fetching a hosted fixture MapPackage with fetchMapPackage, preserving the SDK cache state returned by the runtime fetch helper. It validates the package style with runtime style diagnostics, loads it into MapLibre with loadMapPackage, and then creates a HonuaController over the resulting runtime.

The controller is the application state owner for viewport, selection, layer visibility, and shareable state. Honua web components are bound with createHonuaWebComponentControllerFromRuntime, so the layer list, legend, search, feature table, chart, and component map surface read from the same runtime package and fixture features.

Widget metrics use createWidgetSource over the deterministic incident fixture source. Status filters and viewport changes flow through selectLinkedViewQueryProjection, so widget count/category/range models refresh from the same linked-view state used by the table and map filters.

Extension Points