Skip to content

Light-year tools: letters to stars and a voyage clock - #6

Closed
emptymalei wants to merge 1 commit into
gh-pagesfrom
claude/project-thread-fy0cr4
Closed

emptymalei wants to merge 1 commit into
gh-pagesfrom
claude/project-thread-fy0cr4

Conversation

@emptymalei

Copy link
Copy Markdown
Member

Requested by L · project thread

Before: the Mars time service only knew about Mars. It had no tools for light-years, ship time or the 2219 story calendar.

After: a new Light Years page at /lightyear/ (中文) and /en/lightyear/. It has three parts:

  • Write to a star: a message travels out at light speed with a live km counter and progress bar. It shows when it arrives and the earliest reply, and it can be shared as a link (the message text is in the URL). It is stored only in the visitor's browser.
  • Voyage clock: pick a ship (light-sail probe, fusion ark, crewed beamed sail, 1 g torch ship, or custom acceleration, cruise speed and braking) and a departure date. It shows years on Mars vs aboard, top speed, the arrival date in both calendars, when news gets home, and the photon-rocket mass ratio. A chart and a scrubber show any moment of the trip.
  • Nearby stars: 14 stars with distance, question-and-answer round trip and trip times.

Dates show in the InterImm story calendar (real + 70,491 days) by default, with a switch to the real calendar.

How: lib/lightyear.js is a new dependency-free ES module. It uses special-relativity hyperbolic motion for constant proper acceleration, then coast, then brake. The data is in api/v1/stars.json, and there are two new MCP tools, light_message and interstellar_voyage. README, llms.txt and llms-full.txt are updated (via npm run build:api), and both clock pages link to the new page. Tests: 28 pass (npm test). The new library tests check the 1 g trip to Epsilon Eridani (12.26 yr on Mars, 4.93 yr aboard) against the closed-form rocket equations, and check continuity and the speed limit for every profile.

Previews (local kit): /mnt/project-files/light-years/ in the project.

🤖 Generated with Claude Code

https://claude.ai/code/session_018rV3zPRbq2WrAhTThjQxbJ


Generated by Claude Code

- lib/lightyear.js: light-speed message timing, constant-acceleration voyages
  (years on Mars vs aboard), 14 nearby stars, ship profiles, story calendar
- /lightyear/ and /en/lightyear/: write to a star and watch it travel,
  shareable links, voyage clock with chart and scrubber, star table
- api/v1/stars.json, MCP tools light_message and interstellar_voyage,
  README, llms.txt and llms-full.txt

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018rV3zPRbq2WrAhTThjQxbJ
@emptymalei emptymalei self-assigned this Oct 5, 2026
@emptymalei emptymalei closed this Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants