# Birch UI documentation

> Guides and API reference for Birch UI Grid, Grid Pro, the Excel Engine and the Scheduler, with examples for React, Vue, Angular, Svelte, Solid and Web Components.

<section class="home-hero">
<h1>The data grid you pay for once.</h1>
<p class="lead">Birch UI Grid is a fast, accessible data grid for React, Vue, Angular, Svelte, Solid and plain JavaScript. The core is MIT licensed. Grid Pro, the Excel Engine, the Scheduler and the Event Calendar are one-time purchases per developer, with free updates forever.</p>
<div class="home-actions"><a class="button button-primary" href="/getting-started/quick-start/">Start with the quick start</a><a class="button" href="/getting-started/introduction/">Read the introduction</a><a class="button" href="/getting-started/pricing/">Compare plans</a></div>
<p class="home-install"><code>npm install @birchui/core</code></p>
</section>

**Live demo: 100,000 rows, virtualized** (runs on the HTML version of this page). Source of `demos/virtualization-100k.ts`. Imports from `./_shared` and `./_scheduler-data` are sample data and small UI helpers used only by the docs.

```ts
import { createGrid, type ColumnDef } from '@birchui/core';
import {
  button,
  docsTheme,
  formatCurrency,
  layout,
  makeOrders,
  onDocsThemeChange,
  revenueOf,
  type Order,
} from './_shared';

export const meta = { title: '100,000 rows, virtualized', height: 480 };

const ROW_COUNT = 100_000;

const columns: ColumnDef<Order>[] = [
  { field: 'orderNo', header: '#', type: 'number', width: 90 },
  { field: 'id', header: 'Order', width: 120 },
  { field: 'customer', header: 'Customer', width: 200 },
  { field: 'country', header: 'Country', width: 150 },
  { field: 'region', header: 'Region', width: 140 },
  { field: 'product', header: 'Product', width: 200 },
  { field: 'category', header: 'Category', width: 130 },
  { field: 'rep', header: 'Sales rep', width: 160 },
  { field: 'quantity', header: 'Qty', type: 'number', width: 80 },
  { field: 'unitPrice', header: 'Unit price', type: 'number', width: 110, format: formatCurrency },
  { id: 'revenue', header: 'Revenue', type: 'number', width: 120, valueGetter: revenueOf, format: formatCurrency },
  { field: 'status', header: 'Status', width: 110 },
  { field: 'orderDate', header: 'Ordered', type: 'date', width: 120 },
  { field: 'quarter', header: 'Quarter', width: 100 },
];

export default function mount(el: HTMLElement): () => void {
  const { toolbar, body, status } = layout(el);
  const started = performance.now();
  const rows = makeOrders(ROW_COUNT, 99);
  const grid = createGrid<Order>(body, {
    columns,
    rows,
    getRowId: (order) => order.id,
    defaultColumn: { sortable: true },
    theme: docsTheme(),
    ariaLabel: 'One hundred thousand orders',
  });
  const ready = performance.now() - started;
  status.textContent = `${ROW_COUNT.toLocaleString()} rows generated and rendered in ${Math.round(ready)} ms. Only visible rows and columns are in the DOM.`;
  toolbar.append(
    button('Jump to row 50,000', () => grid.scrollToRow(49_999, 'center')),
    button('Jump to last row', () => grid.scrollToRow(grid.getDisplayRows().length - 1, 'end')),
    button('Sort by revenue', () => {
      const t = performance.now();
      grid.setSort([{ colId: 'revenue', dir: 'desc' }]);
      status.textContent = `Sorted ${ROW_COUNT.toLocaleString()} rows in ${Math.round(performance.now() - t)} ms.`;
    }),
  );
  const offScroll = grid.on('viewportScroll', () => {
    const rendered = grid.getRenderedRows();
    if (!rendered.length) return;
    status.textContent = `Rows in the DOM: ${rendered.length} of ${ROW_COUNT.toLocaleString()}.`;
  });
  const stopTheme = onDocsThemeChange((theme) => grid.update({ theme }));
  return () => {
    offScroll();
    stopTheme();
    grid.destroy();
  };
}
```

