mcpField
L
lytenyte-grid

lytenyte-grid

github.com/1771-technologiesDevelopment1.0k122 installsUpdated 11w ago
Repository

About lytenyte-grid

LyteNyte Grid is a React data grid for developers building data-heavy interfaces. It offers Core and PRO editions, with headless or pre-styled presentation and capabilities ranging from sorting and selection to pivoting.

Key features

  1. 01Headless or pre-styled grid
  2. 02Sorting, filtering, and selection
  3. 03Client and server data loading
  4. 04Grouping, aggregation, and pivoting
  5. 05Core and PRO editions

Use cases

  1. 01Build a sortable and filterable React data table
  2. 02Display data loaded from a server
  3. 03Create grouped or pivoted data views

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/1771-technologies/lytenyte --skill lytenyte-grid

After installing, type/lytenyte-gridin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

refs/
annotations.md
cell-editing.md
cells.md
client-data-source.md
columns.md
components.md
export.md
expressions.md
filtering.md
grid-core.md
infinite-paginated-source.md
installation.md
misc.md
pivoting.md
row-selection.md
rows.md
server-data-source.md
shadcn.md
theming.md
tree-data-source.md
typescript.md

Details

From the project README

A React Data Grid with advanced features like sorting, filtering, column pinning, cell selection, row selection, server data loading, infinite data loading, row grouping and aggregations, pivoting, and many more features.

LyteNyte Grid is a headless or pre-styled React data grid with two editions:

  • Core — @1771technologies/lytenyte-core (Apache 2.0, free, no license required)
  • PRO — @1771technologies/lytenyte-pro (commercial, superset of Core)

PRO licensing: PRO can be installed and used freely for evaluation — no license key is needed to try it. A watermark ("used for evaluation") appears when no key is set.

Operating Rules

  • First determine whether the user is using Core or PRO. If unclear, default examples to PRO only when the requested feature requires PRO; otherwise use Core-compatible APIs.
  • Load only the relevant reference files from the table below. Do not load every reference upfront.
  • Prefer LyteNyte APIs and terminology. Do not substitute AG Grid, TanStack Table, MUI DataGrid, or generic grid APIs unless explicitly comparing.
  • For React examples, provide complete TypeScript snippets with imports, GridSpec, data source setup, columns state, CSS import, and a sized grid container.
  • Always include the relevant CSS import and a wrapper with an explicit height.
  • When debugging, check these first: package edition, CSS import, container height, column IDs, controlled state handlers, data source type, and whether the feature is Core or PRO.

A license key is required to remove the watermark for production deployments. License validation is offline; no network request is made. If the user is building/prototyping and hasn't set up a license yet, that is fine — they can add it before shipping.

Quick Start

  1. Start by importing LyteNyte Grid and its associated CSS file.

    import { Grid, useClientDataSource } from "@1771technologies/lytenyte-pro";
    import "@1771technologies/lytenyte-pro/grid-full.css";
    

    If you are using LyteNyte Grid Core:

    import { Grid, useClientDataSource } from "@1771technologies/lytenyte-core";
    import "@1771technologies/lytenyte-core/grid-full.css";
    
  2. Create a Grid Spec type to provide the grid with types for the data that will be displayed in LyteNyte Grid.

    interface GridSpec {
      readonly data: { name: string; price: number };
    }
    
  3. Create a component that renders LyteNyte Grid using the Grid component exported from the LyteNyte package.

    function MyGrid() {
      const ds = useClientDataSource({ data: myData });
    
      const [columns, setColumns] = useState<Grid.Column<GridSpec>[]>([
        { id: "name", name: "Name" },
        { id: "price", name: "Price", type: "number" },
      ]);
    
      return (
        <div className="ln-light ln-grid" style={{ height: 500 }}>
          <Grid<GridSpec> rowSource={ds} columns={columns} onColumnsChange={setColumns} rowHeight={40} />
        </div>
      );
    }
    

    Here we define the columns in the component as well. LyteNyte Grid columns require at a minimum an id property, which must be unique among all the columns. See the Columns Ref for more details.

Load References On Demand

Read a reference file only when the task requires it. Do not load all files upfront.

