Skip to content
eizedevPublic

About

Excel's PivotTable for web apps and the command line: load your own file, drag fields, filter, chart, export to Excel; views are safe JSON that a CLI, REST service or MCP server renders again. React, web component, engine, CLI, REST, MCP, container image. MIT.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

388 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pivotkit

pivotkit is Excel's PivotTable for web applications and the command line. People load their data, build a report by dragging fields and take it to Excel. The same report renders again in CI.

The pivot report: average temperature of 14 cities by month as a colour scale

Try the live demo · Documentation · Comparison · Releases

CI npm MIT

Start here

What pivotkit does

  • Table and Chart are tabs with their own settings. Charts zoom, stack to 100 % and draw reference lines.
  • People drop their own CSV, JSON or Excel file onto the report. pivotkit uploads nothing: load your own data.
  • The export to Excel keeps the layout. The rows behind the report download as CSV or JSON.
  • A view is safe JSON that cannot run code. The command line renders the same report from it, also in CI.
  • A REST service and an MCP server make reports from live data. A model gets rows only where the policy shows them: what reaches an AI model.

Every feature: feature list.

The report in the browser computes on the rows the host passes and fetches no data. The services fetch data from the sources you configure. pivotkit sends nothing home: network requests. Security · Security policy · Measured performance

The report runs in Chrome and Edge from 111, Firefox from 113 and Safari from 16.4: browser support. The engine, the command line and the services run in Node 24 or later. What works with pivotkit lists sign-in providers, MCP clients, data sources and platforms, and how each was tested.

Packages

pivotkit-node is internal: the command line and the server share it.

Example

The report builder in React. Try it in the playground:

import { PivotReport } from "pivotkit-react";
import "pivotkit-react/styles.css";

<PivotReport data={rows} defaultView={{ rows: ["Region"], values: [{ field: "Sales", agg: "sum" }] }} onViewChange={save} />

The web component and the engine without UI: Embed pivotkit.

The command line, on example files it writes itself:

npx pivotkit-cli example                 # sales.csv and two views
npx pivotkit-cli render sales.pivotkit.json --data sales.csv -o sales.html
npx pivotkit-cli render sales.csv --rows Region --values sum:Revenue -o by-region.html   # no view file

The REST service and the MCP server in a container, with example data. The server makes a token at its first start. Step by step: server in 5 minutes.

docker run -d --name pivotkit -p 127.0.0.1:3333:3333 -v pivotkit:/var/lib/pivotkit ghcr.io/eizedev/pivotkit:0.4.0
curl -H "Authorization: Bearer $(docker exec pivotkit pivotkit-server token show admin)" http://127.0.0.1:3333/api/v1/sources

The package READMEs are short npm pages that link to the documentation.

Development

Start with these:

npm ci
npm run lint
npm run types
npm test
npm run playground   # http://localhost:5173

Releases and changelogs

Each package has releases of its own. The GitHub releases list them with their notes. Each package keeps a CHANGELOG.md: core, react, element, xlsx, report, node, cli, server, mcp. Before you update, read Upgrading. Versioning says which releases may break things.

License

MIT. pivotkit draws its charts with Apache ECharts, licensed Apache-2.0.

The icon, header and social preview in assets/ and docs/assets/icon.svg come from eizedev/brand. Their licence is CC BY 4.0.

The screenshot shows weather data by Open-Meteo.com (CC BY 4.0). It contains modified Copernicus Climate Change Service information 2023 (ERA5) and 2019 (ERA5-Land), and ECMWF IFS data. The playground's real data sets keep the licences of their sources. examples/playground/data/SOURCES.md lists them.

About

Excel's PivotTable for web apps and the command line: load your own file, drag fields, filter, chart, export to Excel; views are safe JSON that a CLI, REST service or MCP server renders again. React, web component, engine, CLI, REST, MCP, container image. MIT.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages