The framework-agnostic engine powering the Tenorlab dashboard ecosystem.
This package serves as the foundational layer for our framework-specific libraries. It contains the shared logic, TypeScript interfaces, and utilities that ensure consistent behavior across different rendering engines.
- @tenorlab/dashboard-core: (this package) Base types, state logic, and math utilities.
- @tenorlab/vue-dashboard: Vue-specific components (re-exports the dashboard-core as well).
- @tenorlab/react-dashboard: React-specific components (re-exports the dashboard-coreas well).
The core library ensures that whether you are building in Vue or React, the underlying data structures for widgets, layouts, and financial data remain identical.
Note for Developers: If you are using Vue or React, you do not need to install this package directly. Install
@tenorlab/vue-dashboardor@tenorlab/react-dashboardinstead, as they re-export everything found here.
- Unified Interfaces: Standardized types for Dashboard Layouts, Widget Configurations, etc.
- Zero Dependencies: Extremely lightweight with no runtime framework requirements.
- Type Safety: Shared TypeScript definitions to prevent "type-drift" between different framework implementations.
While primarily consumed by our framework wrappers, you could use the core for vanilla TypeScript projects:
// TODO: no-framework exampleThis project uses Vite and TypeScript 5.8+.