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.
Try the live demo · Documentation · Comparison · Releases
- You build reports: try the live demo, then the six-step quick start.
- You run the services: one
docker runstarts the REST service and the MCP server: server in 5 minutes. - You use a running server: the REST service from curl or PowerShell, the MCP server from an AI client.
- You develop: put the report in your application or make reports from code: Embed pivotkit.
- 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.
- pivotkit-react: the React 18/19 report builder. The host provides React and ECharts.
npm install pivotkit-react react react-dom echarts - pivotkit-element: the report builder as the web component
<pivot-report>, for Angular, PHP, plain HTML and PowerShell Universal.npm install pivotkit-element - pivotkit-core: the engine in plain JavaScript, without UI.
npm install pivotkit-core - pivotkit-xlsx: a plugin that
reads Excel workbooks in the browser.
npm install pivotkit-xlsx - pivotkit-report: reports without a browser
as JSON, CSV, XLSX, SVG or HTML.
npm install pivotkit-report echarts - pivotkit-cli: the command line
pivotkit.npm install --global pivotkit-cli - pivotkit-server: the REST service,
also as a container image.
npm install --global pivotkit-server pivotkit-mcp - pivotkit-mcp: the MCP server,
over stdio or HTTP.
npx -y pivotkit-mcp
pivotkit-node is internal: the command line and the server share it.
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 fileThe 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/sourcesThe package READMEs are short npm pages that link to the documentation.
Start with these:
- CONTRIBUTING.md - how to set up, change, test and open a pull request.
- PRODUCT.md - what pivotkit is and is not.
- AGENTS.md - layout, commands and code rules. AI assistants start here.
- RELEASING.md - how maintainers release.
npm ci
npm run lint
npm run types
npm test
npm run playground # http://localhost:5173Each 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.
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.
