Zero Runtime Dependencies • Bounded DOM
The TypeScript Data Grid
Built for Deterministic Speed
Framework-agnostic core with recycled row and cell pools. Render 1,000,000 rows while keeping DOM nodes strictly bounded by your viewport.
Read the DocsAlpha · API may change
Works with
0
External Runtime Dependencies
O(viewport)
DOM & Memory Footprint
1M+
Rows with Lazy Virtualization
Strict TS
Typed Columns, State & Events
Drop into any stack in seconds
One zero-dependency core for TypeScript, React, Vue, Svelte, and Angular — pick your stack below.
npm install next-grid-jsimport { Grid } from 'next-grid-js';
import 'next-grid-js/styles.css';
const grid = new Grid({
container: document.getElementById('grid')!,
columnDefs: [{ key: 'id', name: 'ID' }, { key: 'name', name: 'Name' }],
rowData: [{ id: 1, name: 'Alpha' }],
});import { useMemo } from 'react';
import { NextGrid } from 'next-grid-react';
import 'next-grid-js/styles.css';
export function OrdersGrid({ orders }: { orders: Order[] }) {
const columnDefs = useMemo(() => [{ key: 'id', name: 'ID' }, { key: 'customer', name: 'Customer' }], []);
return <NextGrid style={{ height: 360 }} columnDefs={columnDefs} rowData={orders} getRowId={(r) => r.id} />;
}<script setup lang="ts">
import { NextGrid } from 'next-grid-vue';
import 'next-grid-js/styles.css';
const columnDefs = [{ key: 'id', name: 'ID' }, { key: 'customer', name: 'Customer' }];
</script>
<template>
<NextGrid style="height: 360px" :column-defs="columnDefs" :row-data="orders" :get-row-id="(r) => r.id" />
</template><script lang="ts">
import { nextGrid } from 'next-grid-svelte';
import 'next-grid-js/styles.css';
let { orders } = $props();
const columnDefs = [{ key: 'id', name: 'ID' }, { key: 'customer', name: 'Customer' }];
</script>
<div style="height: 360px" use:nextGrid={{ columnDefs, rowData: orders, getRowId: (r) => r.id }}></div>import { Component, signal } from '@angular/core';
import { NextGrid } from 'next-grid-angular';
@Component({
imports: [NextGrid],
template: `<next-grid style="height: 360px" [columnDefs]="cols" [rowData]="orders()" [getRowId]="rowId" />`,
})
export class OrdersComponent {
cols = [{ key: 'id', name: 'ID' }, { key: 'customer', name: 'Customer' }];
orders = signal([]);
rowId = (r: Order) => r.id;
}