The why, the who, the what, and the deeply honest technical how from a developer who remembers exactly when space stopped being a subject and became a place.
I grew up in Raipur, Chhattisgarh. Science class was a laminated solar system poster on the classroom wall and a textbook chapter that ended with a multiple-choice test. Space was something you memorised facts about. The distance between Earth and Mars. The number of moons Jupiter has. The year Pluto got demoted. Knowledge without feeling.
Then came a summer vacation trip to Kolkata and the Birla Planetarium.
I remember walking into that building and feeling immediately that something was different. The dome was enormous. The projector in the centre looked like it was from another world itself. We sat down. The lights dimmed. And then the ceiling became the sky not an illustration of a sky, not a diagram, but a living, breathing, rotating recreation of the actual night sky above Kolkata, at that exact moment, with every star in its precise position.
The presenter's voice came through the darkness: "That bright point you see there that's not a star. That's Jupiter. What you're looking at right now is a planet 600 million kilometres away."
I remember the silence in that room. Forty viewers , completely still, necks craned upward.
That was the moment space stopped being a chapter and became a place. A real, physical, enormous place that existed whether or not we paid attention to it and that we were, at that exact second, hurtling through at 30 kilometres per second around the Sun.
I've thought about that moment many times since.
In 2026, almost every child in India has a smartphone. NASA's entire archive of space data is publicly available and completely free.
The gap between those two facts is exactly what Space Explorer is trying to close.
Who This Is For
Space Explorer is built for kids aged 11β16. Specifically the ones who:
- Find school science "boring" but have watched every SpaceX launch on YouTube
- Know what a black hole is but have never seen a photo taken on Mars this week
- Are curious enough to explore if only someone made it easy and fun to start
This is not an app for aerospace engineers. It is not a study aid or a homework tool. It is a gateway to curiosity a digital version of that Kolkata planetarium ceiling, available on any phone, at any time, for any kid who has ever looked up and wondered.
What Space Explorer Actually Is
Space Explorer is a feature-rich web application. Every screen shows live NASA data. Nothing is simulated. Nothing is stock photography.
π΄ Mars Explorer A swipe deck of real photographs taken by NASA's Curiosity and Perseverance rovers. Swipe right to save to your album. Swipe left to skip. The photos are from this week's sols. Curiosity has been on Mars since 2012 and has taken over 1.4 million photographs there is no shortage of material, and every single one is publicly available.
βοΈ Asteroid Watch Powered by NASA's NeoWs API, showing every asteroid making a close approach in the next seven days. Each one gets a size comparison ("this is the size of a football field") and a D3.js orbital diagram. When an asteroid is classified as potentially hazardous and its miss distance is under 5 lunar distances, COSMO the app's mascot sweats.
π°οΈ Satellite Tracker A live 3D globe showing 500+ satellites in real-time orbital positions. The ISS is highlighted in yellow with a pulsing ring. SGP4 orbital propagation math runs entirely in a Web Worker so the globe stays at 60fps. Click any satellite for NORAD data and orbital details.
π Earth Then & Now NASA GIBS satellite imagery overlaid on a Leaflet map, with a drag slider revealing before-and-after images of natural events from NASA's EONET database. Seeing a glacier retreat or a wildfire scar between two satellite dates is more immediate than any statistic.
π Space Today Daily APOD hero image, EPIC Earth time-lapse from DSCOVR satellite, and "On This Day" NASA history cards for the current date across all decades of the space programme.
π Exoplanet Finder Over 3,000 confirmed exoplanets from the NASA Exoplanet Archive plotted on a D3 scatter chart. Sized by planetary radius, coloured by temperature classification, with Earth and Mars as labelled anchors. Filter by habitable zone membership, discovery method, or temperature range.
πΊοΈ Planet Maps Moon, Mars, and Vesta surface explorers using NASA Trek WMTS tiles. Every historic landing site pinned Apollo 11, Curiosity, Perseverance, InSight, Opportunity. Click a pin for the mission story.
𧬠Bio Lab Space changes biology in profound ways. NASA's Open Science Data Repository holds hundreds of experiments on how microgravity, radiation, and isolation affect living organisms. Bio Lab surfaces these with D3 gene expression heatmaps real science that most kids have never heard of, and that is genuinely fascinating.
π Daily Brief APOD + top 3 asteroids + solar weather events from DONKI, fed to Gemini via Vercel AI SDK, written back in the voice of an enthusiastic space camp counsellor. Streams word by word.
The Technical Build
Stack
Next.js 16, React 19, TypeScript, TanStack Query v5, Framer Motion, Zustand, Tailwind CSS, Three.js via react-globe.gl, D3.js, Leaflet via react-leaflet, Vercel AI SDK with Gemini, and satellite.js for SGP4 orbital math. Self-hosted fonts: Fredoka One for headings, Nunito for body text, Space Mono for all data values (coordinates, sol numbers, distances).
The absolute rule that underpins everything: the NASA API key never touches the client. Every NASA call goes through a Next.js Route Handler. Client components call /api/nasa/mars. They never call api.nasa.gov directly.
The Mars API, Where It Got Real
NASA exposes two entirely different APIs for rover photos, and they behave very differently in production:
Primary mars.nasa.gov:
Custom condition_N filter syntax, no API key required, zero rate limiting, very fast. But intermittently returns 403 HTML instead of JSON on server-side fetches, because it expects the same session cookie your browser has from visiting mars.nasa.gov directly. A Next.js server fetch has no such cookie.
Fallback api.nasa.gov:
Fully documented, always returns JSON, rate-limited at 1,000 requests per hour. Different field names for the same data.
The solution is a silent dual-source proxy:
Both sources are normalised into a single MarsPhoto interface. The source field is preserved and shown as a small badge on each swipe card.
The CloudFront Cache Bug
When switching from mission=msl to mission=nsyt (InSight), CloudFront was returning the identical cached response same ETag, same body, wrong mission entirely. The CDN's 120-second max-age window treated both URLs as the same cache entry.
Diagnosis: reading raw response headers in Postman and noticing two different mission queries returning identical ETags. Fix: Cache-Control: no-cache on every server-side mars.nasa.gov fetch, plus a timestamp parameter when absolute cache-busting is required.
Sol Bootstrapping
Curiosity is on Sol 4870+. Querying a sol with no photos looks identical to a broken API both return an empty array. The manifest endpoint solves this:
The UI exposes these five recent sols as quick-pick pills. A first-time user gets a full photo deck immediately. Understanding what a sol is comes naturally, later, when they're curious enough to ask.
Satellite Tracker The Web Worker Rule
SGP4 orbital propagation is moderately expensive trigonometric math. At 500 satellites, on every animation frame, it cannot run on the main thread. It runs in a dedicated Web Worker. Positions come back to the globe component via a useRef not useState so satellite movement never triggers a React re-render. The requestAnimationFrame loop reads the ref and updates the globe directly. 60fps, always.
The Living Documentation
A CLAUDE.md file in the project root captures every API quirk discovered during development: the CloudFront cache TTL, the fact that mars.nasa.gov returns HTML on 403s, the InSight valid sol range (0β1092), every field name mapping between primary and fallback sources. It's read at the start of every session. The best documentation isn't what a function does it's what will silently break if you forget it exists.
What I Learned
The gap between "API exists" and "kid sees the data" is filled with real problems. 403 errors, CDN caching bugs, undocumented field names, rate limit cliffs. This is the actual work.
Fallbacks are architecture, not workarounds. A resilient app switches lanes silently when one upstream breaks. Kids should never see a blank screen because NASA had a bad afternoon.
Emotion drives engagement, not data volume. COSMO sweating at an asteroid does more pedagogical work than a hazard classification badge. The Birla Planetarium didn't hand out data sheets. It turned off the lights.
Web Workers are not optional for frame-rate-sensitive math. SGP4 on the main thread kills the globe. This is a baseline requirement, not an optimisation.
Document the quirks that will bite you at midnight. The obvious stuff is obvious. The CloudFront caching the wrong mission is what sinks a ship.
What's Next
Fourteen build phases. Phase 8 Mars Explorer is in active development. Ahead: Exoplanet Finder, Planet Maps, Space Today, Bio Lab, and full Vercel deployment.
The goal is simple: a kid in Raipur who doesn't have a school trip to Kolkata planned who may never stand under that dome should still be able to look at their phone and feel the lights go down.
Space is a place. It always was. It just needed a better door.
Built by Pranshu Basak with Next.js, React 19, Framer Motion, D3.js, Three.js, NASA Open APIs, Gemini, and the memory of a planetarium ceiling in Kolkata.


