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

@lax-wp/datasheet-table

v0.1.1

Published

Spreadsheet-style dataset grid: Zustand data engine (undo/redo, hierarchy, formulas, validation, diff) plus the virtualized table UI, extracted from lax-web-portal.

Readme

@lax-wp/datasheet-table

Spreadsheet-style dataset grid extracted from lax-web-portal/src/features/dataset: the Zustand data engine (undo/redo, 3-level row hierarchy, column formulas, validation, diff, paste/fill, filters, search) plus the virtualized table UI, the read-only viewer, the filter row and the JSON tab.

Status: extraction in progress. The portal is still the source of truth; this package is being proven in Storybook before the portal switches to consuming it. Nothing was removed from the portal.

Quick start (local)

npm install
npm run storybook      # http://localhost:6007
npm test               # vitest, jsdom
npm run typecheck
npm run build          # dist/ (ES + CJS, one file per module, d.ts)

Using it in an app

import { DataSheetContainer, DatasheetProvider, addDatasheetTranslations } from '@lax-wp/datasheet-table';

addDatasheetTranslations(i18n); // once, after the host's i18n init

<DatasheetProvider isDarkMode={isDarkMode} masterData={masterDataAdapter} dynamicData={dynamicDataAdapter}>
  <DataSheetContainer ref={handleRef} source={{ headers, current, previous }} isEditMode enableJsonTab />
</DatasheetProvider>;

The host must also:

  • Tailwind: add node_modules/@lax-wp/datasheet-table/dist/**/*.js to content and use the same theme tokens as @lax-wp/design-system (primary-*, neutral-*, error-*, …). tailwind.config.js here is the reference.
  • Design-system shell: render the grid inside #layout-app-main-content-container (or #full-screen-container); the design-system Modal portals there. Give the grid a flex parent with min-h-0 so it can measure its scroll area.
  • Monaco (JSON tab): call monacoManager.configure({ paths: { vs: '/monaco-editor/min/vs' } }) once at startup, as the portal does. Storybook falls back to the CDN loader.
  • Adapters: the master data and dynamic column types talk to lax backends. Register an IMasterDataAdapter / IDynamicDataAdapter on DatasheetProvider (see src/stories/HostAdapters.stories.tsx for an in-memory example). Without one those two types are hidden from the data-type selector.

Peer dependencies mirror the design system's: React, antd, Zustand, Immer, TanStack Virtual, dnd-kit, dayjs, zod, i18next/react-i18next, react-toastify, framer-motion, lodash, MUI icons, country-flag-icons.

Layout

src/
├── index.ts            public barrel — the only import path for consumers
├── host/               DatasheetProvider, theme + adapter contracts, no-op adapters
├── shared/             constants/helpers copied from the portal (colors, currencies, formats, …)
├── i18n/               en.json (keys = English source strings) + addDatasheetTranslations
├── models/ constants/ store/ validation/ utils/ registry/ hooks/ components/   the grid, verbatim from the portal
├── __fixtures__/       tiny / medium / large datasets for stories and tests
├── stories/            Storybook
└── test-utils/         vitest setup, jsdom stubs, renderWithProviders

See CLAUDE.md for the extraction rules, the seams that differ from the portal, and how to re-sync.