Skip to content

About

An interactive storytelling quiz game inspired by NASA exploring solar flares and auroras. It features different characters, multilingual support (11+ languages), and gamified science learning to make space education fun, engaging, and accessible worldwide.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

12 Commits

Folders and files

Repository files navigation

β˜€οΈ NASA Space Weather Exploration Hub Hackathon

An Interactive, Multilingual Heliospheric Odyssey

CI - Build & Test Deploy to GitHub Pages React Vite Tailwind CSS Framer Motion Recharts License: MIT


NASA Space Weather Exploration Hub Banner

Explore the cosmic superhighway connecting the Sun and Earth.
Immerse yourself in solar flare dynamics, Coronal Mass Ejections (CMEs), geomagnetic storms, and dancing auroras through interactive graphic novels, multilingual voice transmissions, science dossiers, telemetry analytics, and space trivia.

πŸš€ Explore Features β€’ πŸ“– Story Comic β€’ πŸ“Š Telemetry Charts β€’ βš™οΈ GitHub Workflows β€’ πŸ› οΈ Getting Started


πŸ“‘ Table of Contents


🌌 About the Project

Space weather originates 150 million kilometers away in the turbulent, thermonuclear furnace of our Sun. Eruptions such as Solar Flares and Coronal Mass Ejections (CMEs) fling billions of tons of magnetized plasma across the solar system at speeds exceeding thousands of kilometers per second.

When these solar storms impact Earth's magnetosphere, they trigger majestic auroras borealis/australis, but also present critical hazards:

  • Satellite & Telecommunication disruption (High Frequency radio blackout, GPS scintillation)
  • Power grid induced currents (GICs) capable of burning high-voltage transformers
  • Radiation risks to astronauts in low Earth orbit and deep space exploration

The NASA Space Weather App bridges cutting-edge space science and public education with an ultra-responsive, gamified, and multilingual graphic platform.


✨ Key Features & Screenshot Showcase

1. High-Tech Cosmic Dashboard

A futuristic command center highlighting the Sun-Earth cosmic superhighway, mission metrics, and quick navigation modules.

  • Real-time cosmic constants (149.6M km Earth-Sun distance, 8.3 min photon transit).
  • Responsive glassmorphism cards with glowing aurora accents and fluid hover states.
  • High-contrast sci-fi typography with curated dark-mode color harmonies.
Cosmic Dashboard Screenshot

2. Multilingual Graphic Novel & Sci-Fi Audio Transmission

Follow "Sunny" the energetic solar particle on an epic voyage from the Sun's core across interplanetary space to Earth's upper atmosphere.

  • 11 Global Languages Supported: English (en), Urdu (ur), Turkish (tr), Spanish (es), Italian (it), Hindi (hi), Japanese (ja), Portuguese (pt), Afrikaans (af), Arabic (ar), French (fr).
  • Interactive Speech Synthesis (TTS): Built-in voice transmissions allow users to listen to narrated dialogue in their chosen language with one click.
  • Holographic Comic Panels: Framer Motion staggered viewports and animated glow borders emulate astronaut Heads-Up Displays (HUDs).
Multilingual Graphic Novel Screenshot

3. Pioneers of Heliospheric Science

Honoring the visionaries who unraveled the mysteries of solar magnetic storms and auroral physics.

  • Richard Carrington (1859): Documented the legendary white-light solar flare and geomagnetic superstorm that caused telegraph lines to spark and auroras visible down to the Caribbean.
  • Kristian Birkeland: Demonstrated that auroral displays are powered by electrical currents (Birkeland currents) connecting Earth's upper atmosphere to interplanetary space.
  • Dr. Lulu Zhao: Modern space physicist pioneering predictive machine-learning models to forecast solar energetic particles (SEPs).
Space Pioneers Dossier Screenshot

4. Interactive Space Weather Challenge

Gamified trivia challenges to reinforce solar science, atmospheric physics, and heliosphere concepts.

  • Dual Quiz Modes: General Heliophysics Challenge and Pioneers of Space Science Trivia.
  • Real-time progress tracker, dynamic score calculation, and instantaneous feedback badges.
  • Smooth animations powered by Tailwind CSS and Framer Motion.
Interactive Quiz Screenshot

5. Space Weather Telemetry & Analytics

Data-driven telemetry visualizations illustrating the occurrence and distribution of solar phenomena.

  • Dynamic toggle between Responsive Bar Charts and Interactive Donut/Pie Charts.
  • Custom dark-mode tooltips rendering exact event counts and impact categories.
  • Real-time metrics breakdown for Solar Flares, Auroral Storms, and Satellite Anomalies.
