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.
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.
- peers bignumber.js: 29 commits last year; released July 2026.
- npm downloads ratio: 1.73 against a median of 4.1: losing ground.
- spin.atomicobject.com/javascript-math-precision-decimals: Users outgrow it and move to decimal.js.
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.
- dev.to/fvictorio/a-comparison-of-bignumber-libraries-in-javascript-2gc5: Calls big.js minimalist; its features cover the common cases.
- github description: Arbitrary-precision decimal arithmetic only, no formatting.
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.
- github.com/MikeMcl/big.js: Browser, Node.js, and Deno support with a focused decimal API.
- tc39.es/proposal-decimal: The Stage 1 draft explains the need for decimal arithmetic in JavaScript.
- 2025.stateofjs.com/en-US/other-tools: The survey provides no project-specific demand estimate for big.js.
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.
- spin.atomicobject.com/javascript-math-precision-decimals: The author outgrew big.js and switched to decimal.js.
- dev.to/fvictorio/a-comparison-of-bignumber-libraries-in-javascript-2gc5: Smallest (about 8K) of the compared libraries, with a nice API.
- npm hasTypes: No bundled TypeScript types.
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.
- mikemcl.github.io/big.js: Documents exact operations, rounding settings, formatting, and errors.
- github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/big.js/index.d.ts: Community declarations supply TypeScript support.
- measurethat.net/Benchmarks/Show/34090/1/bignumberjs-vs-bigjs-vs-decimaljs-20250401: Older big.js led the decimal libraries on one short expression.
- github.com/MikeMcl/big.js/pull/229: Open proposal includes a concrete square-root rounding example.
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.
- github commitsLastYear: 0 commits and 0 releases in the last year.
- github.com/MikeMcl/big.js/blob/master/CHANGELOG.md: 7.0.0/7.0.1 on 21 Apr 2025; small fixes only.
- github.com/MikeMcl/big.js/issues: Open issues from 2025 have at most one comment each.
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.
- github commitsLastYear, npm latestPublishedAt and versionsLastYear, peers: Zero commits and publishes in the past year. Latest npm release was April 2025.
- github.com/MikeMcl/big.js/pull/229: A square-root rounding fix proposed in October 2026 remains open.
- github.com/MikeMcl/big.js/issues/225: The maintainer explains the limited constructor change behind version 7.
- registry-npm.ywwl.com/big.js/7.0.1: The mirrored registry record lists one maintainer and publisher.
- opencollective.com/bigjs: Records historical funding, including $5,000 from Coinbase.
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.
- dev.to/fvictorio/a-comparison-of-bignumber-libraries-in-javascript-2gc5: Independent comparison recommends it for most uses.
- hackerNews/bluesky: No Hacker News stories and no Bluesky posts.
- sources.debian.org/src/node-big.js/6.0.3%2Bds-1/CHANGELOG.md: Packaged in Debian.
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.
- github.com/ghostfolio/ghostfolio/blob/main/package.json: Ghostfolio pins 7.0.1 as a runtime dependency.
- github.com/Dintero/money: Dintero explains why it chose big.js for monetary arithmetic.
- opencollective.com/bigjs: Records Coinbase sponsorship.
- measurethat.net/Benchmarks/Show/34090/1/bignumberjs-vs-bigjs-vs-decimaljs-20250401: Independent browser measurements support simple arithmetic performance on 6.2.2.
- 2025.stateofjs.com/en-US/other-tools: No published satisfaction or retention result 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.