Bun-native statistical computing

Statistics that feel at home in your terminal.

iStat pairs a small, expressive language with a typed statistics library and a live browser studio. Import data, compute, and chart — without leaving your workflow.

180+ built-in functions 3 data formats SVG charts
istat — bun
$ bun run istat eval -i 'x = 1:5; mean(x)'
3
$ bun run istat eval -i 'plotLine(1:5, [2, 5, 3, 8, 6])'
Charts are returned as SVG — ready to save or embed.
180+built-in functions
CSV · XLSX · JSONdata in, data out
4chart types, pure SVG
Bunruntime and package scripts

Live playground

Run iStat in your browser

The same interpreter as the CLI, compiled to the web. No server, no sign-up — your code stays in this tab.

Ready ⌘ ↵ / Ctrl ↵ to run
REPL console

Output


                
                

Why iStat

Small language. Serious statistics.

Everything you need for exploratory analysis, from a quick mean to a regression model and a chart you can drop into a report.

A language built for data

Vectors, matrices, ranges, loops, functions, and missing values — with MATLAB-like syntax that stays out of the way.

Statistics included

Descriptive statistics, correlation, regression, probability distributions, and the building blocks for deeper analysis.

Charts as SVG

Histograms, line charts, bar charts, and scatter plots return plain SVG — ready to save, embed, or download.

Bring your data

Read and write CSV, XLSX, and JSON. Handle missing cells explicitly with the nan* function family.

Terminal-native

A TUI REPL with a variables sidebar, session transcript, and fullscreen chart history. Stay in the flow.

Typed from the inside

The same statistical core is a TypeScript library. Import it, compose it, and ship it in your own projects.

Get started

From zero to a histogram in one command.

Clone the repository, install the Bun dependencies, and start the REPL. Prefer a packaged build? Grab the latest CLI archive from GitHub Releases.

From source
git clone https://github.com/emrekayik/istat.git
cd istat
bun install
bun run istat
Local Studio
bun run istat editor

Opens the local editor at 127.0.0.1:4173. Use --port 0 to pick a free port.