Svelte spreadsheet

An Excel-compatible spreadsheet for Svelte: 494 functions, dynamic arrays and xlsx round trips.

Spreadsheet

Early access

$399

Per developer, paid once, lifetime updates

A working starting point

npm install @birchui/svelte @birchui/core @birchui/spreadsheet
Show Spreadsheet.svelte
Spreadsheet.svelte
<script>
  import { createSvelteAction } from '@birchui/svelte';
  import { spreadsheetDefinition } from '@birchui/spreadsheet';

  const spreadsheet = createSvelteAction(spreadsheetDefinition);

  const workbook = {
    version: 1,
    sheets: [
      {
        name: 'Loan',
        cells: {
          A1: { value: 'Principal' },
          B1: { value: 250000 },
          A2: { value: 'Annual rate' },
          B2: { value: 0.0625, style: { numberFormat: '0.00%' } },
          A3: { value: 'Payment' },
          B3: { formula: '=PMT(B2/12, 360, -B1)' },
        },
      },
    ],
  };
</script>

<div
  style="height: 520px"
  use:spreadsheet={{
    licenseKey: 'LQ1.your-key',
    height: 520,
    data: workbook,
    on: {
      cellChange: ({ address, newValue }) => console.info(address, newValue),
    },
  }}
></div>

Measured: across 1,520 test formulas, 95.5% of results match LibreOffice. A dependency graph recalculates only the cells an edit affects.

How it fits Svelte

Birch UI Spreadsheet combines a formula engine with a virtualized, keyboard-complete sheet. Formulas, styles, merges and frozen panes survive an xlsx round trip. Svelte mounts it through the generic factory of its adapter.

The Svelte package offers the spreadsheet both as a component and as a use: action. Components ship as .svelte source and compile with your app through the svelte export condition.

Keep large arrays and the bound api in $state.raw. Deep $state would proxy every record for no gain. During SvelteKit SSR the component renders its empty container, and the widget is created in an effect in the browser.

Questions

Does the Svelte spreadsheet support LAMBDA?

Yes: LET, LAMBDA and dynamic arrays such as FILTER, SORT, UNIQUE and XLOOKUP, with #SPILL! when blocked.

Is it in early access?

Yes. It is a feature-complete v0.1; structured references and the spill operator are on the roadmap.

Is the Svelte spreadsheet written for Svelte 5?

Yes. Props and handlers follow runes, and the action form fits markup where a component would be in the way.

Is Svelte a second-class target?

No. The Svelte adapter runs the same smoke tests in CI as React, Vue and Angular, over the same engine.