The workshop · Edition No. 22 · 16 Sep 2026

sharkdp/numbat

A calculator that understands physical units and refuses sums whose units do not make sense.

← The workshopRead the whole edition →
08

sharkdp/numbat

💎 hidden gem

2.6k stars · Apache-2.0 or MIT · v1.24.0 (2026-08-23), read from /releases/latest; the repository's own summary page showed the older v1.23.0, so the release page was believed · Track this in Scout

A calculator that understands physical units and refuses sums whose units do not make sense.

Repo detailsthe review · specs · pros & cons · install

What it is

A small programming language for scientific calculation, with physical dimensions built into its type system. That means a mistake in units is caught before the sum runs, not after. It ships as a terminal program called numbat, and the same language runs in the browser at numbat.dev. It knows the SI units, imperial units, data sizes, currencies with live rates, and a large library of physical constants.What it is good for. Anyone who does arithmetic where the units matter and a mistake is expensive. Server capacity, transfer times, storage growth, the cost of an API call multiplied out to a month. The problem it removes is the wrong answer that looks right. You ask a question in plain units and get an answer in the units you asked for, and a unit error becomes an error message rather than a number you act on.

Stars2.6k
LicenceApache-2.0 or MIT
Latestv1.24.0 (2026-08-23), read from /releases/latest; the repository's own summary page showed the older v1.23.0, so the release page was believed
Good
  • Unit errors are caught, which is the whole point and is genuinely rare in calculators.
  • It reads almost like English, so 8 GB / 45 MB/s -> minutes works as written.
  • Dual Apache-2.0 and MIT, and there is a full web version if you do not want to install anything.
Watch for
  • It is a calculator, not a spreadsheet. There is nothing to save, share or print.
  • Currency rates come from an online source, so that part needs a network connection.
  • Learning its small language takes twenty minutes if you want more than one-line sums.
Similar repositories
Install
# macOS:
brew install numbat
# With Rust installed:
cargo install numbat-cli
# Debian or Ubuntu: take the .deb from
#   https://github.com/sharkdp/numbat/releases/latest
# Nothing to install at all:
#   https://numbat.dev
# Then:
numbat
# and type:  8 GB / 45 MB/s -> minutes
Screenshots
sharkdp/numbat: GitHub preview cardsharkdp/numbat: Screenshot 1

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.