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

@nqlib/nqgrid

v0.2.0

Published

Headless TanStack table engine helpers, layout tokens, and demo fixtures — compose UI with @nqlib/nqui

Readme

@nqlib/nqgrid

Headless TanStack Table engine, nqgrid-owned grid/table DOM (@nqlib/nqgrid/grid), optional rich column schema, demo fixtures, and a configurator import planner.

nqui is primitives onlyScrollArea, Button, Input, etc. Do not use nqui Table / DataTable; nqgrid engine + grid replace them. See docs/composition-architecture.md.

Install

pnpm add @nqlib/nqgrid @tanstack/react-table react react-dom

Subpath exports

| Import | Purpose | |--------|---------| | @nqlib/nqgrid | Main barrel (engine + components used by demos) | | @nqlib/nqgrid/styles | Tailwind class tokens for table shells and scroll | | @nqlib/nqgrid/engine | Table engine utilities (SSOT for behavior) | | @nqlib/nqgrid/grid | Table/grid DOM primitives (GridTable, …) — replaces nqui Table | | @nqlib/nqgrid/sheet | Virtual sheet / viewport | | @nqlib/nqgrid/spreadsheet | Spreadsheet-style commands / formats | | @nqlib/nqgrid/advanced | Rich schema, buildRichColumnFromDef, formatters | | @nqlib/nqgrid/fixtures | Mock datasets for examples | | @nqlib/nqgrid/configurator | Typed import plan + feature flags |

Documentation

Imports for new products: use @nqlib/nqgrid/engine (+ optional @nqlib/nqgrid/tokens). Fork playground lib/ for look and pinning — do not rely on the main barrel for UI. Pinning in apps: copy playground-row-index-gutter.ts (pinPlaygroundCell only — no direct getPinnedTableCellStickyStyle in JSX).

Default spreadsheet tables use virtual-data look + table-selection interactions (see .cursor/README.md). Legacy dashboard demos (portfolio / flights) use card ScrollArea shells. Agent skills live under .cursor/.

Playground & Cursor skills

Reference implementations live under apps/playground/src/demos/. To rebuild the same table every time:

  1. .cursor/skills/nqgrid-playground-starter/SKILL.mdstart here: canonical TanStack table (virtual-data design, select column, row/column drag, resize, virtualizer).
  2. .cursor/skills/nqgrid-table-design/SKILL.md — tokens; card-table variant when spec names portfolio/flights.
  3. .cursor/skills/consumer-table-design/SKILL.md — pinned-column geometry (pipeline reference).

Copy those skill folders to ~/.cursor/skills/ if you want them globally.

Playground: @nqlib/nqui source

The playground depends on @nqlib/nqui for all UI (Table, ScrollArea, Button, …). Default is the latest published version in apps/playground/package.json (currently ^0.6.2).

| Mode | Command | |------|---------| | Published (default) | pnpm dev from repo root, or pnpm dev in apps/playground | | Local nqui dist (Vite alias) | USE_LOCAL_NQUI=true pnpm dev — expects sibling ../nqui with dist/ after npm run build:lib | | Custom nqui path | NQUI_DIR=/path/to/nqui USE_LOCAL_NQUI=true pnpm dev | | npm link workflow | pnpm --filter nqgrid-playground toggle-nqui with USE_LOCAL_NQUI=true / false |

Check what is active: pnpm --filter nqgrid-playground nqui:status.

Scripts

pnpm run build    # tsup → dist/
pnpm test         # vitest
pnpm run lint     # eslint
make login        # npm web login
make verify       # pre-publish gate
make publish      # verify + publish to npm

See .cursor/commands/publish.md for the full release checklist.

License

MIT — see package.json.