A React-powered space exploration dashboard that brings the cosmos to your browser.
Inspiration
I didn't start this for a hackathon or a client. In July 2026, I just wanted to know two things: how real APIs behave outside tutorials, and how far I could push React before it got messy. Space was the obvious excuse.
What it does
Galaxy Lens is a multi-page space exploration app built with React, Tailwind CSS, and Framer Motion. It pulls live data from NASA and Wikipedia and presents it through a dark, glassmorphism interface with animated transitions.
Features:
- NASA APOD — Astronomy Picture of the Day with full description and high-res viewer
- Planetary Archive — interactive cards for all 8 planets with real stats
- Cosmic Age Calculator — enter your birth date, pick a planet, get your age there
- Moon Phase Widget — a draggable glowing moon showing current phase and next full moon
- Cosmic Vault — 20+ historic NASA images from 1946–2024
- A–Z Space Lexicon — 26 cosmic terms with definitions and floating icons
- Space News Hub — aggregated space news
- ISS Live Tracker — real-time ISS location
- Space Surprise (random facts, rare images, videos) and a Cosmic Alert System (meteor showers, solar events).
How I built it
Stack: React, React Router DOM, Framer Motion, Tailwind CSS, Tabler Icons, NASA APOD API, NASA Image Library API, Wikipedia API, HTML2Canvas.
The architecture is a set of route-level pages, each owning its own data fetching and local state. Shared UI primitives (cards, glass panels, buttons) live in a components layer. Framer Motion handles page transitions at the router level.
Challenges I ran into
APIs don't agree with each other.
NASA APOD returns one shape, the Image Library returns another, Wikipedia returns something else entirely. Early on I was normalizing response data in five different places. Fix: a small adapter layer so each page consumes a consistent shape.Async state got messy fast.
Multiple pages fetching on mount, some with loading states, some with error states, some with both. It taught me to keep fetching logic in one place per page and never let a component guess whether data exists.The moon widget was the hardest part.
A draggable, glowing moon that shows lunar phase sounds simple until you try to make it feel smooth on mobile. The first version lagged badly. I had to rethink how the drag interaction was handled and stop re-rendering the whole widget on every pointer move.Designing a consistent visual system solo.
Glassmorphism, particles, animated transitions—easy to make each page look different by accident. I had to define spacing, blur, and motion rules once and reuse them.
What I learned
- Working with multiple real APIs is mostly about normalizing inconsistency.
- Async state in React is cleanest when each page owns its own fetching and nobody else guesses.
- Performance problems in interactive UI are usually re-render problems, not animation problems.
Consistency in design comes from rules, not from taste.
Built with: react, react-router, framer-motion, tailwind-css, nasa-api, wikipedia-api, html2canvas