Telemetry Analytics Screenshot

πŸ”­ Heliophysics Science Deep-Dive

Cosmic Phenomenon Typical Speed / Energy Travel Time to Earth Terrestrial & Orbital Impact
Solar Flare (Electromagnetic Radiation) Speed of Light ($c \approx 300,000\text{ km/s}$) ~8.3 Minutes Immediate ionization of Earth's day-side ionosphere; high-frequency radio blackouts (R1–R5 scale).
Solar Energetic Particles (SEPs) Up to $0.8c$ (relativistic protons) 20 Minutes to Several Hours Radiation hazard to astronauts, satellite single-event upsets (SEUs), polar cap absorption events (S1–S5 scale).
Coronal Mass Ejections (CMEs) $300\text{ km/s}$ to $>2,500\text{ km/s}$ 15 to 72 Hours Severe geomagnetic storms (G1–G5 scale); auroral substorms, electrical grid transformer burnout, pipeline corrosion.
Solar Wind Streams (Coronal Holes) $400\text{ km/s}$ to $800\text{ km/s}$ Continuous / Recurring Recurrent minor to moderate geomagnetic activity, satellite orbital drag enhancement.

πŸ› οΈ Tech Stack & Architecture

Layer Technology Purpose
Core Framework React 19 Component architecture, state hooks, and virtual DOM rendering.
Build & Bundler Vite 7 Ultra-fast Hot Module Replacement (HMR) and optimized Rollup production builds.
Routing React Router 7 Client-side declarative routing (/, /story, /characters, /quiz, /charts).
Styling & UI Tailwind CSS 3/4 Curated dark sci-fi color palette, cosmic glow keyframes, and glassmorphism utilities.
Animations Framer Motion 12 Staggered entrance transitions, interactive card hover states, and smooth layout changes.
Data Visualization Recharts 3 Responsive SVG Bar and Pie charts with customized cosmic tooltips.
Audio Engine Web Speech API Cross-browser text-to-speech engine supporting 11 languages without external dependencies.
CI / CD Workflows GitHub Actions Automated linting, test builds, and GitHub Pages continuous deployment.

πŸ“‚ Project Directory Structure

nasa-space-weather-app/
β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       β”œβ”€β”€ ci.yml                 # Continuous Integration (Lint + Build)
β”‚       └── deploy.yml             # GitHub Pages automated deployment
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ assets/
β”‚   β”‚   └── banner.jpg             # High-res widescreen README hero banner
β”‚   └── screenshots/
β”‚       β”œβ”€β”€ 01-hero-dashboard.png
β”‚       β”œβ”€β”€ 02-multilingual-comic-story.png
β”‚       β”œβ”€β”€ 03-space-pioneers.png
β”‚       β”œβ”€β”€ 04-interactive-quiz.png
β”‚       └── 05-telemetry-analytics.png
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ images/                    # Character portraits & comic illustrations
β”‚   └── vite.svg
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ assets/                    # Project icons and static assets
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ CharacterCard.jsx      # Pioneer biography card component
β”‚   β”‚   β”œβ”€β”€ Charts.jsx             # Recharts Bar & Pie telemetry visualizer
β”‚   β”‚   β”œβ”€β”€ ComicPanel.jsx         # Holographic story panel with TTS
β”‚   β”‚   β”œβ”€β”€ Navbar.jsx             # Glassmorphic sci-fi navigation header
β”‚   β”‚   β”œβ”€β”€ Quiz.jsx               # Gamified question engine
β”‚   β”‚   └── Story.jsx              # Multilingual story container
β”‚   β”œβ”€β”€ data/
β”‚   β”‚   β”œβ”€β”€ characterQuizData.js   # Pioneer trivia bank
β”‚   β”‚   β”œβ”€β”€ chartsData.js          # Space weather telemetry statistics
β”‚   β”‚   β”œβ”€β”€ impactsData.js         # Historical scientists dossiers
β”‚   β”‚   β”œβ”€β”€ quizData.js            # General heliophysics questions
β”‚   β”‚   └── storyData.js           # 11-language graphic novel dialogue script
β”‚   β”œβ”€β”€ hooks/
β”‚   β”‚   └── useTTS.js              # Web Speech API custom hook
β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”œβ”€β”€ CharactersPage.jsx     # Pioneers of Science view
β”‚   β”‚   β”œβ”€β”€ ChartsPage.jsx         # Telemetry & Analytics view
β”‚   β”‚   β”œβ”€β”€ HomePage.jsx           # Mission Dashboard & Hero Portal
β”‚   β”‚   β”œβ”€β”€ QuizPage.jsx           # Space Challenge view
β”‚   β”‚   └── StoryPage.jsx          # Interactive Graphic Novel view
β”‚   β”œβ”€β”€ App.jsx                    # Root application component & layout
β”‚   β”œβ”€β”€ index.css                  # Tailwind styles & cosmic animations
β”‚   └── main.jsx                   # React entry point
β”œβ”€β”€ package.json                   # Dependencies and npm scripts
β”œβ”€β”€ tailwind.config.js             # Cosmic color tokens & animation keyframes
└── vite.config.js                 # Rollup chunking & relative base configuration

