{"adoption": {"forks": 496, "observed_at": "2026-08-28T04:09:57.829544+00:00", "stars": 7249}, "canonical_url": "https://ross.abutalabs.com/products/decimaljs", "card": {"archived": false, "artifact_type": "library", "description": "An arbitrary-precision Decimal type for JavaScript", "domain": ["developer-tools", "web-development", "mathematics"], "enriched": true, "function": ["math", "serialization"], "health_score": 75, "homepage": "http://mikemcl.github.io/decimal.js", "language": "JavaScript", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["MikeMcl/decimal.js"], "name": "MikeMcl/decimal.js", "platform": ["browser", "cross-platform"], "pushed_at": "2026-07-13T23:00:16+00:00", "repo": "MikeMcl/decimal.js", "stars": 7249, "tags": ["arbitrary-precision", "decimal-arithmetic", "bignumber", "floating-point", "typescript-definitions", "nodejs"], "topics": ["javascript", "bignumber", "arbitrary-precision", "significant-digits", "trigonometric-functions", "bigdecimal"], "urls": [], "use_cases": ["do precise decimal arithmetic for money without floating-point errors", "compute with very large or very small numbers in JavaScript", "calculate trig functions at high precision", "round numbers to a fixed number of significant digits", "parse and format numbers in hex, binary, or octal", "replace Java BigDecimal in a JavaScript port"], "what_it_is": "decimal.js is an arbitrary-precision Decimal type for JavaScript, supporting integers and floats with configurable significant-digit precision. It replicates many Number and Math methods, adds trigonometric functions and non-integer powers, and has no dependencies.", "when_to_avoid": ["you only need decimal-place rounding and a smaller bundle (use bignumber.js or big.js)", "you need integer-only arithmetic (use BigInt)", "you need a lighter version without trig functions (use decimal.js-light)"], "when_to_choose": ["you need significant-digit precision and rounding on all operations", "you need trigonometric functions, logs, or non-integer powers with arbitrary precision", "you want a dependency-free library with wide browser and Node compatibility", "you need TypeScript declarations"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/decimaljs", "repo": "MikeMcl/decimal.js", "role": "main", "score": 74}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:09:57.829544+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:39:43.921845+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3684d514352ee8e7827520643dd1aac4d182ac4abfd8a8ab255dd9c57193749b", "fetched_at": "2026-08-28T04:09:57.829544+00:00", "kind": "readme", "missing": false, "url": "https://github.com/MikeMcl/decimal.js"}, {"content_hash": "5596ac61dba36082eb1a84b3b725500016c487969e07ed05a9217dddf8204bd4", "fetched_at": "2026-08-29T08:34:39.422646+00:00", "kind": "homepage", "missing": false, "url": "http://mikemcl.github.io/decimal.js"}, {"content_hash": "85f419bc61a10213b39b1cc46bc54d68acd1cf521e4050cd14be4510f1b3600d", "fetched_at": "2026-08-29T08:34:39.433621+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/decimal.js"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:09:57.829544+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:39:43.921845+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3684d514352ee8e7827520643dd1aac4d182ac4abfd8a8ab255dd9c57193749b", "fetched_at": "2026-08-28T04:09:57.829544+00:00", "kind": "readme", "missing": false, "url": "https://github.com/MikeMcl/decimal.js"}, {"content_hash": "5596ac61dba36082eb1a84b3b725500016c487969e07ed05a9217dddf8204bd4", "fetched_at": "2026-08-29T08:34:39.422646+00:00", "kind": "homepage", "missing": false, "url": "http://mikemcl.github.io/decimal.js"}, {"content_hash": "85f419bc61a10213b39b1cc46bc54d68acd1cf521e4050cd14be4510f1b3600d", "fetched_at": "2026-08-29T08:34:39.433621+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/decimal.js"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:39:43.921845+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3684d514352ee8e7827520643dd1aac4d182ac4abfd8a8ab255dd9c57193749b", "fetched_at": "2026-08-28T04:09:57.829544+00:00", "kind": "readme", "missing": false, "url": "https://github.com/MikeMcl/decimal.js"}, {"content_hash": "5596ac61dba36082eb1a84b3b725500016c487969e07ed05a9217dddf8204bd4", "fetched_at": "2026-08-29T08:34:39.422646+00:00", "kind": "homepage", "missing": false, "url": "http://mikemcl.github.io/decimal.js"}, {"content_hash": "85f419bc61a10213b39b1cc46bc54d68acd1cf521e4050cd14be4510f1b3600d", "fetched_at": "2026-08-29T08:34:39.433621+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/decimal.js"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:09:57.829544+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:09:57.829544+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:09:57.829544+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:39:43.921845+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3684d514352ee8e7827520643dd1aac4d182ac4abfd8a8ab255dd9c57193749b", "fetched_at": "2026-08-28T04:09:57.829544+00:00", "kind": "readme", "missing": false, "url": "https://github.com/MikeMcl/decimal.js"}, {"content_hash": "5596ac61dba36082eb1a84b3b725500016c487969e07ed05a9217dddf8204bd4", "fetched_at": "2026-08-29T08:34:39.422646+00:00", "kind": "homepage", "missing": false, "url": "http://mikemcl.github.io/decimal.js"}, {"content_hash": "85f419bc61a10213b39b1cc46bc54d68acd1cf521e4050cd14be4510f1b3600d", "fetched_at": "2026-08-29T08:34:39.433621+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/decimal.js"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:09:57.829544+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:09:57.829544+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:39:43.921845+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3684d514352ee8e7827520643dd1aac4d182ac4abfd8a8ab255dd9c57193749b", "fetched_at": "2026-08-28T04:09:57.829544+00:00", "kind": "readme", "missing": false, "url": "https://github.com/MikeMcl/decimal.js"}, {"content_hash": "5596ac61dba36082eb1a84b3b725500016c487969e07ed05a9217dddf8204bd4", "fetched_at": "2026-08-29T08:34:39.422646+00:00", "kind": "homepage", "missing": false, "url": "http://mikemcl.github.io/decimal.js"}, {"content_hash": "85f419bc61a10213b39b1cc46bc54d68acd1cf521e4050cd14be4510f1b3600d", "fetched_at": "2026-08-29T08:34:39.433621+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/decimal.js"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:09:57.829544+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:09:57.829544+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:09:57.829544+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:39:43.921845+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3684d514352ee8e7827520643dd1aac4d182ac4abfd8a8ab255dd9c57193749b", "fetched_at": "2026-08-28T04:09:57.829544+00:00", "kind": "readme", "missing": false, "url": "https://github.com/MikeMcl/decimal.js"}, {"content_hash": "5596ac61dba36082eb1a84b3b725500016c487969e07ed05a9217dddf8204bd4", "fetched_at": "2026-08-29T08:34:39.422646+00:00", "kind": "homepage", "missing": false, "url": "http://mikemcl.github.io/decimal.js"}, {"content_hash": "85f419bc61a10213b39b1cc46bc54d68acd1cf521e4050cd14be4510f1b3600d", "fetched_at": "2026-08-29T08:34:39.433621+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/decimal.js"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:09:57.829544+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:09:57.829544+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:39:43.921845+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3684d514352ee8e7827520643dd1aac4d182ac4abfd8a8ab255dd9c57193749b", "fetched_at": "2026-08-28T04:09:57.829544+00:00", "kind": "readme", "missing": false, "url": "https://github.com/MikeMcl/decimal.js"}, {"content_hash": "5596ac61dba36082eb1a84b3b725500016c487969e07ed05a9217dddf8204bd4", "fetched_at": "2026-08-29T08:34:39.422646+00:00", "kind": "homepage", "missing": false, "url": "http://mikemcl.github.io/decimal.js"}, {"content_hash": "85f419bc61a10213b39b1cc46bc54d68acd1cf521e4050cd14be4510f1b3600d", "fetched_at": "2026-08-29T08:34:39.433621+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/decimal.js"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:39:43.921845+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3684d514352ee8e7827520643dd1aac4d182ac4abfd8a8ab255dd9c57193749b", "fetched_at": "2026-08-28T04:09:57.829544+00:00", "kind": "readme", "missing": false, "url": "https://github.com/MikeMcl/decimal.js"}, {"content_hash": "5596ac61dba36082eb1a84b3b725500016c487969e07ed05a9217dddf8204bd4", "fetched_at": "2026-08-29T08:34:39.422646+00:00", "kind": "homepage", "missing": false, "url": "http://mikemcl.github.io/decimal.js"}, {"content_hash": "85f419bc61a10213b39b1cc46bc54d68acd1cf521e4050cd14be4510f1b3600d", "fetched_at": "2026-08-29T08:34:39.433621+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/decimal.js"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:39:43.921845+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3684d514352ee8e7827520643dd1aac4d182ac4abfd8a8ab255dd9c57193749b", "fetched_at": "2026-08-28T04:09:57.829544+00:00", "kind": "readme", "missing": false, "url": "https://github.com/MikeMcl/decimal.js"}, {"content_hash": "5596ac61dba36082eb1a84b3b725500016c487969e07ed05a9217dddf8204bd4", "fetched_at": "2026-08-29T08:34:39.422646+00:00", "kind": "homepage", "missing": false, "url": "http://mikemcl.github.io/decimal.js"}, {"content_hash": "85f419bc61a10213b39b1cc46bc54d68acd1cf521e4050cd14be4510f1b3600d", "fetched_at": "2026-08-29T08:34:39.433621+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/decimal.js"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:39:43.921845+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3684d514352ee8e7827520643dd1aac4d182ac4abfd8a8ab255dd9c57193749b", "fetched_at": "2026-08-28T04:09:57.829544+00:00", "kind": "readme", "missing": false, "url": "https://github.com/MikeMcl/decimal.js"}, {"content_hash": "5596ac61dba36082eb1a84b3b725500016c487969e07ed05a9217dddf8204bd4", "fetched_at": "2026-08-29T08:34:39.422646+00:00", "kind": "homepage", "missing": false, "url": "http://mikemcl.github.io/decimal.js"}, {"content_hash": "85f419bc61a10213b39b1cc46bc54d68acd1cf521e4050cd14be4510f1b3600d", "fetched_at": "2026-08-29T08:34:39.433621+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/decimal.js"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 92, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4536, "days_push": 51, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 74, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}