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

gridcue

v0.1.0

Published

Ask data grids in plain language: validated, previewable, undoable filter, sort, group, and column changes. Headless core, React, TanStack Table, Jev provider.

Readme

Ask a dense grid a plain question. See the view that answers it.

GridCue lets people use natural language to get the insight they need from complicated data, dense grids and tables. A request such as “taxable accounts over 10% in one position, grouped by advisor, biggest first” becomes a validated filter, sort, group and column change that the user previews and applies, with undo.

  • View-only. It never edits data.
  • Preview before apply. Ambiguity becomes a question, not a guess.
  • Rows never leave your app. The model gets the request text, the values read from it, and the columns and values you expose. It only picks among closed choices; code builds the plan.
  • Headless and grid-agnostic. A framework-free core, React bindings, TanStack Table and in-memory adapters, and a plain-CSS command bar.

Try it with no key

With TanStack Table v9 and React 19:

npm i gridcue @tanstack/react-table
import {
  type ColumnDef, type RowData, columnFilteringFeature, columnGroupingFeature, columnOrderingFeature, columnVisibilityFeature,
  createFilteredRowModel, createGroupedRowModel, createSortedRowModel, rowSortingFeature, tableFeatures, useTable,
} from "@tanstack/react-table";
import { createGridCue } from "gridcue";
import { createMockProvider } from "gridcue/mock";
import { GridCueBar } from "gridcue/react";
import { createTanStackAdapter, gridcueFilterFn, schemaFromTanStack } from "gridcue/tanstack-table";
import { useState } from "react";
import "gridcue/styles.css";

const features = tableFeatures({
  columnFilteringFeature, rowSortingFeature, columnGroupingFeature, columnVisibilityFeature, columnOrderingFeature,
  filteredRowModel: createFilteredRowModel(),
  sortedRowModel: createSortedRowModel(),
  groupedRowModel: createGroupedRowModel(),
});

export function Grid<Row extends RowData>({ columns, data }: { columns: ColumnDef<typeof features, Row>[]; data: Row[] }) {
  const table = useTable({ features, columns, data, defaultColumn: { filterFn: gridcueFilterFn } });
  // Create the controller once: useTable returns a new object whenever the table's state changes.
  const [cue] = useState(() => {
    const schema = schemaFromTanStack(table);
    return createGridCue({ schema, adapter: createTanStackAdapter({ schema, table }), provider: createMockProvider() });
  });
  return (
    <>
      <GridCueBar controller={cue} />
      {/* render the table as you already do */}
    </>
  );
}

The Mock Provider runs in the browser, with no server and no account. Not using TanStack Table? The Rows Adapter in gridcue works over any array.

Turn on Jev

Jev runs behind an endpoint you control, so your key never reaches the browser:

npm i @typesafe-ai/sdk
// A server route, such as app/api/gridcue/route.ts in Next.js
import { createGridCueHandler, createJevProvider } from "gridcue/server";

export const POST = createGridCueHandler({ provider: createJevProvider({ apiKey: process.env.JEV_API_KEY }) });

In the browser, swap createMockProvider() for createRemoteProvider({ endpoint: "/api/gridcue" }) from gridcue. Put the endpoint behind your app's auth and rate limits.

Using a coding assistant? npx skills add JH3lou/GridCue --skill gridcue teaches it to set GridCue up safely. See Set up with an AI assistant.

Entries

| Entry | What it holds | | --- | --- | | gridcue | The Controller, schema, protocol, Rows Adapter, and remote provider | | gridcue/react | useGridCue and the plain-CSS GridCueBar | | gridcue/tanstack-table | The TanStack Table adapter and schema inference | | gridcue/server | The Server Handler, Node helper, and Jev provider (server only) | | gridcue/mock | The keyless Mock Provider |

Docs, a live demo, and the shadcn components: gridcue.dev. Source: GitHub.

GridCue is an independent open-source project, not affiliated with or endorsed by TypeSafe. MIT licensed.