Skip to content
JS
Package

suncalc

A tiny JavaScript library for calculating sun/moon positions and phases.

v2.0.2, 2 Sept 2026No license fieldESM + CommonJSTypes: Bundled
$ npm install suncalc

Key numbers

As of 25 Sept 2026
Weekly downloads
229.8k
+275% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
22 days ago
v2.0.2
GitHub stars
3.5k
438 forks
Open issues / PRs
8 / 4
Contributors
-
Commits, last 52 weeks
31

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300kSept 2025Mar 2026Sept 2026High 300k (8 Sept 2026)Low 43.6k (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.

229,817 downloads last week, 1,126,868 in the last month. The 12-month change of +275% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.0.2, 2 Sept 202622 days ago
First published
-
Last push to GitHub
2 Sept 202622 days before the snapshot
Repository archived
No
Open issues
8
Open pull requests
4
Commits, last 52 weeks
31
Dependents on npm
317

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
50 kB
Dependencies (0)
None
npm install suncalc

CDN

jsDelivr: 486.1k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/suncalc@2.0.2/
  • unpkghttps://unpkg.com/suncalc@2.0.2/
  • esm.shhttps://esm.sh/suncalc@2.0.2
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.