@appkit/dek-lib
v0.57.0
Published
The DEK board runtime. Provides `BoardProvider`, the component hierarchy (`Board`, `Zone`, `Component`, `Router`), and a set of built-in plugins (base, calendar, clock, home-assistant, weather, desktop, sample).
Downloads
523
Readme
@appkit/dek-lib
The DEK board runtime. Provides BoardProvider, the component hierarchy (Board, Zone, Component, Router), and a set of built-in plugins (base, calendar, clock, home-assistant, weather, desktop, sample).
Installation
npm install @appkit/dek-libUsage
import { authorize, Board, BoardProvider } from '@appkit/dek-lib';
const token = await authorize('[email protected]', 'password');
<BoardProvider authToken={token}>
<Board />
</BoardProvider>Documentation
- Board Configuration — Board/zone/layout config format reference
- Built-in Plugins — base, calendar, clock, home-assistant, weather, desktop, sample
- Board System — How the board system works (layout format, zones, navigation)
Public API
// Components
export { Board, BoardProvider, Zone, Component, Router, RouteResolver, Command, CommandGroup };
// Utilities
export { authorize }; // Login and get an auth token
export { loadCustomDekPlugin }; // Load a plugin from remote code
export { useAuthorization }; // Hook: current auth state
// Types
export type { PreviewConfig };