npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

fastgrid-svelte

v3.2.3

Published

Official Svelte wrapper for FastGrid and FastSheet, a high-performance TypeScript data grid and web spreadsheet for large datasets, virtual scrolling, tree data, pivoting, XLSX and AI.

Readme

fastgrid-svelte — Svelte Data Grid and FastSheet Spreadsheet

npm version npm downloads TypeScript Svelte 5+

fastgrid-svelte is the official Svelte wrapper for FastGrid and FastSheet by COQsoft.

Use it to add a high-performance Svelte data grid, Svelte tree grid or Svelte spreadsheet to a JavaScript or TypeScript application. FastGrid supports virtual scrolling, large datasets, editable cells, sorting, filtering, grouping, pivoting, hierarchical data, formulas, XLSX/CSV import and export, charts, conditional formatting and AI-assisted data operations.

Svelte integration documentation · FastGrid · FastSheet

Installation

npm install fastgrid-svelte

Quick start

<script>
   import { FastGrid } from "fastgrid-svelte";

   const src = {
      Cols: [
         { id: "Name", Width: 180 },
         { id: "Country", Width: 140 },
         { id: "Orders", Type: "Number", Width: 100 }
      ],
      Head: [{
         D: "Header",
         V: {
            Name: "Customer",
            Country: "Country",
            Orders: "Orders"
         }
      }],
      Body: [
         { V: { Name: "Alice", Country: "United States", Orders: 120 } },
         { V: { Name: "Bob", Country: "Germany", Orders: 85 } },
         { V: { Name: "Carol", Country: "Japan", Orders: 164 } }
      ]
   };
</script>

<FastGrid
   {src}
   style="display:block;width:100%;height:500px"
/>

Trial and registered runtime

The default entry point contains the trial runtime:

import { FastGrid } from "fastgrid-svelte";

For a purchased runtime:

import { FastGrid } from "fastgrid-svelte/registered";

The registered entry point does not load FGridE.js. Load the registered file separately:

<script src="/FGridE.js"></script>

or:

import "./FGridE.js";

Do not publish registered FGridE.js or serial code.

FastGrid and FastSheet

Both products use the same FGridE.js runtime.

FastGrid is intended for:

  • Svelte data grids and editable tables;
  • tree grids and hierarchical data;
  • virtual scrolling over large datasets;
  • sorting, filtering, grouping and searching;
  • pivot grids and aggregation;
  • formulas and conditional formatting;
  • XLSX, CSV, HTML and PDF export.

FastSheet is intended for:

  • web spreadsheet and workbook editing;
  • XLSX import and export;
  • formulas;
  • multiple sheets;
  • spreadsheet formatting;
  • images and charts;
  • AI-assisted spreadsheet operations.

Accessing the API with bind:this

<script>
   import { FastGrid } from "fastgrid-svelte";

   let grid = null;

   function readValue() {
      console.log(grid?.Get(1, "A"));
   }

   function writeValue() {
      grid?.Set(1, "A", "", "Updated", 1);
   }
</script>

<FastGrid bind:this={grid} {src} />

<button onclick={readValue}>Read value</button>
<button onclick={writeValue}>Write value</button>

Svelte event props

<FastGrid
   {src}
   {onSetValue}
   {onReady}
   {onClick}
/>

The wrapper maps:

onSetValue → FastGrid OnSetValue
onReady    → FastGrid OnReady
onClick    → FastGrid OnClick
onFilter   → FastGrid OnFilter
onSort     → FastGrid OnSort
onSave     → FastGrid OnSave

Example:

<script>
   function onSetValue(grid, row, col, value, changes) {
      if(changes && row && col) {
         console.log("Changed", row.id, col.id, value);
      }
   }

   function onClick(grid, row, col) {
      if(row && col) {
         console.log("Clicked", row.id, col.id);
      }
   }
</script>

TypeScript

The wrapper includes TypeScript declarations and supports Svelte components written with <script lang="ts">.

<script lang="ts">
   import { FastGrid } from "fastgrid-svelte";

   let grid: TGrid | null = null;

   function writeValue(): void {
      grid?.Set(1, "A", "", "Updated", 1);
   }
</script>

<FastGrid bind:this={grid} {src} />

Large datasets and virtual scrolling

FastGrid is designed for large browser datasets with virtualized rendering. Benchmark your own configuration because performance depends on browser, device, layout, formulas, event handlers and data loading.

AI-assisted Svelte data grids

FastGrid can expose grid metadata, data descriptions, permissions and custom API functions to an AI provider. It can assist with data analysis, filtering, sorting, grouping, editing, formulas and spreadsheet operations.

Never expose a production AI API key in public Svelte client code. Use a secured server-side bridge.

Documentation

FAQ

Is fastgrid-svelte the official Svelte wrapper for FastGrid?

Yes. It is the official Svelte integration maintained for FastGrid and FastSheet by COQsoft.

Is the Svelte wrapper open source?

Yes. The Svelte wrapper source code is open source. The included trial runtime and externally supplied registered FGridE.js are covered by separate FastGrid/FastSheet trial or commercial terms.

Does the package include FastGrid?

The default entry point includes an evaluation runtime. Licensed production applications use the fastgrid-svelte/registered entry point with a separately supplied registered FGridE.js.

Can the wrapper display FastSheet spreadsheets?

Yes. FastGrid and FastSheet use the same runtime and Svelte component. Available functionality depends on the runtime license and enabled features.

Does it work with the latest Svelte version?

The peer dependency intentionally supports Svelte 5 and newer without an upper version limit. Current and future Svelte versions should still be tested because a future Svelte release can introduce breaking changes.

Can FastGrid handle millions of rows?

FastGrid is designed for very large datasets and virtual scrolling. Actual limits and performance depend on the grid configuration, browser, data format and application logic.

Does FastGrid replace an HTML table?

FastGrid is intended for interactive data-grid and spreadsheet applications. For a small static table, a standard HTML <table> may be simpler.

Can I use FastGrid without AI?

Yes. AI integration is optional. FastGrid can be controlled entirely through its user interface and JavaScript/TypeScript API.

License

The Svelte wrapper source code is open source under the terms in LICENSE.md.

The included trial FGridE.js remains commercial COQsoft evaluation software. Production use requires an appropriate FastGrid/FastSheet license and a separately supplied registered runtime.