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

vueye-table

v3.0.0-rc.2

Published

A Vue framework for data tables and spreadsheets: a complete, themeable data table and grid, plus every layer beneath them.

Readme

vueye-table

A Vue framework for data, data tables, and spreadsheets.

vueye-table began as a single table component. Version 3 is a rewrite around one idea: a table is data plus state plus operations, and rendering is a separate concern. A framework-independent engine owns searching, filtering, sorting, pagination, selection, column visibility, editing, undo, clipboard, and export. Vue layers sit on top of it, and you pick the one that fits:

| Layer | Package | Use it when | | ------------------- | ----------------------- | ---------------------------------------------------------- | | Full UI | vueye-table | You want a complete table or spreadsheet in one tag. | | Styled components | @vueye-table/styled | You want the look, arranged your own way. | | Headless components | @vueye-table/headless | You want accessible behavior with your own markup and CSS. | | Vue composables | @vueye-table/vue | You want reactive state and nothing rendered. | | Engine | @vueye-table/core | You are outside Vue, on a server, or writing a binding. | | Nuxt module | @vueye-table/nuxt | You use Nuxt 4. |

Each layer depends only on the layers beneath it, and vueye-table re-exports all of them, so one install covers every level.

Status: 3.0.0-rc.2, published on npm's latest channel. This release candidate freezes the documented import paths, options, events and slot scopes for final application validation. Any necessary breaking correction needs another prerelease, an ADR and migration notes. It does not establish production readiness. See the 3.0 contract. The 2.x component lives on the legacy branch; see Upgrading from 2.x.

Install

pnpm add [email protected]

The exact version pins this release. pnpm add vueye-table follows latest; @beta remains on the last beta release. Vue 3.5 or newer is a peer dependency.

What 3.0 covers

  • Tables and spreadsheets: search, column filters, multi-column sorting, pagination, selection, column visibility, CSV/TSV export, and a spreadsheet grid with clipboard and undo.
  • Editing and validation: inline cell and row editing in VueyeTable, typed and custom editors, validation issues, dirty rows, revert, and a saved baseline you acknowledge.
  • Expansion and trees: detail rows, nested and lazy-loaded children, tree search that keeps matching branches.
  • Grouping and layout: nested group rows, aggregate headers or footers, column resizing, sticky columns and top/bottom row regions, including virtualized tables and grids.
  • Large data: opt-in row and column virtualization for tables and grids, and incremental streams, cursor loading, and cancellable sources.
  • Language and themes: every word shown or announced comes from messages, numbers and ordering follow locale, search ignores case and accents, and host design tokens win over the defaults.
  • Server data: manual mode hands searching, sorting and paging to your API.

Full table

<script setup lang="ts">
import "vueye-table/style.css";
import { ref } from "vue";
import { VueyeTable, defineColumns, type RowKey } from "vueye-table";

interface User {
  id: number;
  name: { first: string; last: string };
  age: number;
  city: string;
}

const users: User[] = [
  { id: 1, name: { first: "Ada", last: "Lovelace" }, age: 36, city: "London" },
  { id: 2, name: { first: "Alan", last: "Turing" }, age: 41, city: "Wilmslow" },
];

const columns = defineColumns<User>([
  { id: "name.first", header: "First name" },
  { id: "name.last", header: "Last name" },
  { id: "age", align: "end", format: (age) => `${age} years` },
  { id: "city" },
]);

const selected = ref<readonly RowKey[]>([]);
</script>

<template>
  <VueyeTable v-model:selected="selected" :data="users" :columns="columns" selectable striped>
    <template #cell.city="{ value }">
      <strong>{{ value }}</strong>
    </template>
  </VueyeTable>
</template>

Column ids are typed paths into your rows, so format above receives a number. Without columns, columns are inferred from the data.

The full components expose v-model bindings for page, pageSize, sorting, search, filters, hiddenColumns, selected, expanded, columnSizing, columnPinning, grouping, expandedGroups and rowPinning. Add manual and row-count to let a server search, sort, and page, with the table presenting whatever page it returns.

Use resizable-columns for resize handles and groupable for ordered grouping controls. aggregate-position="footer" moves group totals below their expanded leaves; row-pinning-controls enables pin actions without enabling editing. See grouping, column layout and row pinning for examples and model shapes.

Spreadsheet

<VueyeGrid v-model:data="lines" :columns="columns" column-letters />

Cells edit in place. Arrows, Tab, Home, and End move; Shift extends the range; Enter or typing starts an edit; Delete clears; and copy, cut, paste, undo, and redo behave like a spreadsheet application. Each edit emits a new array; the one you passed in is never mutated. Text is parsed by the column's type, and a value that cannot be read is refused and reported through edit-error.

Headless

<script setup lang="ts">
import { DataTableRoot, DataTablePagination, DataTableSearch, useDataTable } from "vueye-table";

const table = useDataTable({ data: users, columns });
</script>

<template>
  <DataTableRoot :table="table" as="div">
    <DataTableSearch />
    <article v-for="row in table.rows" :key="row.key">{{ row.getDisplay("name.first") }}</article>
    <DataTablePagination />
  </DataTableRoot>
</template>

Headless components render semantic, accessible markup (aria-sort, aria-selected, aria-rowindex, a polite live status, grid keyboard navigation) with data-* state attributes and no styles. Components expose slot props and data-* state; primitives with an as prop let you choose their element. Structural group and pinned-row composition retain native rows.

Engine

import { createTable } from "@vueye-table/core";

const table = createTable({ data: users, columns: [{ id: "age" }, { id: "city" }] });
table.search("lon");
table.toggleSort("age");
table.getSnapshot().rows; // the current page
table.exportRows(); // CSV of every filtered row

The state is plain serializable data, so it can be saved, restored, sent to a server, or kept in the URL.

Nuxt

export default defineNuxtConfig({
  modules: ["@vueye-table/nuxt"],
});

The module auto-imports <VueyeTable>, <VueyeGrid>, useDataTable, useDataGrid, and defineColumns, and adds the stylesheet. Set vueyeTable: { layers: true } to also register the headless and styled components.

Theming

The styled layer is driven by CSS custom properties on .vt-surface:

.vt-surface {
  --vt-accent: #0f766e;
  --vt-radius: 4px;
  --vt-font-size: 0.8125rem;
}

Dark colors follow prefers-color-scheme; theme="dark" or theme="light" forces one, and theme="inherit" declares no colors so the host's own tokens apply. The defaults have zero specificity, so your tokens always win. Density is compact, comfortable, or spacious.

Language

<VueyeTable :data="rows" :columns="columns" locale="fr" :messages="{ columns: 'Colonnes' }" />

Every word a table shows or announces comes from TableMessages; whatever you leave out keeps its English default. app.use(VueyeTablePlugin, { locale, messages }) sets them for the whole application. Arrow keys and chevrons mirror in right-to-left layouts.

Development

pnpm install
pnpm playground      # every layer, side by side
pnpm docs:dev        # the documentation site
pnpm test            # every Vitest project
pnpm check           # format, lint, types, tests with coverage, build, boundaries, packages
pnpm docs:sync       # sync current-release copy and the npm README from the package version

Architecture lives in ARCHITECTURE.md and decisions in docs/adr.

License

MIT