Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🚀 LightspeedJourney

"Time is relative. So is your return ticket."

LightspeedJourney is an interactive relativistic time dilation simulator. You are the captain of an interstellar spacecraft. Set your destination, choose your speed, and watch time diverge between your ship and Earth — in real time.

Built on Einstein's Special Relativity. No hand-wavy approximations.


✨ Features

  • 🕐 Real-time time dilation — Lorentz factor calculated live as you adjust speed
  • 🌌 Preset destinations — Proxima Centauri, Sirius, Galactic Center, Andromeda, and more
  • 📅 Earth year calculator — departure year + ship travel time = Earth arrival year
  • 👥 Generational impact — how many human generations pass on Earth while you travel
  • 📏 Length contraction — how the universe "shrinks" from your reference frame
  • 🤖 AI narrative — Claude AI describes what happened on Earth while you were gone
  • ⚡ Warp speed visualization — animated starfield reacting to your velocity
  • 📊 Comparison timeline — ship time vs Earth time side by side

🔬 Physics

Time Dilation (Lorentz Transformation)

Δt_earth = Δτ_ship × γ
γ = 1 / √(1 - β²)
β = v / c

Length Contraction

L = L₀ / γ

Key values

Speed (% of c) γ (Lorentz) 1 ship-year = Earth-years
50% 1.155 1.15
85% 1.898 1.90
90% 2.294 2.29
99% 7.089 7.09
99.7% 12.93 12.93
99.9% 22.37 22.37
99.99% 70.71 70.71

🚀 Quick Start

npm install
npm run dev

🤖 AI Narrative (optional)

Enter your Anthropic API key in the app to generate an AI narrative of what happened on Earth during your journey. The narrative is constrained by the actual Earth years elapsed — different every time.


🛣️ Roadmap

  • Acceleration model (realistic thrust phases)
  • Twin paradox interactive demo
  • Gravitational time dilation (near black holes)
  • Multiplayer — race to a star and compare timelines
  • Mobile app

📚 References

  • Einstein, A. (1905). Zur Elektrodynamik bewegter Körper
  • Taylor, E.F. & Wheeler, J.A. (1992). Spacetime Physics
  • Carroll, S. (2019). Something Deeply Hidden

Sister project: FermiParadox — civilization simulator with Kardashev scale & Drake Equation

Built by @epeles

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages