About
Projects
BlogWhere I write, think and learn.GallerySometimes I also take photos.WrappedA recap of what's been on rotation lately.
Blog
Gallery
Wrapped
© 2026 /Gilang Fatahilah

CISST: Real-time Night Sky Dashboard

Avatar
Gilang FatahilahApril 17, 2026
CISST: Real-time Night Sky Dashboard

Introduction

This project is a real-time night sky dashboard called CISST that stands for "Can I See Stars Tonight ?", built using React, TypeScript, and Vite. The main goal of this project was to create a location-aware astronomy companion that tells users exactly what is visible in the night sky: from the moon phase and visible planets to bright stars and constellations, combined with live weather data to assess actual viewing conditions. The application automatically detects the user's location, fetches real-time weather data, and performs astronomical calculations entirely on the client side to deliver an accurate and personalized sky-watching experience.

Key Features

  • Sun Tracker: Displays today's sunrise, sunset, golden hour, blue hour, day length, and solar noon times based on the user's coordinates.
  • Moon Phase Card: Shows the current moon phase name, phase emoji, illumination percentage, moonrise and moonset times with a live phase illustration.
  • Visible Planets: Lists naked-eye planets (Mercury, Venus, Mars, Jupiter, Saturn) with altitude, azimuth, magnitude, rise/transit/set times, and a real-time visibility badge.
  • Bright Stars & Constellations: Displays bright stars visible from the user's location tonight, grouped by constellation.
  • Tonight's Sky Highlights: Curated, context-aware highlight cards summarizing the most notable sky events for the evening (e.g., Full Moon, planet rising, clear skies).
  • Weather Integration: Pulls live cloud cover, temperature, humidity, and wind data from Open-Meteo to rate viewing conditions as Excellent, Good, Fair, or Poor.
  • Auto Location Detection: Automatically resolves user position via browser GPS with a reverse-geocode city name, with IP-based geolocation as fallback and a manual city search option.
  • Bilingual Support: Full English and Bahasa Indonesia interface switchable at runtime via a language toggle.
  • Real-Time Updates: Sky data recalculates every 60 seconds to stay current throughout the evening.

Technologies Used

  • Vite + React 19: Frontend build stack for fast development with instant HMR and optimized production builds.
  • TypeScript: Strict typing across all components, hooks, services, and astronomical data models.
  • Tailwind CSS v4: Utility-first CSS framework for building the dark-themed, glassmorphism UI.
  • SunCalc: Lightweight library for computing precise sun and moon positions and times.
  • Astronomy Engine: High-accuracy planetary ephemeris library for calculating planet altitudes, azimuths, magnitudes, and rise/set/transit times.
  • Open-Meteo API: Free weather API for fetching real-time cloud cover and meteorological data tied to the user's coordinates.
  • Zustand: Minimal global state management for location and language stores.
  • TanStack Query: Server-state management and caching layer for weather API calls.
  • Phosphor Icons: Consistent icon set used throughout cards and highlights.

Challenges and Learnings

The biggest challenges in this project were related to astronomical accuracy, location handling, and building an intuitive UI for complex data, especially:
  • Computing planet rise, transit, and set times correctly with edge cases like circumpolar bodies or planets that never rise above the horizon on a given night
  • Implementing browser GPS with reverse geocoding, IP-based fallback, and a city search all within a unified location flow
  • Designing a highlight generation system that intelligently selects and prioritizes the most relevant sky events from multiple data sources (moon, planets, stars, weather)
  • Handling timezone-aware time formatting consistently across all cards using the weather API's reported timezone
  • Structuring the i18n system in a fully type-safe way, including dynamic translation strings that accept runtime parameters
Through this project, I gained deep practical knowledge of astronomical algorithms, client-side data composition from multiple APIs, and how to present dense scientific data in a clean, readable interface.

Outcome

This project resulted in a fully functional, production-ready astronomy dashboard that gives stargazers an instant answer to the question: "Can I see stars tonight?". It integrates live weather, precise solar and lunar data, planetary positions, and star visibility into one cohesive dark-sky companion app. The architecture (with pure client-side astronomy calculations, a lightweight state layer, and a type-safe i18n system) makes the app fast, offline-tolerant for recalculations, and easy to extend with additional celestial objects or languages in the future.
Open live site

Related projects

Orbitari: Interactive 3D Model Solar System

Orbitari: Interactive 3D Model Solar System

November 14, 2026A static 3D website for exploring the Solar System with real planet positions for any date from year 1 to 9999, built with SvelteKit, Three.js, and astronomy-engine.
Typescript
SvelteKit
Three.js
Tailwind CSS
Vite
Avatar
Read moreView project
Nabungo: Building a Personal Finance App from Scratch

Nabungo: Building a Personal Finance App from Scratch

August 28, 2025Nabungo is a full-stack personal finance management app I built to solve my own money tracking problems, from zero idea to production using Laravel, Vue 3, and Inertia.js.
Laravel
Vue js
TypeScript
Tailwind CSS
PostgreSQL
Inertia.js
Avatar
Read moreView project
Kaiwaa: Real-Time Chat App with Socket.IO & MongoDB

Kaiwaa: Real-Time Chat App with Socket.IO & MongoDB

December 11, 2024Building a scalable real-time chat application using Socket.IO, Express, MongoDB, and JWT authentication with a modern full-stack architecture.
Typescript
React js
Tailwind CSS
Vite
Express
Mongo DB
Socket IO
Avatar
Read moreView project