Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ its first start. Step by step:

```bash
docker run -d --name pivotkit -p 127.0.0.1:3333:3333 \
-v pivotkit:/var/lib/pivotkit ghcr.io/eizedev/pivotkit:0.5.0
-v pivotkit:/var/lib/pivotkit ghcr.io/eizedev/pivotkit:0.6.0
curl -H "Authorization: Bearer $(docker exec pivotkit pivotkit-server token show admin)" \
http://127.0.0.1:3333/api/v1/sources
```
Expand Down
2 changes: 1 addition & 1 deletion docker/compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# release of pivotkit-server.
services:
pivotkit:
image: ghcr.io/eizedev/pivotkit:${PIVOTKIT_VERSION:?set PIVOTKIT_VERSION to a pivotkit-server release, e.g. 0.5.0}
image: ghcr.io/eizedev/pivotkit:${PIVOTKIT_VERSION:?set PIVOTKIT_VERSION to a pivotkit-server release, e.g. 0.6.0}
read_only: true
user: "10001:10001"
cap_drop: [ALL]
Expand Down
2 changes: 1 addition & 1 deletion docker/compose.secrets.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# pivotkit-server.
services:
pivotkit:
image: ghcr.io/eizedev/pivotkit:${PIVOTKIT_VERSION:?set PIVOTKIT_VERSION to a pivotkit-server release, e.g. 0.5.0}
image: ghcr.io/eizedev/pivotkit:${PIVOTKIT_VERSION:?set PIVOTKIT_VERSION to a pivotkit-server release, e.g. 0.6.0}
read_only: true
user: "10001:10001"
cap_drop: [ALL]
Expand Down
2 changes: 1 addition & 1 deletion docker/kubernetes.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# service and the MCP server of the container image in the namespace pivotkit, one replica, the data
# on a ReadWriteMany volume that a CronJob fills, the state (the token and keys the server makes at
# its first start, and the reports) on a volume of its own, an Ingress, and NetworkPolicies. Before applying it, replace:
# - <version> with a release of pivotkit-server (e.g. 0.5.0), or a digest;
# - <version> with a release of pivotkit-server (e.g. 0.6.0), or a digest;
# - reports.example.com with the host name clients use;
# - the CronJob's SOURCE_URL with where your data comes from, and the addresses of that host and
# of your cluster DNS in the NetworkPolicies;
Expand Down
8 changes: 4 additions & 4 deletions docs/compare.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ project's own docs name.

