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

@nu-grid/nuxt

v0.3.1

Published

A powerful data grid component for Nuxt with virtualization, cell editing, and TanStack Table integration

Readme

A powerful, feature-rich data grid component for Nuxt applications with virtualization, inline editing, and TanStack Table integration.

Features

  • High Performance - Virtualized rendering handles thousands of rows smoothly
  • Inline Editing - Edit cells directly with built-in validation support
  • Row Grouping - Group data by columns with expandable/collapsible groups
  • Keyboard Navigation - Excel-like navigation and editing experience
  • Theming - Full customization with Nuxt UI design system integration
  • TanStack Table - Built on TanStack Table for sorting, filtering, and pagination

Built-in Cell Types

  • Text & Textarea
  • Number & Currency
  • Date (with date picker)
  • Boolean (checkbox)
  • Selection (dropdown)
  • Rating (star rating)
  • Lookup (autocomplete/search)
  • Action Menu

Additional Capabilities

  • Column resizing, pinning, and reordering
  • Row selection (single and multi-select)
  • Excel export
  • State persistence (save/restore column widths, sorting, filters)
  • Custom cell type support
  • Comprehensive event system

Installation

# Using pnpm
pnpm add @nu-grid/nuxt @nuxt/ui @vueuse/nuxt

# Using npm
npm install @nu-grid/nuxt @nuxt/ui @vueuse/nuxt

# Using yarn
yarn add @nu-grid/nuxt @nuxt/ui @vueuse/nuxt

Add @nu-grid/nuxt to your nuxt.config.ts:

export default defineNuxtConfig({
  modules: ['@nuxt/ui', '@nu-grid/nuxt'],
})

CSS Setup

NuGrid requires its CSS to be imported in your application's main stylesheet. This ensures Tailwind scans the component classes for proper theming and focus styling.

Add the following to your main.css (or equivalent):

@import "tailwindcss";
@import "@nuxt/ui";
@import "@nu-grid/nuxt/css";

Quick Start

<script setup lang="ts">
import type { NuGridColumn } from '@nu-grid/nuxt/types'

interface Person {
  id: number
  name: string
  email: string
  age: number
}

const columns: NuGridColumn<Person>[] = [
  { accessorKey: 'name', header: 'Name' },
  { accessorKey: 'email', header: 'Email' },
  { accessorKey: 'age', header: 'Age', cellType: 'number' }
]

const data = ref<Person[]>([
  { id: 1, name: 'John Doe', email: '[email protected]', age: 32 },
  { id: 2, name: 'Jane Smith', email: '[email protected]', age: 28 },
  { id: 3, name: 'Bob Wilson', email: '[email protected]', age: 45 }
])
</script>

<template>
  <NuGrid :columns="columns" :data="data" />
</template>

Enabling Editing

<script setup lang="ts">
const columns: NuGridColumn<Person>[] = [
  { accessorKey: 'name', header: 'Name', editable: true },
  { accessorKey: 'email', header: 'Email', editable: true },
  {
    accessorKey: 'age',
    header: 'Age',
    cellType: 'number',
    editable: true
  }
]
</script>

<template>
  <NuGrid
    :columns="columns"
    :data="data"
    editable
    @cell-value-changed="handleChange"
  />
</template>

With Virtualization

For large datasets, enable virtualization for optimal performance:

<template>
  <NuGrid
    :columns="columns"
    :data="largeDataset"
    virtualized
    :row-height="40"
    style="height: 600px"
  />
</template>

Row Grouping

<template>
  <NuGridGroup
    :columns="columns"
    :data="data"
    :group-by="['department', 'status']"
  />
</template>

Props

| Prop | Type | Default | Description | | -------------- | ----------------------------------- | ------------- | -------------------------- | | columns | NuGridColumn<T>[] | required | Column definitions | | data | T[] | required | Row data array | | editable | boolean | false | Enable inline editing | | virtualized | boolean | false | Enable virtualization | | rowHeight | number | 40 | Row height in pixels | | rowSelection | boolean \| 'single' \| 'multiple' | false | Enable row selection | | theme | NuGridTheme | default theme | Custom theme configuration |

Events

| Event | Payload | Description | | ----------------------- | ------------------------------------- | ----------------------- | | cell-click | { row, column, value } | Cell was clicked | | cell-double-click | { row, column, value } | Cell was double-clicked | | cell-value-changed | { row, column, oldValue, newValue } | Cell value was edited | | row-selection-changed | { selectedRows } | Row selection changed | | validation-error | { row, column, error } | Validation failed |

See EVENTS.md for a complete event reference.

Development

# Install dependencies
pnpm install

# Generate type stubs and prepare
pnpm run dev:prepare

# Start development server with playground
pnpm run dev

# Start documentation site
pnpm run docs

# Run tests
pnpm run test

# Run tests in watch mode
pnpm run test:watch

# Run E2E tests
pnpm run test:e2e

# Type check
pnpm run test:types

# Lint
pnpm run lint

# Format
pnpm run format

# Build for production
pnpm run prepack

# Release
pnpm run release

Project Structure

src/
├── module.ts              # Nuxt module entry
└── runtime/
    ├── components/        # Vue components
    ├── composables/       # Vue composables
    ├── cell-types/        # Built-in cell types
    ├── types/             # TypeScript definitions
    └── themes/            # Theme configurations

docs/                      # Documentation site
playgrounds/nuxt/          # Development playground
test/                      # Unit tests
e2e/                       # End-to-end tests

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting a pull request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT