AUIPivot turns raw rows into pivot reports, right in the browser.

Live pivot report with a field panel

A demo of AUIPivot. It generates a year of sales rows (region, channel, category, product, unit price, units, revenue, and date) in the browser and pivots them into a report. You can switch between preset reports, change the number of source rows, show the result as a tree, a table, or a table with merged cells, turn on a heatmap, and drag fields between the rows, columns, values, and filters areas of the field panel to build your own report. The panel's field list is grouped into Product, Market, Measures, and Date; dragging a group title places all of its fields at once. The date field is split into year, half, quarter, and month. A View code panel shows the code behind the current report.

Getting ready…

Source rows
—
Data generation
—
Pivoting (this run)
—

Use it with your stack

AUIPivot is plain JavaScript and runs entirely in the browser, so it does not depend on your server. Official wrappers and samples are ready for React and Vue.

Connect AUIPivot to your AI coding assistant

The AUIPivot MCP server gives AI coding tools the official API reference, default values, TypeScript declarations, and JavaScript, React, and Vue examples, so they write pivot code from the real documentation instead of guessing. Documentation for AUIPivot 2.8.

Remote endpoint Recommended No install

Streamable HTTP, no authentication. Use the exact URL, without a trailing slash. Opening it in a browser returns 405; that is expected.

https://auipivot.com/mcp

Local npm package Node.js 22.12+

Your AI tool starts auipivot-mcp-server with npx (stdio). Use it when your network blocks outside connections.

npx -y auipivot-mcp-server@latest

Setup by tool

Claude Code

Remote. Run in your project's terminal, then check /mcp:

claude mcp add --transport http auipivot https://auipivot.com/mcp

Or local, then restart Claude Code:

claude mcp add --transport stdio auipivot -- npx -y auipivot-mcp-server@latest
Codex CLI

Remote. Register, then check codex mcp list:

codex mcp add auipivot --url https://auipivot.com/mcp

Or local, then restart Codex:

codex mcp add auipivot -- npx -y auipivot-mcp-server@latest
Cursor

Remote. Add to .cursor/mcp.json in the project:

{
  "mcpServers": {
    "auipivot": { "url": "https://auipivot.com/mcp" }
  }
}

Or local, then make sure auipivot is enabled in Cursor's MCP settings:

{
  "mcpServers": {
    "auipivot": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "auipivot-mcp-server@latest"]
    }
  }
}
VS Code

Remote. Add to .vscode/mcp.json (the top-level key is servers, not mcpServers), then check MCP: List Servers:

{
  "servers": {
    "auipivot": { "type": "http", "url": "https://auipivot.com/mcp" }
  }
}

Or local:

{
  "servers": {
    "auipivot": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "auipivot-mcp-server@latest"]
    }
  }
}
Other MCP clients

Add a remote MCP server (for example, a Claude custom connector) with the URL https://auipivot.com/mcp and the Streamable HTTP transport. HTTP 429 means the request limit was exceeded; retry after the Retry-After time.

Tools

list_versions
Documentation, engine, and npm type package versions included
search_docs
Search the official API and guides by API name or keyword
get_api
Description, default value, version introduced, and TypeScript declaration
list_examples
Find examples by feature, framework, and language
get_example
Example source, related files, dependencies, and run conditions

Try asking

  • "Use AUIPivot MCP to check the values and default of layoutType, then switch our tree report to a table with merged cells."
  • "Find the React TypeScript example that uses pivot methods and events, and check the real type declarations."
  • "Look up the callback arguments of registerCustomAggregator and write a unit-weighted average price."

Read-only: the server looks up published documentation and examples. It does not read or change your project or pivot data. The AUIPivot engine and license are separate.

Quick start

Four files, one call to AUIPivot.create(), and a few field settings. Save the page below and open it on localhost to try it right away.

Non-commercial CDN: the files below are the non-commercial edition and run only on localhost and 127.0.0.1. For any other domain, replace them with your licensed AUIPivot files (AUIPivot.js, AUIPivotLicense.js, stylesheet, messages file). See Pricing & License.

Notes for AI assistants

  • Create a pivot with AUIPivot.create(selector, props). It returns the pivot ID; every other method takes it as the first argument.
  • Set fields with setRowFields, setColumnFields, setValueFields, and setFilterFields, then load rows with setGridData. After changing fields on loaded data, call updatePivot.
  • Source data must be an array of flat objects. Field names in the settings are the object keys; use setFieldAlias for display names.
  • setDateTypeField(id, "DATE") adds DATE_YEAR, DATE_HALF, DATE_QTR, and DATE_MONTH; use those names as row or column fields.
  • Load AUIPivotLicense.js, or the pivot will not render. Load a messages file for the UI language.
  • The jsDelivr CDN files are the non-commercial edition for localhost and 127.0.0.1 only. Don't put them in production code; use the customer's licensed files instead.
  • Bind events with AUIPivot.bind(id, eventName, handler). Prefer the AUIPivot MCP tools over web search; AUIPivot is a separate product from AUIGrid, so do not mix their APIs.
