- add wwvStaticCompiler to SDK vite/ subpath export [Minor] - export createPluginContext and PluginContext type from SDK [Minor] - update viteGlobals mapping for lucide-react [Patch] - overhaul all docs/ for decoupled plugin development workflow [Minor] - update README with new CLI-based plugin creation instructions [Minor] - fix marketplace load route CORS and error handling [Patch] - add test coverage for DeclarativePlugin edge cases [Patch] - bump root to v1.18.0, SDK to v1.5.0
1.7 KiB
1.7 KiB
System Architecture
WorldWideView operates on a decoupled Core-and-Plugin architecture. The central platform provides the 3D globe, HUD, timeline, and rendering optimizations, while separate intelligence domains are entirely handled by external plugin packages that are bundled and ingested at runtime.
The underlying data backbone uses a WebSocket Firehose, streaming continuous high-frequency metrics from standalone data engine microservices perfectly isolated from the visualization layer.
Component Map
- UI Platform:
src/components/layout/AppShell.tsx - 3D Visualizer:
src/core/globe/GlobeView.tsx - State Store:
src/core/state/globeSlice.tsand peers. - Event Bus:
src/core/data/DataBus.ts - Microservice Connectors:
packages/wwv-plugin-sdk/src/PluginManifest.ts
Key Files
src/core/globe/GlobeView.tsx(lines 60-150): The central CesiumJS ingestion point and scene orchestrator.src/core/globe/EntityRenderer.tsx(lines 45-120): High-performance batched Primitive mapping for geometric entities.src/core/plugins/PluginManager.ts(lines 20-100): Validates and bootstraps compiled ES Modules from CDN/local sources.
Data Flow
The real-time data flow triggers globally via WebSockets:
src/lib/WsClient.tscaptures the socket frame fromdataengine.worldwideview.dev.- Emits payload through
src/core/data/DataBus.ts(lines 30-50). - The
DataBusSubscriber.tsxhook catches the event, sanitizing and merging the data intosrc/core/state/dataSlice.ts. EntityRendererautomatically reacts to State changes, triggering low-level Cesium Primitive re-draws against the GPU.