Elestia Open Source Ratings
6.5

big.js

Reasonable, with limits. 4th of 8 numbers and money.

big.js is a tiny, dependency-free library for exact decimal arithmetic. It does basic money math correctly with a simple API, but it does no number formatting and has had no commits since April 2025. Its larger siblings decimal.js and bignumber.js, from the same author, cover more ground and are gaining users faster.

Best for: Projects that need small, exact decimal arithmetic (add, multiply, divide, round) for prices or totals, with the smallest possible bundle.

WebsiteGitHubnpm

Scores

Overall6.5

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

It is a sound, tiny choice for simple decimal money math and is safe to keep where it already runs. For new projects, bignumber.js (more active, same author, decimal-place precision) or decimal.js do the same job with more features and better momentum. Development has stopped and it lacks formatting and bundled types.

GPT-6.2 Sol: 7.0, likely 5.9 to 8.0

big.js remains a strong pick for a small, well-documented core of exact decimal arithmetic. For broader math and bundled TypeScript types, decimal.js is a stronger default. Dinero.js is a better fit when the app needs currency-aware amounts and allocation. Slow maintenance and download growth below the catalog median lower confidence in big.js as a long-term default.

  • mikemcl.github.io/big.js: Focused arithmetic API with strict conversion and configurable rounding.
  • github.com/MikeMcl/decimal.js: Ships declarations and supports fractional powers and trigonometry.
  • github.com/dinerojs/dinero.js/releases: Documents currency-aware amounts and allocation.
  • github commitsLastYear, npm versionsLastYear and download history, peers, medianDownloadsRatio: No recent commits or publishes and weaker relative download growth than the close decimal peers.
Needed by many4.9

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

Exact decimal math is needed in apps that handle money, prices, or measurements: a sizable group, but not most projects. big.js covers only the arithmetic half of the category's job, not formatting. It works in any runtime.

GPT-6.2 Sol: 4.8, likely 3.6 to 6.1

Exact decimal arithmetic matters in payments, pricing, accounting, and other numerical work. big.js runs in browsers and on servers, and its scope is decimal calculation and basic numeric formatting. The available survey data leaves the share of JavaScript projects that need this level of precision uncertain.

Helps a lot7.0

How well does it do the job for those who need it?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

It is correct, small, and pleasant for basic decimal arithmetic, and its decimal-place precision fits money. It has about half the methods of bignumber.js: no other bases, no non-integer pow, no exp/log/trig, no formatting, and no bundled types. One writer started with big.js and moved to decimal.js for the missing features.

GPT-6.2 Sol: 7.4, likely 6.3 to 8.4

Version 7.0.1 provides exact basic arithmetic, four rounding modes, and clear examples for strict input and conversion. Division uses precision and rounding settings on the constructor, and TypeScript support requires a separate package. An independent browser benchmark favors big.js 6.2.2 on short arithmetic expressions. That benchmark covers a narrow workload, and an open report identifies a square-root rounding error in the current implementation.

Holds up over time5.0

Will it still be a good choice in two years?

Claude Opus 5.5: 5.0, likely 3.5 to 6.5

The library is mature and stable, and 7.0 (April 2025) brought only small breaking changes. Since then there have been no commits or releases, one person maintains it and its two sibling libraries, and the issues opened in 2025 have at most one comment each. The small scope means little needs to change, which keeps the risk moderate.

GPT-6.2 Sol: 4.9, likely 3.6 to 6.3

The project recorded no commits or npm releases in the past year, while decimal.js and bignumber.js both recorded commits. An October square-root fix is still open, and npm lists one maintainer. The small API and limited breaking change in version 7 help existing code stay usable. Historical sponsorship offers some support, and the timing of future fixes remains uncertain.

Used widely7.0

How many use it, and is that growing?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

