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

rowpine

v1.0.4

Published

Pivot tables and Excel and PDF export for TanStack Table and shadcn/ui data tables.

Readme

rowpine

Pivot tables, a pivot designer, and Excel and PDF export for TanStack Table and shadcn/ui data tables. Works with TanStack Table v8 and v9.

Website · Demos · Docs · Pricing

The Rowpine pivot designer with regions and countries down the side and quarters across

Install

npm install rowpine
npx shadcn add @rowpine/export-menu
npx shadcn add @rowpine/pivot

This package is the engine: the file writers, the pivot and the license check. The two shadcn add lines copy the export menu, the pivot table and the pivot designer into your project as source.

Export

Pass the TanStack table you already render. The file matches the screen: visible columns in their order, every filtered row on every page, the current sort, pinned columns frozen, groups as Excel outline rows with SUBTOTAL formulas, typed numbers and dates.

import { exportCsv, exportPdf, exportXlsx, setLicenseKey } from "rowpine"

setLicenseKey(import.meta.env.VITE_ROWPINE_KEY)

await exportXlsx(table, { fileName: "orders" })
await exportPdf(table, { fileName: "orders", title: "Orders" })
await exportCsv(table, { fileName: "orders" }) // free, no key needed

An exported sheet with a group total cell selected showing a SUBTOTAL formula

rows: "all" | "page" | "selected" picks the rows (default "all": every filtered row on every page). rowStyle styles whole rows. download: false returns the Blob without saving it.

Per-column settings go in meta.rowpine:

{
  accessorKey: "amount",
  header: "Amount",
  aggregationFn: "sum",
  meta: {
    rowpine: {
      numFmt: '"$"#,##0.00',                    // Excel number format
      format: (v) => money.format(v as number), // PDF text
      cellStyle: (v) => ((v as number) > 5000 ? { fill: "#dcfce7" } : undefined),
    },
  },
}

Also: header, width, align, exclude.

PDF

Page size and orientation, a title, headline numbers, a watermark, group rows with their totals, the header row on every page. Wide tables shrink and then split so every column prints.

A PDF report with a title, two headline numbers, grouped rows and a DRAFT watermark

Pivot

import { createPivot, exportXlsx, pivotRowStyle } from "rowpine"

const pivot = createPivot(orders, {
  rows: ["region", "country"],
  cols: ["quarter"],
  values: [{ field: "amount", agg: "sum", label: "Amount" }],
})

pivot.data     // rows nested through subRows, for useTable / useReactTable
pivot.columns  // column definitions with accessor functions
await exportXlsx(pivot.table, { rowStyle: pivotRowStyle })

Aggregations: sum, avg, min, max, count, countDistinct, first, last, or a function. Subtotals and grand totals are on by default (rowSubtotals, grandTotalRow, grandTotalCol). The pivot designer's layout rules are exported too (addToWell, setAggregatorAt, pivotFromLayout and more), so you can drive a layout from your own UI.

Demos

Ten demos play a short story on the live component and end with the exported file. Open the demos.

The Orders to Excel demo ending with its exported file

License key

CSV export is free. Excel, PDF and pivots need a key; without one everything still runs, and Excel and PDF files carry one notice line. A key covers every version released during its year of updates, for good. Keys are checked in the browser, with no call to a server. Pricing.

Commercial license: see LICENSE.md or https://rowpine.com/license.html.