index.html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>AUIPivot Quick Start</title>
  <!-- Non-commercial edition: runs only on localhost and 127.0.0.1.
       For other domains, use your licensed AUIPivot files instead. -->
  <!-- Theme stylesheet: required; swap for another theme if you like -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/aui-community/auipivot-noncommercial@main/dist/AUIPivot_style.css">
  <!-- AUIPivot license file: required -->
  <script src="https://cdn.jsdelivr.net/gh/aui-community/auipivot-noncommercial@main/dist/AUIPivotLicense.js"></script>
  <!-- AUIPivot library: required -->
  <script src="https://cdn.jsdelivr.net/gh/aui-community/auipivot-noncommercial@main/dist/AUIPivot.js"></script>
  <!-- Messages file: required; swap for another language if you like -->
  <script src="https://cdn.jsdelivr.net/gh/aui-community/auipivot-noncommercial@main/dist/messages/AUIPivot.messages.en.js"></script>
</head>
<body>
  <div style="display:flex; gap:12px;">
    <div id="pivot_wrap" style="width:800px; height:480px;"></div>
    <div id="pivot_panel" style="width:340px; height:480px;"></div>
  </div>
  <script>
    // Create the pivot and a drag-and-drop field panel
    const pivotID = AUIPivot.create("#pivot_wrap", {
      layoutType: "tree",
      pivotPanelId: "#pivot_panel"
    });

    AUIPivot.setFieldAlias(pivotID, { REGION: "Region", PRODUCT: "Product", QTY: "Units", REVENUE: "Revenue" });
    AUIPivot.setDateTypeField(pivotID, "DATE");

    // Group the panel's field list (AUIPivot 2.7+)
    AUIPivot.setFieldLayout(pivotID, [
      { groupId: "sales", labelText: "Sales", children: [
        { dataField: "REGION" }, { dataField: "PRODUCT" }, { dataField: "QTY" }, { dataField: "REVENUE" }
      ] },
      { groupId: "date", labelText: "Date", expanded: false, children: [
        { dataField: "DATE_YEAR" }, { dataField: "DATE_QTR" }, { dataField: "DATE_MONTH" }, { dataField: "DATE" }
      ] }
    ]);

    AUIPivot.setRowFields(pivotID, ["REGION", "PRODUCT"]);
    AUIPivot.setColumnFields(pivotID, ["DATE_QTR"]);
    AUIPivot.setValueFields(pivotID, [
      { dataField: "REVENUE", operation: "SUM", formatString: "#,##0" }
    ]);

    AUIPivot.setGridData(pivotID, [
      { REGION: "Seoul", PRODUCT: "Pro 14", QTY: 2, REVENUE: 3580, DATE: "2025/02/11" },
      { REGION: "Seoul", PRODUCT: "View 27", QTY: 5, REVENUE: 1395, DATE: "2025/05/03" },
      { REGION: "Busan", PRODUCT: "Pro 14", QTY: 1, REVENUE: 1790, DATE: "2025/08/21" },
      { REGION: "Busan", PRODUCT: "View 27", QTY: 3, REVENUE: 837, DATE: "2025/11/30" }
    ]);

    AUIPivot.bind(pivotID, "cellClick", (event) => {
      console.log(event.headerText, event.value);
    });
  </script>
</body>
</html>

API at a glance

The most-used parts of the AUIPivot API. Every method takes the pivot ID as its first argument. For the full reference (about 210 entries, with defaults and TypeScript declarations), connect the AUIPivot MCP server or read the documentation.

Methods

AUIPivot.create(pid, props)Create a pivot in the given element and return its pivot ID
setGridData(id, rows)Load the source rows and pivot them
setRowFields(id, fields)Fields grouped down the rows
setColumnFields(id, fields)Fields grouped across the columns
setValueFields(id, [{ dataField, operation }])Fields to aggregate; operation defaults to "SUM"
setFilterFields(id, fields)Fields shown in the filter menu
updatePivot(id)Pivot again after changing fields
setDateTypeField(id, field)Split a date into year, half, quarter, and month fields
setFieldAlias(id, aliases)Display names for field keys
createPivotPanel(id, props)Add the drag-and-drop field panel later
setVisualAnalytics(id, definitions)Heatmaps and data bars per value, optionally on subtotals and the footer
setFieldLayout(id, layout)Group and order the panel's field list; drag a group to place all its fields
setFormulaFields(id, fields) 2.8Formulas on aggregated values, e.g. "[Profit] / [TOTAL] * 100"; place them with calculation: { kind: "formula" }
createSlicer(id) 2.8Without a container or options, opens a field picker and adds a slicer for each chosen field
exportToXlsx(id, options)Export the current result to Excel
destroy(id)Remove the pivot and free its resources