<div class="home-products">
<section class="home-product"><h2><a href="/grid/overview/">Birch UI Grid</a><span class="badge badge-mit">MIT</span></h2><p>Row and column virtualization, multi-column sorting, floating filters, quick filter, inline editing, pinned and reorderable columns, row selection, pagination, CSV export, full keyboard support and ARIA.</p><p class="price">Free and open source</p></section>
<section class="home-product"><h2><a href="/grid-pro/overview/">Grid Pro</a><span class="badge badge-pro">Pro</span></h2><p>Row grouping, aggregation, tree data, pivot mode, range selection, clipboard copy and paste, fill handle, master/detail rows, status bar, and styled Excel export and import.</p><p class="price">$349 per developer, one time</p></section>
<section class="home-product"><h2><a href="/excel/overview/">Excel Engine</a><span class="badge badge-excel">Excel</span></h2><p>A standalone xlsx writer and reader for the browser, workers and Node: styles, number formats, dates, merged cells, freeze panes, outlines and autofilter.</p><p class="price">$299 per developer, included with Grid Pro</p></section>
<section class="home-product"><h2><a href="/scheduler/overview/">Scheduler</a><span class="badge badge-scheduler">Scheduler</span></h2><p>A resource timeline for crews, rooms and equipment: drag, resize and drag-to-create with snapping, zoom presets, working-time shading and time zones.</p><p class="price">$399 per developer, one time</p></section>
<section class="home-product"><h2><a href="/gantt/overview/">Gantt</a><span class="badge badge-gantt">Gantt</span></h2><p>Project scheduling with FS, SS, FF and SF dependencies, lag, constraints, working calendars, critical path and baselines, MS Project XML import and export, and a headless scheduling engine for Node.</p><p class="price">$399 per developer, one time</p></section>
<section class="home-product"><h2><a href="/calendar/overview/">Event Calendar</a><span class="badge badge-calendar">Calendar</span></h2><p>Month, week, day, agenda and year views with RRULE recurrence and exceptions, time zones, drag and resize, async event sources, and iCal import and export.</p><p class="price">$299 per developer, one time</p></section>
<section class="home-product"><h2><a href="/charts/overview/">Charts</a><span class="badge badge-charts">Charts</span></h2><p>Canvas line, area, bar, column, scatter, bubble, pie, donut and heatmap charts. One million points render quickly with decimation, and charts zoom, export to SVG and PNG, and plot ranges selected in Grid Pro.</p><p class="price">$299 per developer, one time</p></section>
<section class="home-product"><h2><a href="/diagram/overview/">Diagram</a><span class="badge badge-diagram">Diagram</span></h2><p>A flow and diagram editor: nodes, ports and groups, orthogonal routing, layered, tree, force and grid auto-layout, minimap, undo and redo, and SVG, PNG and JSON export.</p><p class="price">$399 per developer, one time</p></section>
<section class="home-product"><h2><a href="/spreadsheet/overview/">Spreadsheet</a><span class="badge badge-spreadsheet">Spreadsheet</span></h2><p>An Excel-compatible spreadsheet with 494 functions, LET and LAMBDA, dynamic arrays, multiple sheets, formatting, validation and xlsx round trips, plus a headless formula engine for Node.</p><p class="price">$399 per developer, one time</p></section>
<section class="home-product"><h2><a href="/document/overview/">Document Editor</a><span class="badge badge-document">Document</span></h2><p>A paginated, Word-style editor: styles, lists, tables and images, headers and footers, track changes, comments, mail-merge fields, and DOCX import and export.</p><p class="price">$599 per developer, one time</p></section>
<section class="home-product"><h2><a href="/pdf/overview/">PDF</a><span class="badge badge-pdf">PDF</span></h2><p>A PDF viewer and annotation editor: highlights, notes, ink, shapes, stamps and signatures, form filling, page tools, XFDF, and a save that keeps the original file intact.</p><p class="price">$599 per developer, one time</p></section>
<section class="home-product"><h2><a href="/pivot-studio/overview/">Pivot Studio</a><span class="badge badge-pivot-studio">Pivot Studio</span></h2><p>A pivot report builder for BI embeds: drag fields into rows, columns and values, show values as percentages or running totals, filter, format, drill through and export to Excel. A million source rows pivot in about half a second in Node.</p><p class="price">$349 per developer, one time</p></section>
<section class="home-product"><h2><a href="/forms/overview/">Forms</a><span class="badge badge-mit">MIT</span></h2><p>Render forms from JSON: 21 field types plus panels, conditional logic with expressions, validation, multi-page flows, repeating panels, translations and JSON Schema conversion. The visual Form Builder lets your team design forms without code.</p><p class="price">Renderer free; Form Builder $349 per developer, one time</p></section>
</div>

## Use it with your framework

Every product is one vanilla TypeScript engine with a thin adapter per framework, so options, events and the API are the same everywhere.

<ul class="home-frameworks">
<li><a href="/frameworks/react/">React</a></li>
<li><a href="/frameworks/vue/">Vue</a></li>
<li><a href="/frameworks/angular/">Angular</a></li>
<li><a href="/frameworks/svelte/">Svelte</a></li>
<li><a href="/frameworks/solid/">Solid</a></li>
<li><a href="/frameworks/web-component/">Web Component</a></li>
<li><a href="/grid/overview/">Plain JavaScript</a></li>
</ul>

## Learn by doing

- [Recipes](https://docs.birchui.com/recipes.md): task-focused guides, from persisting grid state and server-side data to recurring scheduler jobs, MS Project import and custom spreadsheet functions.
- [Examples gallery](https://docs.birchui.com/getting-started/examples.md): sixteen starter apps for every framework, ready to open in StackBlitz.
- Troubleshooting for every product, such as the [grid](https://docs.birchui.com/grid/troubleshooting.md) and the [framework adapters](https://docs.birchui.com/frameworks/troubleshooting.md): symptom, cause and fix.

## Licensing in one paragraph

Paid products never stop working. Without a key, every feature runs: Grid Pro, the Scheduler, Gantt, the Event Calendar, Charts, Diagram, the Spreadsheet, Pivot Studio and the Form Builder show a small watermark, which is skipped on localhost, and the Excel Engine only logs a console warning. Keys are verified offline in the browser and never phone home, and a paid key never expires. One purchase covers unlimited apps and unlimited end users, and colleagues who only build or deploy the app do not need a seat. Read [Licensing and activation](https://docs.birchui.com/getting-started/licensing.md) for the details.

## Docs for coding assistants

Every page has a plain Markdown twin at the same path with `.md`, for example [/grid/sorting.md](https://docs.birchui.com/grid/sorting.md). The index for language models is at [/llms.txt](https://docs.birchui.com/llms.txt), and the complete documentation in one file is at [/llms-full.txt](https://docs.birchui.com/llms-full.txt). Every page also has a **Copy page for AI assistant** button that copies its Markdown, with the source URL, ready to paste into a chat.
