Repository navigation
Light-year tools: letters to stars and a voyage clock - #6
Closed
emptymalei wants to merge 1 commit into
Closed
emptymalei wants to merge 1 commit into
emptymalei wants to merge 1 commit into
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:Dates show in the InterImm story calendar (real + 70,491 days) by default, with a switch to the real calendar.
How:
lib/lightyear.jsis a new dependency-free ES module. It uses special-relativity hyperbolic motion for constant proper acceleration, then coast, then brake. The data is inapi/v1/stars.json, and there are two new MCP tools,light_messageandinterstellar_voyage. README, llms.txt and llms-full.txt are updated (vianpm 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