Skip to content
JS
Package

fraction.js

The RAW rational numbers library

v5.3.4, 22 Aug 2025MITESM + CommonJSTypes: BundledNumbers and maths
$ npm install fraction.js

Key numbers

As of 25 Sept 2026
Weekly downloads
45.2m
+111% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 year ago
v5.3.4
GitHub stars
691
77 forks
Open issues / PRs
2 / 3
Contributors
17
Commits, last 52 weeks
1

Downloads

Last week 2026-09-15 to 2026-09-21
020m40m60m80mSept 2025Mar 2026Sept 2026High 63.3m (14 Apr 2026)Low 15.6m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

45,215,227 downloads last week, 201,826,262 in the last month. The 12-month change of +111% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
070 in total
Latest version
5.3.4, 22 Aug 20251 year ago
First published
12 Mar 2014
Last push to GitHub
26 Sept 2025363 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
3
Commits, last 52 weeks
1
Dependents on npm
626

Major versions

  1. v5 first release 5.0.0, 4 Oct 2024
  2. v4 first release 4.0.0, 8 Feb 2017
  3. v3 first release 3.0.0, 9 Sept 2015
  4. v2 first release 2.0.0, 30 May 2015
  5. v1 first release 1.1.0, 21 Mar 2014

Recent releases

VersionPublished
5.3.422 Aug 2025
5.3.322 Aug 2025
5.3.222 Aug 2025
5.3.117 Aug 2025
5.3.016 Aug 2025
5.2.230 Mar 2025
5.2.117 Nov 2024
5.2.017 Nov 2024
5.1.11 Nov 2024
5.1.030 Oct 2024
5.0.610 Oct 2024
5.0.510 Oct 2024
5.0.410 Oct 2024
5.0.39 Oct 2024
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
*
Runtimes
-
Unpacked size (npm)
144 kB
Dependencies (0)
None
npm install fraction.js

CDN

jsDelivr: 2.2m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/fraction.js@5.3.4/
  • unpkghttps://unpkg.com/fraction.js@5.3.4/
  • esm.shhttps://esm.sh/fraction.js@5.3.4
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.