πŸš€ Getting Started

Prerequisites

  • Node.js: v18.0.0 or higher (v20.x recommended)
  • npm: v9.0.0 or higher

Local Installation

  1. Clone the repository:

    git clone https://github.com/binarylaiba/-NASA-Space-Weather-Exploration-Hub-Hackathon.git
    cd nasa-space-weather-app
  2. Install project dependencies:

    npm install
  3. Start the local development server:

    npm run dev

    Open your browser and navigate to http://localhost:5173/.

  4. Build for production:

    npm run build

    The optimized production bundle will be generated in the dist/ directory.

  5. Preview production build locally:

    npm run preview

Tip

Windows Users: If executing npm scripts in PowerShell triggers execution policy errors, run using cmd.exe /c "npm run dev" or execute Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned.


πŸ€– Automated GitHub Workflows (CI/CD)

The project includes two pre-configured, production-grade GitHub Actions workflows located in .github/workflows/:

1. ci.yml β€” Continuous Integration

Runs automatically on every push and pull_request targeting main or master:

  • Checks out the repository code.
  • Sets up Node.js with dependency caching.
  • Installs packages via clean npm ci.
  • Runs ESLint validation.
  • Executes npm run build to guarantee zero build breakage before merging.

2. deploy.yml β€” GitHub Pages Deployment

Deploys the static production build directly to GitHub Pages upon every push to main:

  • Automatically builds the application bundle using Vite's relative base configuration (base: './').
  • Bundles distribution assets via actions/upload-pages-artifact.
  • Deploys safely with concurrency control via actions/deploy-pages.

How to Enable GitHub Pages on your Fork:

  1. Go to your repository on GitHub.
  2. Navigate to Settings > Pages.
  3. Under Build and deployment > Source, select GitHub Actions.
  4. Push to main β€” your site will deploy live at https://<your-username>.github.io/nasa-space-weather-app/!

πŸ—ΊοΈ Roadmap

  • Multilingual comic reader with 11 language support.
  • Text-to-Speech audio transmission playback.
  • Interactive Space Weather Quiz with category selection.
  • Telemetry analytics with dynamic Bar/Pie visualizations.
  • Automated GitHub Actions CI and Pages deployment workflows.
  • Live integration with NASA DONKI (Database of Notifications, Knowledge, and Information) API.
  • 3D interactive Solar System view with Three.js / WebGL.
  • Push notification alerts for incoming solar storms (Kp $\ge$ 5).

🀝 Contributing

Contributions make the open-source space community thrive! If you'd like to improve the app, add more comic scenes, or expand translations:

  1. Fork the Project
  2. Create your Feature Branch:
    git checkout -b feature/CosmicFeature
  3. Commit your Changes:
    git commit -m "feat: add real-time solar wind speed tracker"
  4. Push to the Branch:
    git push origin feature/CosmicFeature
  5. Open a Pull Request

πŸ“œ License & Acknowledgments

Distributed under the MIT License. See LICENSE for more details.

Acknowledgments & Scientific Data Sources

  • NASA Heliophysics Science Division & NASA Open Data Portal
  • Solar Dynamics Observatory (SDO) & SOHO (Solar and Heliospheric Observatory)
  • NOAA Space Weather Prediction Center (SWPC) for solar storm scale definitions
  • Built with passion for the NASA Space Apps Challenge πŸš€

About

An interactive storytelling quiz game inspired by NASA exploring solar flares and auroras. It features different characters, multilingual support (11+ languages), and gamified science learning to make space education fun, engaging, and accessible worldwide.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages