@gridstorm/core
v0.1.2
Published
GridStorm core engine — framework-agnostic data grid state management
Downloads
152
Maintainers
Readme
@gridstorm/core
Framework-agnostic data grid engine with state management, event/command bus, and plugin system.
Install
npm install @gridstorm/coreUsage
import { createGridEngine } from '@gridstorm/core';
const engine = createGridEngine({
columnDefs: [
{ field: 'name', headerName: 'Name' },
{ field: 'age', headerName: 'Age', type: 'number' },
],
rowData: [
{ id: 1, name: 'Alice', age: 32 },
{ id: 2, name: 'Bob', age: 28 },
],
plugins: [],
});
const rows = engine.getDisplayedRows();Key Concepts
- Store -- Immutable state slices with batched updates
- CommandBus -- Unidirectional data flow; commands are the only way to mutate state
- EventBus -- Subscribe to state changes and grid lifecycle events
- PluginManager -- Topological dependency resolution and lifecycle hooks
- GridEngine -- Orchestrates everything into a single API surface
Documentation
Full API Reference | Architecture Guide
License
MIT
