Correct numbers in the spreadsheets your AI agent builds
Language models write formulas well and calculate them poorly. HyperFormula evaluates every formula your agent writes, including dependencies across sheets, and returns values your code can check.

Trusted by
A generated file without calculated values shows blank cells
Without an engine like HyperFormula, an agent can write the formulas but not the values. When an agent writes an .xlsx file, the formulas are in the file but the calculated results often aren’t. Some viewers then show empty cells.
If the model works out the numbers itself, it estimates them, and an estimated total in a financial model can be off.

Calculate, check, then show the user
HyperFormula sits between your agent and the file your user opens. The agent writes formulas; HyperFormula returns the values and the errors.
import { HyperFormula } from 'hyperformula';// Formulas written by the agentconst hf = HyperFormula.buildFromArray([[1200, 0.08, '=A1*B1'],[1500, 0.08, '=A2*B2'],['', 'Total', '=SUM(C1:C2)'],], { licenseKey: 'your-license-key' });console.log(hf.getCellValue({ sheet: 0, row: 2, col: 2 })); // 216
- Your agent writes or edits formulas.
- HyperFormula calculates the sheet.
- Your code passes the values and any error cells back to the agent.
- The agent fixes errors before the user opens the file.
Iterate until the numbers check out
Your agent writes formulas, HyperFormula calculates every cell and hands back the values and any error cells, such as #REF!. The agent fixes what’s wrong and runs it again, before anyone opens the file.
The loop works because the agent gets a definite answer each round: HyperFormula is a calculation engine, so the same formulas always return the same values, and after an edit it recalculates only the cells that depend on it. It runs in Node.js next to your agent’s tool calls, and the same engine shows the same numbers in the browser preview.

Add it as a tool in your agent framework
We’re building guides for the Vercel AI SDK and LangChain. Tell us about your agent to get early access and help shape the API.
What to check before you build on it
Two things decide whether HyperFormula fits your agent.
- Functions. Compare the functions your agent writes most often with the list of 464 built-in functions.
- Runtime. HyperFormula needs JavaScript. A Python-only backend would need a Node.js service next to it.
Licensing for AI products
Before your agent goes to production, check which HyperFormula plan fits your product on our pricing page.
Become a design partner
Tell us what your agent does with spreadsheets, the volume you expect and your timeline. Design partners get early access to the agent framework guides and help shape the API.
Loading the form…