Inspiration

Some of my favourite memories are camping trips with my dad, lying out after dark and looking up at the stars. We always wanted to know what we were looking at, so over the years we tried a lot of stargazing apps, but none of them really worked for us. The star maps often didn't line up with the real sky, the overlays drifted whenever we moved the phone, and many of them were cluttered and hard to use in the dark. Most nights we gave up on the apps and just looked. The apps also never helped us find good places to stargaze. Our best nights came from tips from people we knew, like a friend who mentioned a dark field off a back road or a campsite with a clear view of the horizon. Those spots were always better than anything we found online, because they came from people who had actually been there and seen the sky themselves. That's where Star Gaze came from. We wanted an app that shows you the sky accurately: you point your phone up and see the stars and constellations that are actually there, based on your location and how you're tilting the phone, and you can tap any of them to learn more. We also wanted it to share good stargazing spots and the constellations people have found with friends, so that good spots get passed along the way my dad and I used to hear about them. We built Star Gaze for anyone who has looked up and wondered what they were seeing, and for anyone who has gone looking for a good dark sky.

What it does

StarGaze is a stargazing app where you collect constellations. Point your phone at the sky and the app shows you which constellations are above you. By focusing on one and pressing capture, you can add the constellation to your collection, then see how you rank against your friends on the weekly leaderboard. Each capture also snaps a photo of the sky and counts how many stars are visible, and if the photo is clear (no clouds, fog or streetlights in the way), it's used to create a crowd-sourced light-pollution map.

How we built it

StarGaze is an iOS app built in SwiftUI, with an augmented-reality sky view that places real constellations from a local database using the phone's GPS, compass and motion sensors. When you capture a constellation, the app switches to the camera, takes a long-exposure photo with fixed settings, and runs a star-detection algorithm to count the stars that are actually visible. The Gemini API then reviews each photo and filters out photos with clouds, fog, streetlights and blur, so only clean photos count. Auth0 handles login, and Supabase stores user profiles, friends, captures and the light-pollution readings shown on the map.

Challenges we ran into

Our biggest early hurdle was simply deciding what to build. We spent the first several hours bouncing between ideas before settling on Star Gaze, and even then we had to make sure it solved a real problem rather than just looking cool. Stargazing apps already exist, so standing out from competitors forced us to think hard about what they lacked and what would actually help someone planning a night under the sky. That led us to focus on combining live cloud cover and light pollution data into one clear answer: is tonight worth going out? On the technical side, working in parallel on a shared SwiftUI codebase meant constant merge conflicts, especially in Xcode project files. That taught us to communicate better about who was touching what and to commit in smaller, more frequent chunks.

Accomplishments that we're proud of

We're proud of how much we pushed through, staying up until 5:00 a.m. to bring Star Gaze to life, all while it was some of our members' very first hackathon. Despite the learning curve, we shipped a working app with real data behind it. We integrated Supabase as our backend to store and sync user data, and built a light pollution feed powered by Gemini that turns raw readings into clear, useful insights about viewing conditions. One of our biggest wins was fixing our Open-Meteo API integration: the cloud cover data we were first pulling was too low-resolution to be meaningful for stargazing, so we reworked how we requested and processed it to get more accurate, location-specific forecasts. Seeing all of these pieces come together in one polished SwiftUI app made every late-night bug worth it.

What we learned

Hack Western was my first hackathon, and the biggest thing I learned was how to work as part of a team. I'm applying for my first job this year, and I was nervous about working with people I didn't know. This weekend showed me that meeting new people is nothing to be scared of. The mentors and staff were also really helpful, and whenever we got stuck they helped us work through the problem, which made a big difference in getting our idea working. Picking an idea was part of that teamwork too. We went through a lot of options, including a travel app, a rover design, and something about Premier League soccer, before we chose stargazing. We all thought it was a cool idea, and some of us had strong memories of stargazing with family and friends, so having that personal connection kept everyone motivated. On the technical side, we learned how important it is to write clear commit messages. At the start we didn't really know what we were doing with Git, and we pushed code with vague messages or none at all, so when someone pulled the latest changes, nobody could tell what had changed or why. That caused merge conflicts, and several times we had to use Claude to help sort out whose changes went where, which cost us time we didn't have. Now we know to write a short, clear message with every commit and to pull before we push, so we catch conflicts early instead of at the last minute.

What's next for StarGaze

Our first priority is growing our user base. The light pollution map only gets better with more data, so we want to get StarGaze into the hands of as many stargazers as possible, from astronomy clubs and campus groups to casual skywatchers on a camping trip. Once the map has enough coverage, we plan to make the data openly available, likely through our own public API. Researchers, environmental groups and city planners could then pull up-to-date light pollution readings into their own work, whether that's studying how artificial light affects wildlife or deciding where to install dark-sky-friendly street lighting. Our goal is for every user's night of stargazing to help protect the night sky for everyone.

Built With

Share this project:

Updates

Submission history