I built an Android app that teaches you to find exoplanets. Here's everything that broke.
I'm a B.Tech AI & CS student in Pune, and I wanted a project that was more than a to-do app. So I...
I'm a B.Tech AI & CS student in Pune, and I wanted a project that was more than a to-do app. So I built AstroPulse: an Android app that teaches you how astronomers find planets around other stars, using real methods and real NASA data.
Every day you get one new star. You look at its data, decide whether a planet is hiding in it, and the app scores you and explains why. No astronomy background needed.
This post is about how it works and, more usefully, what went wrong.
The core idea: finding a planet in noisy data
When a planet passes in front of its star, the star dims by a tiny amount, often under 1%. The hard part is that stars also wobble on their own (spots rotating into view) and throw off flares. A planet's dip is hidden under all of that.
The app walks you through what astronomers do:
Clean the data. Fit a slow trend (a Savitzky-Golay filter), drop flares, divide by the trend. The wobble goes flat and the dips stay. Fold on a trial repeat time. Stack the data every N days. When N is right, all the dips pile into one clear notch. Measure. Depth is normal brightness minus the bottom of the dip. A planet's width compared with its star is the square root of that depth, so a 1% dip means a planet one tenth as wide as its star. Check for false alarms. Two stars eclipsing each other can look like a planet, but their alternate dips often differ in depth, or there is a second dip halfway round the orbit.
To automate the "find the repeat" step I used a Box Least Squares search, which tries many periods and scores how well a box-shaped dip fits.
I wanted it to cover more than one method, so there are five puzzle types: dimming (transit), wobble (radial velocity), flash (microlensing), position (astrometry) and photo (direct imaging). Each has its own generator and its own way to answer.
The stack Next.js 16, React 19, TypeScript, Tailwind 4 for the app Capacitor 8 to wrap a static export as a native Android app Vercel for a small server that pulls live data from the NASA Exoplanet Archive and MAST (TESS and Kepler light curves) Vitest, ESLint and axe for tests, lint rules and accessibility checks GitHub Actions to type-check, lint, test and build the APK
Sumber artikel open-source oleh Wimoron di DEV Community — Baca artikel asli. Topik:
#nextjs#android#github

Komentar