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:

  1. In-Browser Python 3.12 Execution (Pyodide WebAssembly): Zero installation required and zero student code sent to external servers.
  2. Live Memory Board: Displays every active variable, its data type (int, float, str, list, dict), and its real-time value immediately after execution.
  3. 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.
  4. 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.
  5. 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.7 d_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) for python_stdlib.zip via Blob 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 & Lookup and NASA NeoWs
    • NASA Curiosity REMS Weather and Perseverance Mars 2020 Raw Images
    • NASA/NOAA DSCOVR EPIC, NASA EONET v3, and NASA Langley POWER
    • NASA Exoplanet Archive TAP, NASA APOD, and NASA Images and Video Library

Challenges we ran into

  1. Pyodide Initialization Failure (PYTHONHOME = '/'): Stale Service Workers or mismatched MIME types corrupted python_stdlib.zip during boot. We solved this by serving [email protected] assets locally with strict application/zip, application/wasm, and X-Content-Type-Options: nosniff headers, unregistering old Service Workers on startup, and validating the ZIP header before loading WebAssembly.
  2. Rate Limits on api.nasa.gov: We implemented an in-memory TTL cache, throttled sequential queries for JPL Horizons, and an official fallback pipeline via images-api.nasa.gov to 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 / FITS imports from NASA archives for in-browser analysis with numpy and pandas.
  • Adding multiplayer classroom challenges and team leaderboards.

Built With

Share this project:

Updates

Submission history