Getting Started
SciGrid is a high-performance data grid designed for scientific and data-heavy applications. It uses HTML5 Canvas for rendering, allowing it to handle massive datasets without the overhead of thousands of DOM elements.
Installation
Install the core package using your favorite package manager:
bash
pnpm add @sci-grid/coreIf you are using a framework, you can also install the dedicated adapter:
bash
# For React
pnpm add @sci-grid/react
# For Vue
pnpm add @sci-grid/vueBasic Usage
Here is how you can initialize a basic grid in vanilla JavaScript:
typescript
import { SciGrid } from '@sci-grid/core';
const container = document.getElementById('grid-container');
const provider = {
getRowCount: () => 1000,
getColumnCount: () => 100,
getCellData: (r, c) => `Cell ${r}:${c}`,
getHeader: (c) => ({ name: `Column ${c}` })
};
const grid = new SciGrid(container, provider);Next Steps
Check out the framework guides to see how to integrate SciGrid into your application:
Learn about SciGrid's interactive features:
- Context Menus — Zone-aware menus with sections, checkboxes, sub-menus, and ARIA.
- Keyboard Shortcuts — Configurable shortcuts with custom actions.
- Core Concepts — Virtualization, canvas rendering, and the data provider pattern.