You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Star0 (0)You must be signed in to star a repository
About
Interactive 3D astrophysics, orbital mechanics & space physics playground. Explore 25 verified physical laws with tactile formula sliders, real-time vector simulations, step-by-step math derivations, and adaptive practice challenges.
Cosmic Formula Playground is designed to help curious learners understand astronomy, astrophysics, orbital mechanics, and plasma physics visually and intuitively before confronting formal mathematical notation.
Every lesson presents concepts in a structured pedagogical order:
Everyday intuition & ELI5 concept
Animated real-time vector simulation stage
Tactile parameter blocks and live sliders
Instant numerical recalculation and unit breakdown
Formal mathematical derivation (collapsible)
Adaptive practice challenges and timed missions
⚙️ Interactive Parameter Sandbox (/sandbox)
The Formula Sandbox Workbench allows learners to pick foundational physical laws and tweak variables with live sliders, observing instant dimensional recalculations, real-world astronomical presets, and step-by-step substitution breakdowns.
Live Parameter Workbench
Step-by-Step Algebraic Solver
Real-time variable sliders and preset buttons
Automated dimensional expansion and unit checks
🚀 The 25 Visual Simulation Labs (/playground)
Stage 1 — Measuring the Universe
Distance ladders, cosmic expansion, and cosmological redshift.
Lab 01: Hubble Expansion Flow
Lab 02: Cosmic Distance Ladder
Formula: $v = H_0 d + v_{\text{pec}}$ · Open Lab 01
Formula: $m - M = 5 \log_{10}(d) - 5$ · Open Lab 02
Lab 11: Cosmological Redshift & Wave Stretch
Formula: $1 + z = \frac{\lambda_{\text{obs}}}{\lambda_{\text{emit}}}$ · Open Lab 11
Stage 2 — Finding Hidden Structure
Density clumps, cosmic voids, velocity divergence, and Bayesian inference.
Lab 03: Density Contrast & Cosmic Voids
Lab 04: Velocity Field Divergence
Formula: $\delta = \frac{\rho - \bar{\rho}}{\bar{\rho}}$ · Open Lab 03
Formula: $\nabla \cdot \vec{v} = -a H f \delta$ · Open Lab 04
Lab 05: Bayesian Belief Scale
Lab 06: Measurement Uncertainty
Formula: $P(A|B) = \frac{P(B|A)P(A)}{P(B)}$ · Open Lab 05
Formula: $\sigma_{\text{tot}} = \sqrt{\sigma_1^2 + \sigma_2^2}$ · Open Lab 06
Lab 07: Wiener Signal-to-Noise Filter
Formula: $W(k) = \frac{S(k)}{S(k) + N(k)}$ · Open Lab 07
Stage 3 — Seeing Through Interstellar Dust
Dust attenuation, optical depth, color excess, and 21-cm neutral hydrogen radio emissions.
High-fidelity interface design specifications and pedagogy mockups crafted for the Cosmic Formula ecosystem:
01. Home Hero & 3D Shapes
02. Syllabus & Learning Roadmap
Tactile 3D shape manipulation & Learno guide
Milestone tracks across 25 space formulas
03. Formula Library Catalog
04. Hubble Flow & Velocity Lab
Categorized searchable catalog across 120+ formulas
Cosmological expansion & peculiar velocity
05. Interstellar Dust Attenuation
06. Cosmological Redshift Waves
Radiative transfer & Beer-Lambert dust extinction
Wavelength wave stretching across cosmic time
07. Rocket Equation & Thrust
08. Solar Sail Radiation Pressure
Tsiolkovsky delta-v, fuel mass ratio & staging
Solar sail lightness number & radiation push
09. Space Plasma Physics & Waves
10. Practice Engine & Challenges
Debye shielding bubbles & Alfvén magnetic waves
Adaptive multiple choice questions & XP rewards
🛠️ Architecture & Local Development
Technology Stack
Pure Web Standards: Vanilla ES Modules (app.js, v3-model.mjs, formulas.mjs) — Zero framework bloat.
Rendering: Semantic SVG vectors, HTML5 Canvas, and MathJax/KaTeX math notation.
Routing: HTML5 History API with static clean-URL fallback entrypoints.
Offline / PWA: Service Worker (sw.js) with proactive cache lifecycle management and manifest support.
Styling: Responsive modern Airy CSS tokens (--indigo, --coral, --emerald, --sky).
Run Locally
# Clone the repository
git clone https://github.com/zrt219/Cosmic-Formula-Playground.git
cd Cosmic-Formula-Playground
# Start a local static HTTP server
npx serve .# or
python -m http.server 8080
Open http://localhost:8080 in your browser.
Verification & Test Suite
# Run syntax checks, QA invariants, and DOM selector tests
npm run check
Interactive 3D astrophysics, orbital mechanics & space physics playground. Explore 25 verified physical laws with tactile formula sliders, real-time vector simulations, step-by-step math derivations, and adaptive practice challenges.