Skip to content

Star Constellation Recognition App - Identify Night Sky

An interactive sky map that identifies stars and constellations for any place, date, and time. Adjust the viewing direction and zoom to explore the sky.

Star Constellation Recognition App

Explore the night sky by adjusting your view direction. Click on stars to get detailed information.

View Controls

Quick Navigation

Sky Information

FomalhautAquariusCaelumCetusEridanusFornaxPhoenixPiscesPiscis AustrinusSculptorTaurusSESWHYG v4 (CC BY-SA) · figures: d3-celestial
Visible Stars: 0 · Visible Constellations: 0

Star Information

Click on a star in the map to see its details

Constellation Information

Select a star or constellation

Sky Information

Visible Stars0
Visible Constellations0
LST1h 33m
Loading calculator...
📚

Documentation

Star Constellation Recognition App

The star constellation recognition app is an interactive sky map. It shows which stars, constellations, and planets appear in a chosen direction, from a chosen place, on a chosen date and time. Users set the view with sliders, buttons, or by dragging the map, and can click any star to see its details.

How the sky map works

The app does not use a camera, compass, or accelerometer. Instead, it calculates the true position of every star, planet, the Sun, and the Moon using standard astronomical formulas, based on three inputs:

  • Location: latitude and longitude, entered by hand or filled in automatically with the "Use my location" button (this uses the device's GPS, or the browser's location service).
  • Time: any date and time. It defaults to the current moment and can be reset with the "Now" button.
  • View direction: where in the sky the map is centered, and how wide a slice of sky it shows.

Because every position comes from calculation rather than a live camera feed, the map works the same whether it is day or night, cloudy or clear.

Setting the view direction

Three controls set what part of the sky is on screen:

  • Azimuth: the compass direction the view faces, from 0° (north) through 90° (east), 180° (south), and 270° (west), up to 359°.
  • Altitude: how high above the horizon the view is centered, from -20° (slightly below the horizon) up to 89° (nearly overhead).
  • Field of view: how wide a slice of sky is shown, from 10° (a narrow, zoomed-in view) to 120° (a wide view).

Quick-navigation buttons jump straight to north, east, south, or west at a fixed altitude of 30°, or to the zenith (straight overhead, altitude 89°). The map itself can also be dragged to look around, and scrolled or pinched to zoom, which changes the field of view.

Identifying a star or constellation

Clicking any star on the map opens an information panel showing:

  • The star's common name (or a catalog number if it has no common name)
  • Its apparent magnitude, a measure of brightness where lower numbers are brighter
  • Its right ascension and declination, the sky's version of longitude and latitude
  • Its current altitude and azimuth from the observer's location
  • The constellation it belongs to, with the number of stars that make up that constellation's outline

A "Copy Information" button copies these details as text. The app also reports how many stars and constellations are currently visible in the frame, and the local sidereal time, a clock based on the rotation of the sky rather than the Sun.

How altitude and azimuth are calculated

A star's position in the sky, given as altitude (height above the horizon) and azimuth (compass direction), depends on the observer's latitude, the star's right ascension and declination, and the local sidereal time. The local sidereal time measures how far the sky has rotated since a reference point, and is used to work out the star's hour angle:

Hour angle (H) = Local sidereal time − Right ascension

Altitude and azimuth then follow from:

sin(altitude) = sin(latitude) × sin(declination) + cos(latitude) × cos(declination) × cos(H)

azimuth = atan2(−cos(declination) × sin(H), sin(declination) − sin(latitude) × sin(altitude)), adjusted to fall between 0° and 360°

Worked example

Sirius, the brightest star in the night sky, has a right ascension of about 6h 45m and a declination of about −16° 43′. For an observer at latitude 40.7° N, longitude 74.0° W (New York City) at 10:00 p.m. Eastern Standard Time on January 15, 2026:

  1. The local sidereal time at that moment works out to about 5h 46m.
  2. The hour angle is the local sidereal time minus the right ascension: 5h 46m − 6h 45m ≈ −0h 59m, or about −14.7°.
  3. Plugging the hour angle, declination, and latitude into the formulas above gives an altitude of about 31° and an azimuth of about 164° (roughly south-southeast).

So at that time, from that location, Sirius sits about a third of the way up the sky, a little east of due south. The app performs this same calculation for every visible star whenever the location, time, or view changes.

Star and constellation data

The app's built-in catalog holds more than 1,600 stars, drawn from the HYG stellar database, and includes stars down to roughly magnitude 6.5. The map itself shows a smaller slice of that catalog at any moment: stars brighter than about magnitude 4.6 when the field of view is wide, up to about magnitude 5.3 when zoomed in on a narrow field of view. All 88 constellations recognized by the International Astronomical Union are included, each drawn as a stick-figure outline connecting its stars. The app also plots the Sun, the Moon (with its current phase), and the five planets visible to the naked eye: Mercury, Venus, Mars, Jupiter, and Saturn.

Once the page has finished loading, no further network access is needed. The star catalog is bundled with the page, and every position is calculated in the browser.

Understanding right ascension and declination

Astronomers fix a star's place in the sky using two coordinates that do not change much over a human lifetime, unlike altitude and azimuth, which shift as the sky turns and as the observer moves.

  • Right ascension works like longitude for the sky. It is measured in hours, from 0 to 24, going eastward.
  • Declination works like latitude for the sky. It is measured in degrees, from −90° to +90°, with 0° along the celestial equator.

Because these coordinates stay fixed relative to the stars, star charts and catalogs list positions this way, and the app converts them into altitude and azimuth for the observer's specific place and time.

Best conditions for stargazing

A few real-world conditions make it easier to match the app's sky map to what is actually visible overhead:

  • Dark skies: light from cities washes out faint stars; a location away from bright lights shows more of them.
  • Clear weather: clouds block the view regardless of what the map predicts.
  • New moon: a bright Moon lightens the sky and hides faint stars.
  • Dark adaptation: human eyes take 20 to 30 minutes to fully adjust to darkness.

Frequently asked questions

Does the app use my device's camera or compass to find stars? No. It calculates positions from the date, time, and location entered into it, and displays them on a flat map that the user can pan and zoom.

How accurate are the star positions? The underlying formulas place stars to within about a tenth of a degree, and planets to within about a degree. The main source of error in practice is an incorrect location or time.

Can the app be used during the day? Yes. It calculates positions for any time, including daylight hours, though real stars are not visible to the eye in a bright sky. The map's background shifts color to reflect daylight, twilight, or night at the chosen time and place.

Does it work without an internet connection? Yes, once the page has loaded. The star catalog and all calculations run locally in the browser, with no further network requests needed.

How many stars and constellations does it show? The catalog includes more than 1,600 stars and all 88 IAU-recognized constellations. Only stars above the current magnitude limit, which depends on the field of view, are drawn at any one time.

Can it show the Moon and planets, not just stars? Yes. The Moon, shown with its current illuminated phase, and the five naked-eye planets are plotted alongside the stars.

References

  1. International Astronomical Union. "The Constellations." iau.org/public/themes/constellations
  2. Meeus, Jean. Astronomical Algorithms. Willmann-Bell.
  3. HYG Stellar Database. github.com/astronexus/HYG-Database