bo-grid v3.3.2
New in 2.8Busy feeds, read in a worker

The data grid for busy markets.

A fast, lightweight grid for trading screens. Price boards that tick tens of thousands of times a second, order books, ladders and blotters, with everything a data grid needs besides. Documented for people, and for the AI agents that write code with them.

Get started See the examples

Svelte 5 React Vue any framework MIT

Live createTickStream → api.patchRows
  • NVDA 131.42 ▲ 2.31%
  • EUR/USD 1.0842 ▼ 0.12%
  • BTC-USD 67,412.50 ▲ 1.84%
  • AAPL 228.15 ▲ 0.42%
  • USD/JPY 151.37 ▲ 0.08%
  • TSLA 251.06 ▼ 1.73%
  • ETH-USD 2,631.20 ▲ 2.66%
  • MSFT 417.80 ▲ 0.21%
  • XAU/USD 2,734.60 ▲ 0.35%
  • GBP/USD 1.2987 ▼ 0.27%
  • AMD 154.47 ▼ 0.88%
  • SOL-USD 171.04 ▲ 4.12%
~4.5 msmain-thread work a frame (median) for 1,000 symbols at 30,000 ticks a second
46 KBgzip for the grid, with no runtime dependencies
1M rowswindowed from a source on demand, sorted and filtered there
24live examples, each with its source a tab away

Thirty seconds

See it move.

Built for AI coding agents

Docs an agent can read.
Types it can trust.

Agents don't remember libraries; they read them, and they get versions wrong. bo-grid puts what an agent needs where it looks: TSDoc in the installed types, every page as Markdown, an llms.txt index and a manifest generated from the types.

A session played back. The files the agent reads are the real ones.

What is inside

Everything a trading screen needs,
in one MIT package.

Order books and ladders

A depth ladder with click-to-trade and keys for buy, sell and cancel. Order books from a depth feed, orders that linger after they fill, alerts that stay lit until acknowledged.

Depth ladder →
Frame cost, 1,000 symbols · api.patchRowsp50 p95
10,000 ticks/s 1.9 / 4.8 ms
30,000 ticks/s 4.5 / 11 ms
Scroll 3 rows a frame 2.5 / 5.7 ms
016.7 ms · one frame at 60 Hz

Realtime that stays smooth

Plain rows patched in place repaint only the cells that changed. A coalescing tick stream hands the grid one batch a frame; a busy feed can be read in a worker.

Live updates →

Every column type

Prices, percents, volumes, dates, heatmaps, sparklines, progress, badges, tags, ratings, links and your own cells.

Column types →

Group, pivot, tree

Nested groups with subtotals, pivot tables, tree data, master-detail, server-side groups and lazy trees.

Row grouping →

Edit like a sheet

Inline editing with validation, range selection, clipboard, fill handle, merged cells and Excel export.

Inline editing →

Keyboard first

A full keyboard model with grid and treegrid semantics, hotkeys you define, and a find bar.

Keyboard & hotkeys →

A million rows

A windowed source loads rows on demand and sorts and filters on the server; wide grids virtualize their columns too.

Server-side data →

Start in a minute

Rows, columns, a height.
That's a grid.

A column's type picks how its values show, sort and filter. The tabs follow your framework, on every page of the docs.

<script lang="ts">
  import { Grid, type ColumnDef } from 'bo-grid';

  const columns: ColumnDef[] = [
    { type: 'text', key: 'symbol', header: 'Symbol' },
    { type: 'price', key: 'price', header: 'Price', flash: 'auto' },
    { type: 'percent', key: 'change', header: 'Chg %' },
    { type: 'volume', key: 'volume', header: 'Volume' },
  ];
  let rows = $state([
    { id: 1, symbol: 'VNM', price: 68.5, change: 1.2, volume: 1_204_000 },
    { id: 2, symbol: 'FPT', price: 132, change: -0.4, volume: 860_500 },
  ]);
</script>

<Grid {rows} {columns} height={400} />

Build the screen your desk needs.

Open source, MIT, every feature in one package.