I built a space travel calculator using Vanilla JavaScript
Details
- External ID
- 46742285
- Source
- HN
- Company
- —
- Product
- I built a space travel calculator using Vanilla JavaScript
- Website domain
- vercel.app
- Launched
- Jan. 24, 2026
- Cohort
- —
- Upvotes
- 54
- Upvotes percentile
- 0.8096179183135704
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
I built this because measuring my age in years felt boring—I wanted to see the kilometers.The first version only used Earth's orbital speed (~30km/s), but the number moved too slowly. To get the "existential dread" feeling, I switched to using the Milky Way's velocity relative to the CMB (~600km/s). The math takes some liberties (using scalar sum instead of vector) to make the speed feel "fast," but it gets the point across.Under the hood, it's a single HTML file with zero dependencies. No React, no build step. The main challenge was the canvas starfield—I had to pre-allocate the star objects to stop the garbage collector from causing stutters on mobile.Let me know if the physics makes you angry or if the stars run smooth on your device.
Enrichment
- Theme
- interactive simulations and creative experiments
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- space travel calculator tool
- Manually corrected
- False
Could you build this?
Yes A single-page vanilla JavaScript utility that multiplies elapsed time by cosmic velocity constants and displays it on an odometer.
Discussion
20 comments analyzed.
Competitors mentioned: three.js for star rendering, other cosmic distance calculators
Concerns raised: LLM-generated code and comments, lack of transparency about AI usage, Window resize breaks star background rendering, Logarithmic scale needed to visualize solar and galactic distances together, UI labels unclear/confusing for new users, CPU usage on mobile devices
Feature requests: Fix viewport resize jank with star rendering, Logarithmic scale option for distance visualization, Clearer UI labels/onboarding, Three.js integration for better star effects and performance
Competitors
Other products that read as similar to this one — 127 launches clear the similarity bar, closest 8 shown.
Attention rank: #26 of 128 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 85 days after the earliest competitor.
- Gravity · hn · 2026-06-09 · 217 upvotes · similarity 0.59
- What if the speed of light was 5 km/h? · hn · 2026-09-10 · 626 upvotes · similarity 0.55
- Rocket Launch and Orbit Simulator · hn · 2026-01-09 · 166 upvotes · similarity 0.50
- farseer.space · hn · 2026-09-15 · 11 upvotes · similarity 0.49
- Blender Copilot · hn · 2026-09-26 · 6 upvotes · similarity 0.46
- A solar system simulation in the browser · hn · 2025-12-29 · 13 upvotes · similarity 0.45
- I built Chronoscope, because Google Maps won't let you visit 3400 BCE · hn · 2026-03-12 · 11 upvotes · similarity 0.45
- Artemis.fyi · hn · 2026-04-04 · 11 upvotes · similarity 0.45
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.