Skip to content

Developer tools · javascript library

SunCalc

A JavaScript library for working out sun position and sunlight timing at a location, which people reach for in projects that need this data.

Summarized from 5 comments.

A JavaScript library for working out sun position and sunlight timing at a location, which people reach for in projects that need this data.

recommend
5
criticize
0
months recommended
2 of 13

Why people love it

  • Go-to library for sun-related projects · 2

    Thank you for an amazing library; It's the first that I reach for every time I have a project with this need.

    Aug 2026 · comment

    this library would be extremely helpful

    Aug 2026 · comment
  • Shows when sunlight hits a location · 1

    Very useful to figure out when/where sunlight will hit your house.

    Jan 2026 · comment
  • More precise sun calculations · 1

    makes it a lot more precise

    Aug 2026 · comment

What hackers pick instead

Every quote

The 4 most detailed of 5 comments. Each links to the original.

  1. Thank you for an amazing library; It's the first that I reach for every time I have a project with this need.

    Recommends · Aug 2026 · in “Sun Clock”

  2. Very useful to figure out when/where sunlight will hit your house.

    Recommends · Jan 2026 · in “Sun Position Calculator”

  3. this library would be extremely helpful

    Recommends · Aug 2026 · in “Sun Clock”

  4. makes it a lot more precise

    Recommends · Aug 2026 · in “Sun Clock”

Counts from 1,795,640 Hacker News comments, Nov 2025 to Nov 2026. How we count · Report a mistake