Inspiration
It started with an argument under the night sky. One of us pointed at a bright dot and said it was Mars, someone else said Jupiter, and nobody actually knew. We tried a few stargazing apps, and they were fine at naming stars, but none of them made us want to keep learning. Like a lot of kids, we also once dreamed of becoming astronauts, and there's almost nothing that gives regular people even a small taste of what space training feels like.
So we set a simple goal: turn the phone that's already in your pocket into a window to space and a training ground for future explorers. No app store, no install — just open a link and point your phone at the sky.
What it does
- Live sky overlay. Point your phone at the sky and see the planets, the Moon (with its real phase), the Sun, ~70 bright stars and the major constellations labeled exactly where they are right now.
- See through the Earth. Point at the ground and you'll see what's below the horizon — including the Sun at night.
- Tap to learn. Every object opens a card with its altitude, direction, brightness, distance (including how long its light takes to reach you) and a fact.
- Astronaut Training missions. Ten missions like Celestial Navigator (find the North Star the way sailors did) or X-Ray Vision (find the Sun through the planet). An arrow guides you, and you complete a mission by holding the target in your crosshair — earning XP along the way.
- Time travel. Move the clock forward or back and watch the sky rotate.
- Live ISS tracking when you're online.
How we built it
We built Space AR as a website using JavaScript. It uses the phone’s camera, GPS and motion sensors. The app calculates where each planet is using real orbital data from NASA’s JPL, then works out where it should appear in the sky based on your location and the current time. To make sure our math was right, we compared it with a professional astronomy tool, and our results were accurate to about half a degree.
Challenges we ran into
The hardest part was making the stars stay still. Phone sensors are very noisy, so at first everything on the screen shook and jumped around, especially when the phone was held upright. We fixed it by smoothing the phone’s movement in a smarter way, and suddenly the sky stopped moving. That was one of our best moments. iPhones and Android phones also handle the compass differently, so we added an easy way to fix the direction by dragging your finger. Browsers also only allow camera and sensor access on secure websites and after the user taps a button, so we had to design the start screen around that.
Accomplishments that we're proud of
We’re proud that Space AR actually works in the real world. You open a link on your phone, point it at the sky, and the planets and stars show up where they really are. We checked our calculations against a professional astronomy tool, and our positions for the planets, the Sun and the Moon were accurate to about half a degree, which is smaller than the Moon looks in the sky.
We’re also proud that we built everything ourselves, without game engines or ready-made astronomy libraries. All the math for planet orbits, the Moon’s phase and turning sky coordinates into screen positions is our own code, and the whole app fits in one small file that loads in seconds.
Fixing the shaky stars was a big win for us. For a long time the sky jumped around on the screen, and when we finally made it stay still, it felt like the app came to life.
Finally, we’re proud that Space AR is easy for anyone to use. There’s nothing to install, it works on both iPhone and Android, and the missions turn learning about space into a game. Watching someone find the North Star for the first time with our app was the best moment of the whole project.
What we learned
We learned a lot about astronomy, much more than in school. We learned that sensor data never works perfectly out of the box, and that it’s important to check your results instead of just trusting them. We also learned that choosing what not to build is just as important as building.
What's next for Space AR
Next, we want to bring Space AR to Meta Quest so the sky can surround you in mixed reality, and let people pick planets with their hands. We also want to add more missions, alerts when the space station flies over you, a night mode, and bring Space AR to schools and astronomy clubs.