Pivot properties (create props)

layoutType"tree" (default), "table", "tableCellMerge"
pivotPanelIdElement for the field panel, e.g. "#pivot_panel"
showGrandTotalColumnShow the column grand total (default true)
showSummaryRowSubtotal rows in table layouts (default true)
summaryColumnPosition"last" (default) or "first"
useHeatmapColor cells by value (default false); for per-value heatmaps and data bars use setVisualAnalytics
autoGridHeightFit the height to the result rows (default true)
selectionMode"multipleCells" (default), "singleCell", "singleRow", "multipleRows", "none"
useFixedColumnsFreeze the row-label columns (default true)
fixedRowFieldCount 2.8How many row-label columns to freeze from the left; null (default) freezes all, 0 none
enableCalculatedFieldEditor 2.8Add, edit, and delete calculated fields from the field panel (default false)
enableGridFieldDrop 2.8Drop zones above the table for rows, columns, values, and filters (default false)
enableItemReorder 2.8Drag handles to reorder row and column items (default false)
enableFieldSubtotalMenu 2.8Show or hide subtotals per row field from the panel menu, in table layouts (default false)

Aggregations setValueFields operation

SUM, COUNT, DISTINCT_COUNTTotal, count, and count of unique values
AVG, MEDIAN, MIN, MAXAverage, median, smallest, and largest value
RATIO, ROW_RATIO, GRAND_TOTAL_RATIOShare of the column, row, or grand total
RATIO_OF_SUMSRatio of two sums, such as margin rate
VARIANCE, STD_DEVIATIONPopulation variance and standard deviation (sample versions too)
registerCustomAggregator(id, definition)Register your own aggregation

Events AUIPivot.bind(id, name, handler)

pivotBegin / pivotCompleteBefore and after each pivot, with the row, column, value, and filter fields
cellClick / cellDoubleClickA cell was clicked; value, item, headerText
treeOpenChangeA group was expanded or collapsed
sortingThe sort changed
pivotPanelShow / pivotPanelHideThe field panel was shown or hidden

Pricing & License

Commercial license

  • Perpetual license for production use
  • Licensed separately from AUIGrid
  • Bound to a specific domain or IP; a registered domain cannot be changed after issue
  • Commercial product, not open source

Non-commercial edition

  • For personal, educational, testing, and demo use
  • Runs only on localhost and 127.0.0.1
  • No official technical support
  • Engine and samples on GitHub
  • For production evaluation, a 30-day trial is in the download center

Prices, development license rules, and what each license covers are on auisoft.net.

See pricing on auisoft.net ↗

FAQ

What is AUIPivot?

AUIPivot is a commercial JavaScript pivot table for enterprise web applications, made by AUISoft Co., Ltd. It turns an array of flat JSON rows into a summary report by grouping on row and column fields and aggregating value fields. All processing runs in the browser. It works in plain JavaScript and has official React and Vue components. TypeScript definitions are published on npm as aui-pivot; that package does not include the engine, which is provided separately with the license file.

How do I connect AUIPivot to an AI coding assistant?

Add the AUIPivot MCP server. The recommended way is the hosted endpoint https://auipivot.com/mcp (Streamable HTTP, no installation). If your network blocks outside connections, run it locally: use npx -y auipivot-mcp-server@latest with Node.js 22.12 or later. See setup by tool.

Does the AUIPivot MCP server read my code or data?

No. It only looks up the published AUIPivot documentation and examples. It has no tools that read or change your project or pivot data; your AI tool writes the code.

Which aggregations does AUIPivot support?

AUIPivot 2.8 has 17 built-in operations, including SUM, COUNT, DISTINCT_COUNT, MIN, MAX, AVG, MEDIAN, ratios against row, column, and grand totals, RATIO_OF_SUMS, and variance and standard deviation. You can also register your own aggregation with registerCustomAggregator.

How is AUIPivot licensed?

AUIPivot is a commercial product, not open source, licensed separately from AUIGrid. Production use requires a perpetual license bound to a specific domain or IP; a registered domain cannot be changed after issue. See Pricing & License. A non-commercial edition on GitHub is for personal, educational, testing, and demo use and runs only on localhost and 127.0.0.1. A 30-day evaluation version is available from the auisoft.net download center.