| | Licence | Latest release | Where the pivot is computed | Rows its docs name | Frameworks | Excel (.xlsx) export |
| --- | --- | --- | --- | --- | --- | --- |
| **pivotkit** | MIT | pivotkit-core 0.10.0 on 2026-11-24 | JavaScript on the page; the engine also in Node | [Measured up to 1,000,000](concepts/limits.md#measured-in-the-browser) (Apple M4, 16 GB) | React 18 and 19, web component, Node | [Native, of the pivoted view](use/export.md) |
| **pivotkit** | MIT | pivotkit-core 0.11.0 on 2026-11-26 | JavaScript on the page; the engine also in Node | [Measured up to 1,000,000](concepts/limits.md#measured-in-the-browser) (Apple M4, 16 GB) | React 18 and 19, web component, Node | [Native, of the pivoted view](use/export.md) |
| [Perspective](https://perspective-dev.github.io/) | [Apache-2.0](https://github.com/perspective-dev/perspective/blob/master/LICENSE.md) | [5.9.1 on 2026-11-12](https://github.com/perspective-dev/perspective/releases/tag/v5.9.1) (`@perspective-dev/*`) | [WebAssembly in a Web Worker, or on a server; also SQL engines](https://perspective-dev.github.io/guide/use_cases/large_datasets.md) | ["Millions of rows is routine; tens of millions is practical for narrow numeric tables"](https://perspective-dev.github.io/guide/use_cases/large_datasets.md) | Web component, React, Python, Node, Rust | [None built in](https://perspective-dev.github.io/guide/FAQ.md); CSV, Arrow, HTML |
| [Graphic Walker](https://docs.kanaries.net/graphic-walker) | [Apache-2.0](https://github.com/Kanaries/graphic-walker/blob/main/LICENSE) | [0.6.0 on 2026-11-12](https://github.com/Kanaries/graphic-walker/releases/tag/v0.6.0) | [Web workers; DuckDB WASM or your server optional](https://docs.kanaries.net/graphic-walker/guides/computation) | [100K-1M "Usable", above 1M on a server](https://docs.kanaries.net/graphic-walker/faq) | React 19, plain JS mount functions | Not found; [SVG, PNG](https://docs.kanaries.net/graphic-walker/guides/chart-export), CSV |
| [PivotTable.js](https://pivottable.js.org/) / [react-pivottable](https://github.com/plotly/react-pivottable) | MIT | [2.23.0 on 2018-11-04](https://github.com/nicolaskruchten/pivottable/releases/tag/v2.23.0) / [0.11.1 on 2026-03-13](https://github.com/plotly/react-pivottable/releases/tag/v0.11.1) | JavaScript in the browser | ["up to around a hundred thousand records"](https://github.com/nicolaskruchten/pivottable#readme) | jQuery and jQuery UI / React | Not found; TSV renderer; [open request](https://github.com/plotly/react-pivottable/issues/168) |
Expand Down Expand Up @@ -124,10 +124,10 @@ project's own docs name.
each column's role. Top N and an Excel export were not found in its docs.
- **Size**: PivotTable.js's core is 6.3 KB gzip by its README, without charts. Graphic Walker's FAQ
names about 1.5 MB minified, roughly 400 KB gzip, with Vega-Lite. pivotkit's web component loads:
- first: about 182 KiB gzip, with React inside
- on the first chart: the chart's code, about 259 KiB gzip, ECharts with it
- first: about 180 KiB gzip, with React inside
- on the first chart: the chart's code, about 262 KiB gzip, ECharts with it

Measured with `npm run size -w pivotkit-element` on 2026-11-24. See
Measured with `npm run size -w pivotkit-element` on CI's official Node 24 build on 2026-11-26. See
[bundle size](reference/element.md#bundle-size).

- **Maturity and support**: AG Grid, Flexmonster and WebDataRocks are commercial products with
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ description: Run pivotkit-server with the REST service and the MCP server on Kub
This page runs the [container image](../reference/container.md) on Kubernetes. One Deployment
serves the [REST service](../reference/rest.md) at `/api/v1` and the [MCP server](../reference/mcp.md)
at `/mcp` on port 3333, from one configuration file. The example manifest
[docker/kubernetes.example.yaml](https://github.com/eizedev/pivotkit/blob/pivotkit-server@0.5.0/docker/kubernetes.example.yaml)
[docker/kubernetes.example.yaml](https://github.com/eizedev/pivotkit/blob/pivotkit-server@0.6.0/docker/kubernetes.example.yaml)
holds every part shown below. The sections explain each one.

## Set it up { #setup }

1. Download the manifest:

```bash
curl -fsSLO https://raw.githubusercontent.com/eizedev/pivotkit/pivotkit-server@0.5.0/docker/kubernetes.example.yaml
curl -fsSLO https://raw.githubusercontent.com/eizedev/pivotkit/pivotkit-server@0.6.0/docker/kubernetes.example.yaml
```

2. Edit your copy. Always set these:
Expand Down Expand Up @@ -469,7 +469,7 @@ pod stops before the new one starts.

## The whole manifest { #manifest }

[docker/kubernetes.example.yaml](https://github.com/eizedev/pivotkit/blob/pivotkit-server@0.5.0/docker/kubernetes.example.yaml)
[docker/kubernetes.example.yaml](https://github.com/eizedev/pivotkit/blob/pivotkit-server@0.6.0/docker/kubernetes.example.yaml)
holds, in this order:

- the Namespace
Expand Down
20 changes: 10 additions & 10 deletions docs/getting-started/server-in-5-minutes.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You need only two things:
## 1. Start it { #start }

```bash
docker run -d --name pivotkit -p 127.0.0.1:3333:3333 -v pivotkit:/var/lib/pivotkit ghcr.io/eizedev/pivotkit:0.5.0
docker run -d --name pivotkit -p 127.0.0.1:3333:3333 -v pivotkit:/var/lib/pivotkit ghcr.io/eizedev/pivotkit:0.6.0
```

The volume `pivotkit` keeps what the server makes: the token `admin`, the key of the download links
Expand Down Expand Up @@ -104,7 +104,7 @@ Start the container again with both mounted. The same volume keeps the token:
```bash
docker rm -f pivotkit
docker run -d --name pivotkit -p 127.0.0.1:3333:3333 -v pivotkit:/var/lib/pivotkit \
-v "$PWD/data:/data:ro" -v "$PWD/pivotkit.json:/config/pivotkit.json:ro" ghcr.io/eizedev/pivotkit:0.5.0
-v "$PWD/data:/data:ro" -v "$PWD/pivotkit.json:/config/pivotkit.json:ro" ghcr.io/eizedev/pivotkit:0.6.0
```

- The user 10001 runs the server. It must be able to read the files. `chmod 0644` gives it that.
Expand All @@ -123,18 +123,18 @@ The same setup as a Compose project. Download the two example files of this rele

```bash
mkdir pivotkit && cd pivotkit && mkdir data
curl -fsSL -o compose.yml https://raw.githubusercontent.com/eizedev/pivotkit/pivotkit-server@0.5.0/docker/compose.example.yml
curl -fsSL -o pivotkit.json https://raw.githubusercontent.com/eizedev/pivotkit/pivotkit-server@0.5.0/docker/pivotkit.example.json
export PIVOTKIT_VERSION=0.5.0
curl -fsSL -o compose.yml https://raw.githubusercontent.com/eizedev/pivotkit/pivotkit-server@0.6.0/docker/compose.example.yml
curl -fsSL -o pivotkit.json https://raw.githubusercontent.com/eizedev/pivotkit/pivotkit-server@0.6.0/docker/pivotkit.example.json
export PIVOTKIT_VERSION=0.6.0
```

=== "PowerShell"

```powershell
mkdir pivotkit; cd pivotkit; mkdir data
Invoke-WebRequest -OutFile compose.yml https://raw.githubusercontent.com/eizedev/pivotkit/pivotkit-server@0.5.0/docker/compose.example.yml
Invoke-WebRequest -OutFile pivotkit.json https://raw.githubusercontent.com/eizedev/pivotkit/pivotkit-server@0.5.0/docker/pivotkit.example.json
$env:PIVOTKIT_VERSION = "0.5.0"
Invoke-WebRequest -OutFile compose.yml https://raw.githubusercontent.com/eizedev/pivotkit/pivotkit-server@0.6.0/docker/compose.example.yml
Invoke-WebRequest -OutFile pivotkit.json https://raw.githubusercontent.com/eizedev/pivotkit/pivotkit-server@0.6.0/docker/pivotkit.example.json
$env:PIVOTKIT_VERSION = "0.6.0"
```

Put your files into `data/`. Name them in `pivotkit.json`. Then start it and read the token:
Expand All @@ -147,8 +147,8 @@ docker compose exec pivotkit pivotkit-server token show admin
Make `data/` and `pivotkit.json` before the first `up`. Docker makes a missing mount source as an
empty directory, owned by root. `pivotkit.json` would then be a directory, and the server does not
start. Step 3 then names your source and fields instead of `example` and `Revenue`. The files are
[compose.example.yml](https://github.com/eizedev/pivotkit/blob/pivotkit-server@0.5.0/docker/compose.example.yml)
and [pivotkit.example.json](https://github.com/eizedev/pivotkit/blob/pivotkit-server@0.5.0/docker/pivotkit.example.json).
[compose.example.yml](https://github.com/eizedev/pivotkit/blob/pivotkit-server@0.6.0/docker/compose.example.yml)
and [pivotkit.example.json](https://github.com/eizedev/pivotkit/blob/pivotkit-server@0.6.0/docker/pivotkit.example.json).

## What to know { #know }

Expand Down
40 changes: 8 additions & 32 deletions docs/getting-started/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,52 +113,28 @@ claude plugin update pivotkit-mcp@pivotkit

### From 0.10 to 0.11 { #from-0-10 }

The next release, on `main` now. The table lists the changes that need an action.
pivotkit-server and pivotkit-mcp move from 0.5 to 0.6 with this release, pivotkit-cli from 0.6 to
0.7 and pivotkit-node from 0.1 to 0.2. The table lists the changes that need an action. The
changelogs list changes of texts, of the layout, and new options.

| Change | Applies to you when | Action |
| --- | --- | --- |
| **Breaking:** a key file that starts with a UTF-8 byte order mark is refused | a key's `{ "file" }` (`output.downloads.key`, `audit.key`, a backend's or the upload store's secret) starts with one, as Windows PowerShell 5.1's `-Encoding UTF8` writes it | save the file as UTF-8 without the mark. `check-config` names the file. Download links made with the old key stop working, and audit hashes change |
| **Breaking:** a key file that starts with a UTF-8 byte order mark is refused | a key's `{ "file" }` (`output.downloads.key`, `audit.key`, a backend's sign-in, the upload store's headers, the download sign-in's client secret) starts with one, as Windows PowerShell 5.1's `-Encoding UTF8` writes it | save the file as UTF-8 without the mark. `check-config` names the file. Download links made with the old key stop working, and audit hashes change |
| A rows request that finds every place taken waits up to `rest.records.waitMs` (default 5 s) for one before 503 `BUSY` | a proxy or load balancer in front of the server ends this route's requests sooner than the route's time plus the wait | raise the proxy's time limit for `POST /api/v1/sources/records` by `waitMs`, or set `rest.records.waitMs: 0` for the old behavior. See [records](../reference/records.md) |
| A backend's sign-in and `output.upload`'s headers read `{ "env" }` secrets from the `env` the host passes | a host passes its own `env` to `createContext` or `serve()` without those variables | add the variables to that `env`. The start warns when a backend's sign-in cannot read its secret |
| The report's corners and type icons: `--pk-radius` is 8 px (was 10 px), chips take `--pk-radius-sm`, and `--pk-type-string`, `--pk-type-number`, `--pk-type-date` and `--pk-type-boolean` default to `--pk-muted` (were one colour each) | a host sets `--pk-radius` or relies on coloured type icons, such as a theme that maps its own colours to these tokens | set `--pk-radius` or the `--pk-type-*` tokens yourself. See [theming](../reference/theming.md#tokens) |

### From 0.9 to 0.10 { #from-0-9 }

pivotkit-server and pivotkit-mcp move from 0.4 to 0.5 with this release, pivotkit-cli from 0.5 to
0.6. The table lists the changes that need an action. The changelogs list changes of texts, of the
layout, and new options.

| Change | Applies to you when | Action |
| --- | --- | --- |
| **Breaking:** [pivotkit-server no longer brings pivotkit-cli](#server-without-cli) | you installed pivotkit-server from npm and run `pivotkit-server cli` | install pivotkit-cli beside it |
| **Breaking:** two inputs where the CLI read one | a script runs `pivotkit render <view> --link <url>`, or `pivotkit describe <data> --data <other>` | keep the input you mean: the view or `--link`; the data to describe, or a view with `--data` |
| **Breaking:** the label `settingsShort` is gone | your `labels` set `settingsShort` | remove it. On a phone the settings button shows its icon only, named by `tableSettings` or `chartSettings` |
| **Breaking:** the theme token `--pk-knob` is gone | your page or `tokens` set `--pk-knob` | remove it; nothing used it |
| **Breaking:** the CLI's `--strict` refuses views with a dropped setting | a script runs `pivotkit render` or `validate` with `--strict` on a view with a switch that is not `true` or `false`, a section that is not an object, or an unknown sort `order` or "show as" `axis` | fix the setting the warning names, or leave out `--strict` |
| **Breaking:** `render` checks the kind of its options | your code passes pivotkit-report's `render` a `tableCells` as text or with a fraction (`"100"`, `10.5`), or a `title`, `description`, `source`, `labels` or `texts` of another kind | pass a whole number (or `Infinity`), texts and objects; `null` still means "not given" |
| **Breaking:** wrong arguments throw `PivotkitError` | your code catches `TypeError` from pivotkit-core's `toViewFile` (a view that is no object), `viewFromLayout` (a filter with a cycle or a BigInt) or `readFile` (`plugins` that is no list), or passes `createHistory` a `limit` that is no number | catch `PivotkitError` (codes `INVALID_ARGUMENT` and `INVALID_OPTION`); pass `createHistory` a number or leave `limit` out |
| **Breaking:** the view schema refuses a blank label | you validate stored view files against `view-2.json` or `view-file-2.json`, and a value's `label` or a name in `fieldLabels` is blank | give it a character or remove it; `normalize()` dropped such a label already |
| **Breaking:** header values refuse the control characters U+0080 to U+009F | a header value in your configuration or secret holds one of them | remove the character. The start or the log names the header |
| **Breaking:** reports are written with mode 0600 | another user reads the output directory without `output.baseUrl`, such as a backup job | run that reader as the server's user, or set `output.baseUrl`; `chmod 600` older reports to match |
| Numbers in loaded files read by their decimal mark | people load CSV or Excel files with text numbers such as `1,234` or `1.500` | check the column the note `DECIMAL_MARK` names; pick its mark in the preview, or with `retype`'s `decimal` ([Changing types and decimal marks](../reference/import.md#retype)). A comma-separated file reads `"1,234"` as 1234, where it read as 1.234; an Excel text cell `"1.500"` reads as 1500 in a German locale, where it read as 1.5 |
| pivotkit-server answers a little differently | a client keeps `list_sources` file names, relies on the order of `files.list`, or calls `/openapi.json` or the REST metadata with a method other than GET or HEAD | read file names of the second and later `files.allowDirs` without their path; sort `files.list` yourself if you need another order; use GET (other methods get 405 with `Allow: GET, HEAD`). The [pivotkit-server changelog](https://github.com/eizedev/pivotkit/blob/main/packages/pivotkit-server/CHANGELOG.md) has the details |
| [Versions move together](#update) | you list pivotkit-core, pivotkit-report or pivotkit-xlsx yourself | update them to the release of pivotkit-react 0.10: core 0.10.0, report 0.6.0, xlsx 0.7.0 |

#### pivotkit-server no longer brings pivotkit-cli { #server-without-cli }

`pivotkit-server cli` runs the pivotkit-cli installed beside pivotkit-server. Install it the way you
installed pivotkit-server, for example `npm install --global pivotkit-cli@<version>`. Without it, the
command exits with code 2 and names `npm install pivotkit-cli`, and `npm install --global pivotkit-cli`
for a global install. The container image has all three packages.
| [Versions move together](#update) | you list pivotkit-core, pivotkit-report or pivotkit-xlsx yourself | update them to the release of pivotkit-react 0.11: core 0.11.0, report 0.7.0, xlsx 0.8.0 |

## Older releases { #older }

The changes of 0.9 and earlier are in each package's changelog:
The changes of 0.10 and earlier are in each package's changelog:
[pivotkit-react](https://github.com/eizedev/pivotkit/blob/main/packages/pivotkit-react/CHANGELOG.md),
[pivotkit-server](https://github.com/eizedev/pivotkit/blob/main/packages/pivotkit-server/CHANGELOG.md),
[pivotkit-mcp](https://github.com/eizedev/pivotkit/blob/main/packages/pivotkit-mcp/CHANGELOG.md),
[pivotkit-cli](https://github.com/eizedev/pivotkit/blob/main/packages/pivotkit-cli/CHANGELOG.md) and
the [other packages](https://github.com/eizedev/pivotkit/tree/main/packages). Read the entries marked
**Breaking** and the sections "Upgrading from" of every minor version from yours to the new one.
Earlier versions of this page have the details:
[0.10](https://github.com/eizedev/pivotkit/blob/a1ff8bd8b3e91317d6fae46b074b87d019ebfcb9/docs/getting-started/upgrading.md?plain=1#L114),
[0.9](https://github.com/eizedev/pivotkit/blob/152bc7809fd41021a0650996f685e657cf1fbb89/docs/getting-started/upgrading.md#from-0-8-2)
and [0.4 to 0.8](https://github.com/eizedev/pivotkit/blob/5e36b19f07b8c9cff75a14c57316576d8dd9d50b/docs/getting-started/upgrading.md).
2 changes: 1 addition & 1 deletion docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.1.0",
"info": {
"title": "pivotkit REST",
"version": "0.5.0",
"version": "0.6.0",
"summary": "Describe data sources, validate and render pivot views, make links and draft schedules.",
"description": "The operations of pivotkit's MCP server over HTTP for programs. Errors are RFC 9457 problem details. The routes are RPC-style (POST /views/validate); /api/v1 changes only with a breaking change. Docs: https://pivotkit.eize.dev/reference/rest/",
"license": {
Expand Down
Loading
Loading