When the task involves…Load this file
Installing, licensing, CSS imports, CDN, watermark errorsrefs/installation.md
Grid setup, container sizing, reactivity, API ref, apiExtension, usePiece, headless mode, events system (cell/row/viewport events), row/column animations, suppressScrollFlash, viewportInitialWidth/viewportInitialHeightrefs/grid-core.md
TypeScript, GridSpec, renderer types, RowNode type guardsrefs/typescript.md
Columns — id/name/field, sizing, pinning, groups, header renderers, spanningrefs/columns.md
Rows — height, master-detail (row detail), full-width rows, row spanning, row drag, row banding, zebra striping, rowAlternateAttrrefs/rows.md
Row selection — checkboxes, SelectAll, linked vs isolated, controlled staterefs/row-selection.md
Client-side data — useClientDataSource, sort, filter, group, aggregation, pivot, add/delete rowsrefs/client-data-source.md
Server-side data — useServerDataSource, DataRequest/DataResponse, loading state, refreshrefs/server-data-source.md
Tree data — useTreeDataSource, nested objects, rowRootFn/rowChildrenFnrefs/tree-data-source.md
Infinite scroll or pagination on server datarefs/infinite-paginated-source.md
Cell renderers, tooltips, diff flashing, virtualization warning, cell range selection (cellSelectionMode, cellSelections, multi-range, clipboard)refs/cells.md
Cell editing — edit mode, validators, edit renderers, bulk editrefs/cell-editing.md
Filtering — text, number, date, set, quick search filter patternsrefs/filtering.md
Expression DSL — Evaluator, ExpressionEditor, expression filtersrefs/expressions.md
Pivoting — pivotMode, PivotModel, measures, grand totalsrefs/pivoting.md
Exporting data — CSV, Excel, Parquet, Arrow, clipboardrefs/export.md
Annotations — highlighting cells, cell notes, marching ants, custom overlays, annotations proprefs/annotations.md
UI components — SmartSelect, Menu, Popover, Dialog, PillManager, ColumnManager, TreeView, RowGroupCell, overlays, ViewportShadowsrefs/components.md
Theming — pre-built themes, data-ln-* attributes, CSS tokens, Tailwind, CSS Modules, Emotionrefs/theming.md
shadcn/ui — CLI install, ln-shadcn theme, using shadcn components as renderers/editors/filters, dark mode, cn utilityrefs/shadcn.md
Keyboard shortcuts, RTL, accessibility, React Compiler, bundling, security, versioningrefs/misc.md

Feature Availability & Reference Routing

Use this file first when deciding:

  1. whether the user needs Core or PRO
  2. which reference file to load next

Rules

  • Use PRO when any requested feature is PRO-only.
  • After deciding edition, load the most specific reference file listed below.
  • Do not load every reference file.

PRO-Only Features

User asks forEditionLoad
server-side data, server sorting/filtering/grouping, useServerDataSourcePROrefs/server-data-source.md
infinite scroll, paginated server rowsPROrefs/infinite-paginated-source.md
tree data, nested object rows, useTreeDataSourcePROrefs/tree-data-source.md
pivot tables, pivot mode, measures, grand totalsPROrefs/pivoting.md
expressions, expression filters, expression editorPROrefs/expressions.md
label filters, having filtersPROrefs/filtering.md
SmartSelect, PillManager, Menu, Dialog, TreeView, ColumnManager, RowGroupCell, SelectAllPROrefs/components.md
annotations, cell notes, marching ants, custom overlays, annotations propPROrefs/annotations.md

Core-Compatible Features

User asks forEditionLoad
install, license, watermark, package manager, CDNCore/PROrefs/installation.md
grid setup, reactivity, events, API extensions, headless mode, animations, scroll flash, initial viewportCore/PROrefs/grid-core.md
TypeScript, GridSpec, row node typesCore/PROrefs/typescript.md
columns, sizing, pinning, visibility, groups, headersCore/PROrefs/columns.md
row height, row pinning, row drag, full-width rows, master-detail, row banding, zebra stripingCore/PROrefs/rows.md
row selection, checkbox selection, linked/isolated selectionCore/PROrefs/row-selection.md
client data, sorting, filtering, grouping, aggregationCore/PROrefs/client-data-source.md
cell renderers, tooltips, diff flashing, cell/range selection, clipboardCore/PROrefs/cells.md
cell editing, validation, editors, bulk editCore/PROrefs/cell-editing.md
text/number/date/set/tree-set filters, quick searchCore/PROrefs/filtering.md
CSV, Excel, Parquet, Arrow, clipboard exportCore/PROrefs/export.md
themes, CSS tokens, Tailwind, CSS Modules, EmotionCore/PROrefs/theming.md
shadcn/ui setup or ln-shadcnCore/PROrefs/shadcn.md
keyboard, accessibility, RTL, React Compiler, bundling, securityCore/PROrefs/misc.md

Ambiguous User Requests

User saysInterpret asLoad
“advanced filter”check whether they mean set/tree-set filter or PRO expression/having filterrefs/filtering.md, maybe refs/expressions.md
“tree”could mean TreeView component or tree datarefs/components.md or refs/tree-data-source.md
“grouping”usually client row grouping unless server-side data is mentionedrefs/client-data-source.md
“pagination”usually server paginated rowsrefs/infinite-paginated-source.md
“context menu”prebuilt Menu componentrefs/components.md
“custom visibility panel”custom Core implementation or PRO ColumnManagerrefs/columns.md, maybe refs/components.md

Comments

Markdown supported