big.js
Lightweight arbitrary-precision decimal arithmetic library for financial and numeric calculations.
Utilities npm MIT
Used in agent projects
25
0.2% of 12,697 public repos built with AI coding agents
Rank in utilities
#82 of 109
by use in those projects
Downloads
33M
npm, last 7 days, big.js
GitHub stars
5,197
last push Apr 22, 2025
How big.js is used
big.js is a dependency in 25 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #82 of 109 in utilities. The most used alternative there is clsx. Projects that use it most often also use Solana Web3.js (80.0%), Solana SPL Token (72.0%), Axios (52.0%).
Often used with big.js
| Solana Web3.js | 80.0% of big.js projects · 4.8× more than average |
|---|---|
| Solana SPL Token | 72.0% of big.js projects · 9.9× more than average |
| Axios | 52.0% of big.js projects · 5.2× more than average |
| Prettier | 60.0% of big.js projects · 3.4× more than average |
| bn.js | 48.0% of big.js projects · 28.1× more than average |
| ts-node | 40.0% of big.js projects · 5.9× more than average |
| ESLint | 76.0% of big.js projects · 2.0× more than average |
| Jest | 36.0% of big.js projects · 6.5× more than average |
Install
| Package | npm install big.js |
|---|---|
| Main stacks | TypeScript / JavaScript (16), Next.js (7), Rust (2) |
| Example projects | blockworks-foundation/mango-v4, blockworks-foundation/market-maker-ts, cryptopayserver00/cryptopayserver, allbridge-io/allbridge-core-js-sdk, port-finance/liquidator |
Alternatives to big.js
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| clsx npm Tiny utility for conditionally constructing className strings. |
2,251 (17.7%) | 126M | 9,847 | MIT |
| date-fns npm Modern JavaScript date utility library with comprehensive formatting functions. |
1,079 (8.5%) | 97.6M | 36.6K | MIT |
| uuid npm Generate RFC9562 compliant UUIDs for unique identifiers in applications. |
454 (3.6%) | 296M | 15.3K | MIT |
| PyYAML pypi YAML parser and emitter for reading and writing YAML configuration files. |
385 (3.0%) | 239M | 2,954 | MIT |
| Lodash npm Modular utility library with methods for common programming tasks and data manipulation. |
269 (2.1%) | 162M | 61.4K | MIT |
| bn.js npm Big number library for handling arbitrary-precision integers in JavaScript. |
217 (1.7%) | 62.1M | 1,230 | MIT |
| python-dateutil pypi Extensions to Python's datetime module for advanced date and time manipulation. |
165 (1.3%) | 233M | 2,638 | Dual License |
| yaml npm JavaScript YAML parser and stringifier with full spec compliance. |
164 (1.3%) | 179M | 1,693 | ISC |