173M downloads in 4 weeks and 1.27M dependent repos, the most dependent repos in the category. Most of these installs come through build tooling (such as webpack's loader-utils 1.x/2.x), not direct choices. The yearly ratio of 1.73 is far below the 4.1 median, while decimal.js (4.4) and bignumber.js (4.1) keep pace, so big.js is losing share.

  • npm downloadsLast4Weeks: 173M now vs 100M a year ago, a ratio of 1.73 against a median of 4.1.
  • dependents repos: 1,267,262 repos and 6,022 packages.
  • loader-utils dependency: Older webpack loader-utils versions depend on big.js, which inflates its downloads.

GPT-6.2 Sol: 6.9, likely 5.6 to 8.1

ecosyste.ms found 1.27 million dependent repositories and 6,022 dependent packages, the largest repository count among the supplied peers. Four-week downloads reached 173 million, up 1.73× year over year, well below the 4.1× catalog median and the growth of decimal.js and bignumber.js. An npm version snapshot shows roughly two-thirds of weekly downloads on 5.2.2, which older webpack loader-utils versions pull in. The installed base is large, and the share attributable to direct choices remains uncertain.

  • dependents, github stars, peers: Leads the supplied peers in indexed dependent repositories and has 5,201 stars.
  • npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: Downloads rose from 100.2 million to 173.1 million. Both close decimal peers grew faster.
  • npmjs.com/package/big.js?activeTab=versions: The version snapshot shows 19.4 million weekly downloads for 5.2.2 and 3.2 million for 7.0.1.
  • github.com/webpack/loader-utils/blob/v2.0.4/package.json: An older webpack tooling release pulls in big.js 5.2.2.
Vouched for6.0

Who stands behind it being good?

Claude Opus 5.5: 5.0, likely 4.0 to 6.5

It is widely embedded in tooling, packaged by Debian, and recommended in independent write-ups. Those write-ups are mostly old, though, and big.js appears in no developer survey and draws no current discussion on Hacker News or Bluesky.

GPT-6.2 Sol: 7.0, likely 5.9 to 8.0

Ghostfolio uses big.js 7.0.1 in its portfolio software, and payments provider Dintero built its money library around it. Coinbase has backed the project financially, and an independent benchmark supports its performance on basic arithmetic. The benchmark covers an older release, and the available developer survey provides no satisfaction or retention data for big.js.

Safe6.8

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

It has zero dependencies, no advisories ever, an MIT licence, and a tiny pure-JS codebase, so the attack surface is small. The OpenSSF Scorecard is 2.8, with no branch protection, no security policy, and little code review, and one maintainer publishes releases.

  • advisories total: 0 advisories.
  • npm dependencies: 0 dependencies.
  • scorecard score: 2.8, with weak Code-Review, Branch-Protection, and Security-Policy checks.

GPT-6.2 Sol: 6.6, likely 5.3 to 7.8

The MIT-licensed package has zero runtime dependencies and no advisories in the supplied OSV record. OpenSSF scores it 2.8 out of 10, with weak code review and zeroes for branch protection and workflow token permissions. GitHub shows no security policy, and npm lists a single publisher. The package has a small attack surface, while the public record gives limited assurance about publishing safeguards and response time.

  • npm license and dependencies, advisories: MIT license, zero runtime dependencies, and zero recorded OSV advisories.
  • scorecard score and checks: Code Review 1, Branch Protection 0, and Token Permissions 0.
  • github.com/MikeMcl/big.js/security: GitHub shows no security policy or published advisories.
  • registry-npm.ywwl.com/big.js/7.0.1: The mirrored registry record shows one publishing account.

Good

  • About 8 KB minified with zero dependencies, the smallest of the major decimal libraries.
  • A simple, chainable, immutable API (Big(0.1).plus(0.2)) that is hard to misuse and easy for AI agents to write.
  • Precision is set in decimal places with selectable rounding modes, which suits money calculations.
  • More than a decade of production use, with no security advisories on record.

Bad

  • The feature set is minimal: no number bases other than 10, no non-integer powers, no log or trig functions, and no locale or currency formatting.
  • The package ships no type definitions, so TypeScript users need @types/big.js.
  • No commits or releases since April 2025 and one maintainer; recent issues, including one asking what changed in 7.x, have had at most one comment each.
  • Downloads grow far slower than the category median, so new projects are picking decimal.js or bignumber.js instead.

The numbers

npm downloads, 4 weeks
173M +73% in a year
GitHub stars
5.2k
Commits, 12 months
0
npm version
7.0.1 Apr 2025
Versions, 12 months
0
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
2.8 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (MikeMcl/big.js), npm (big.js), OSV and the OpenSSF Scorecard.

Numbers and money

  1. 7.5decimal.js
  2. 7.3bignumber.js
  3. 7.2Dinero.js
  4. 6.5big.js
  5. 5.8Math.js
  6. 4.4currency.js
  7. 3.8Numbro
  8. 3.2Numeral.js
Compare all 8 on six scores