# peterolson/BigInteger.js

An arbitrary length integer library for Javascript

Repository: https://github.com/peterolson/BigInteger.js
Canonical: https://ross.abutalabs.com/products/bigintegerjs
Language: JavaScript
License: Unlicense
License Family: permissive
Last push: 2024-02-02T14:59:06+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5108, "days_push": 943, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1127, forks 187 (observed 2026-08-28T04:03:41.349671+00:00)

## What it is
BigInteger.js is an arbitrary-length integer library for JavaScript, enabling arithmetic on integers of unlimited size. It now acts as a thin wrapper over the native BigInt when the environment supports it.

## Use cases
- perform arithmetic on integers larger than Number.MAX_SAFE_INTEGER
- parse and convert numbers in arbitrary bases
- polyfill BigInt support in older JavaScript environments
- compute factorials or modular arithmetic with huge numbers
- handle cryptographic-style large integer math in the browser

## When to choose
- you need arbitrary-precision integers in JavaScript and must support environments without native BigInt
- you need flexible base conversion with custom alphabets
- you want a lightweight, dependency-free big integer library

## When to avoid
- you only target modern environments with native BigInt support
- you need arbitrary-precision decimals or floats rather than integers
- you need very high performance heavy computation, where native BigInt or WebAssembly libraries may be faster

## Facets
- artifact type: library
- maturity: maintenance
- function: math, serialization
- domain: developer-tools, web-development
- platform: browser
- tags: arbitrary-precision, bigint, big-integer, arithmetic, polyfill, algorithms, javascript, nodejs

## Member repositories
- peterolson/BigInteger.js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:41.349671+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:38:52.952223+00:00, confidence not recorded.
  - readme: https://github.com/peterolson/BigInteger.js (fetched 2026-08-28T04:03:41.349671+00:00, sha 6d523c57b2b6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
