Inspiration
Millions of Arabic-speaking students face a double barrier when learning programming and scientific data analysis: English-only interfaces and error messages, and the inability to visualize what actually happens inside memory during code execution—alongside traditional examples disconnected from real space missions. We built Mr. Zero | Interactive Python & Space Data Visualizer to connect learning Python 3.12 directly with live NASA mission data.
What it does
Mr. Zero is an interactive, Arabic-first (RTL) Python laboratory that runs entirely in the browser alongside an official NASA data aggregator server. Key features include:
- In-Browser Python 3.12 Execution (Pyodide WebAssembly): Zero installation required and zero student code sent to external servers.
- Live Memory Board: Displays every active variable, its data type (
int,float,str,list,dict), and its real-time value immediately after execution. - Arabic Error Explainer & PEP 8 Linter: Pinpoints the exact failing line, explains the traceback in clear Arabic, and suggests automatic fixes without requiring external AI keys.
- 7 Applied Lessons & 5 Live NASA Data Quizzes: Covers the International Space Station (ISS), Mars weather from the Curiosity rover, Near-Earth Objects (NEOs), exoplanets, and handling missing datasets.
- Hologram Theater & Full NASA Entity Dossier: Selecting any planet, spacecraft, asteroid, or exoplanet (29 3D/visual models + SBDB and Exoplanet tables) fetches its complete dossier—official imagery, live position/velocity vectors, orbital elements, 7-sol Mars weather, and ready-to-run Python plotting code with one click.
Orbital & Space Math Modeling
Students apply real astronomical equations directly to live aggregated NASA datasets:
- Converting Asteroid Astronomical Distance (d_AU) to Lunar Distance (d_LD) and Kilometers:
d_km = d_AU * 149,597,870.7d_LD = d_km / 384,400 - Calculating Instantaneous Spacecraft Orbital Speed from 3D Velocity Vectors (vx, vy, vz) via JPL Horizons:
||v|| = sqrt(vx^2 + vy^2 + vz^2) - Estimating Exoplanet Distance in Light-Years from Parsecs (d_pc):
d_ly = d_pc * 3.26156
How we built it
- Frontend: React 18, TypeScript, and Tailwind CSS featuring a native Arabic RTL layout, code editor, interactive space plotting
Canvas, and Zero Pro study tools (flashcards, Pomodoro timer, and quizzes). - In-Browser Python Engine:
Pyodide 0.26.4(CPython 3.12 compiled to WebAssembly) hosted locally from/pyodide/with binary header validation (PK\x03\x04) forpython_stdlib.zipviaBlob URL. - Backend & Official NASA Integrations: Express + TypeScript (compatible with Vercel Serverless Functions) connecting to 11 official NASA APIs with zero mock data:
NASA/JPL Horizons(ISS, 8 planets, and 29 celestial bodies/spacecraft)JPL SBDB CAD & LookupandNASA NeoWsNASA Curiosity REMS WeatherandPerseverance Mars 2020 Raw ImagesNASA/NOAA DSCOVR EPIC,NASA EONET v3, andNASA Langley POWERNASA Exoplanet Archive TAP,NASA APOD, andNASA Images and Video Library
Challenges we ran into
- Pyodide Initialization Failure (
PYTHONHOME = '/'): Stale Service Workers or mismatched MIME types corruptedpython_stdlib.zipduring boot. We solved this by serving[email protected]assets locally with strictapplication/zip,application/wasm, andX-Content-Type-Options: nosniffheaders, unregistering old Service Workers on startup, and validating the ZIP header before loading WebAssembly. - Rate Limits on
api.nasa.gov: We implemented an in-memory TTL cache, throttled sequential queries for JPL Horizons, and an official fallback pipeline viaimages-api.nasa.govto ensure uninterrupted availability.
Accomplishments that we're proud of
- Bridging Arabic programming education with a live, unified data dossier from 11 official NASA/JPL sources for the first time.
- Zero Mock Data: Every metric, image, and telemetry value across the dashboard, dossiers, and lessons is fetched live from NASA endpoints.
- Production-ready deployment architecture supporting both local hosting and Vercel/Railway, complete with a built-in 7-slide pitch deck (
/pitch-deck.html).
What we learned
We learned how to architect a resilient WebAssembly Python runtime in the browser with standard library integrity checks, and how to build a unified astronomical data middleware that normalizes Horizons, TAP, REMS, and SBDB responses into an intuitive Arabic learning experience.
What's next for Mr. Zero | Interactive Python & Space Data Visualizer
- Offloading Pyodide execution into a dedicated Web Worker to prevent UI blocking during infinite loops (
while True). - Supporting direct
CSV / FITSimports from NASA archives for in-browser analysis withnumpyandpandas. - Adding multiplayer classroom challenges and team leaderboards.
Built With
- css3
- dscovr-epic
- exoplanet-archive
- express.js
- html5
- jpl-horizons
- mars-weather
- nasa-api
- nasa-apod
- nasa-eonet
- nasa-neows
- nasa-power
- node.js
- pyodide
- python
- react
- tailwindcss
- typescript
- vercel
- vite
- webassembly