Skip to content

View Engine reference

This reference describes the current 5.0.0 workspace contract. The package has not yet been published to the public registry; follow the local build/archive instructions. Repository development requires Node >=20.20.2 and pnpm 10.34.5. React UI requires React/ReactDOM ^19.2.8; direct dependencies are installed with the package and their declared peers must also be satisfied.

EntryContentsRuntime
@ahoo-wang/fetcher-view-engineModels, ViewHost, ViewEngine, pure filter/analysis helpers, MemoryViewHostCore import does not load React, DOM or CSS
@ahoo-wang/fetcher-view-engine/reactuseViewEngine, ViewPage, RecordView, AnalysisView, FilterPanel, table/card presentations and built-in controlsReact 19 and browser UI
@ahoo-wang/fetcher-view-engine/styles.cssCompiled scoped stylesImport once in the application

No consumer Tailwind or React Compiler plugin is required. fve: is the CSS utility prefix, not a prefix for configured component names. The current implementation supports record table/card views and kind: 'analysis' tables, metric cards, bar/line/area charts and pie/donut charts.

ContractTopic
Definition, instance, filter configuration and source shapeModels
Service facade, permissions, revisions and development storageViewHost
Headless lifecycle, commands and snapshotsViewEngine
Filter serialization, compiler and remote candidatesFilters
React ownership, extension props, cells and themeComponents
Every exported name in both code entriesSymbol index

Use task guides for integration steps and the shared runnable example for a verified starting point. Files under dev, internal engine services and private UI primitives are not additional public imports.

The required ViewDefinition.record.allowedLayouts controls available layouts; a single allowed layout hides the switch. Switching retains each layout configuration; see the model contract.

Released under the Apache License 2.0.