Orbital mechanics
Vis-viva, Kepler solvers that hold up as e → 1, anomaly conversions, Hohmann transfers, plane changes, J2 precession and Clohessy-Wiltshire motion. 63 functions and counting.
Browse equations →// Mission: open space software
Open, tested building blocks for orbital mechanics and space software in TypeScript. Equations, constants, datasets and time utilities with SI units, strong types and the formula behind every function.
Six capabilities, each tested and documented with the equation it implements.
Vis-viva, Kepler solvers that hold up as e → 1, anomaly conversions, Hohmann transfers, plane changes, J2 precession and Clohessy-Wiltshire motion. 63 functions and counting.
Browse equations →SI in, SI out, everywhere. Invalid domains fail loudly with actionable messages, never a quiet NaN that surfaces three modules later.
Conventions →Physical constants from one source of truth, plus planets, moons, stars, comets, asteroids, belts, galaxies and systems, with units on every value.
Explore data →An MCP server exposes the toolkit to Claude, ChatGPT, Mistral Le Chat, Gemini and Copilot, so answers are computed, not guessed.
Establish uplink →Durations across 16 units, from attoseconds to gigayears, with aliases. The foundation for epochs and ephemerides.
Temporal →Strict TypeScript with branded radians, over 500 unit tests, tree-shakeable ESM, and every equation written out in LaTeX next to its code.
Types →Call it from code, or let your assistant call it for you.
import { hohmannTransfer } from '@interstellar-tools/equations';
const MU_EARTH = 3.986004418e14; // m³/s²
const { dvTotal, tTransfer } =
hohmannTransfer(6_678e3, 42_164e3, MU_EARTH);
dvTotal; // 3893 [m/s]
tTransfer / 3600; // 5.28 [h]Supported AI assistants. Local over stdio, remote over HTTPS.
| Package | Payload | Version | Status |
|---|---|---|---|
@interstellar-tools/equations | Orbits, gravity, manoeuvres, anomalies, cartography | 1.0.0 | Stable |
@interstellar-tools/constants | Physical constants and celestial datasets | 1.0.0 | Stable |
@interstellar-tools/temporal | Time unit conversion and normalisation | 1.0.0 | Stable |
@interstellar-tools/types | Shared, zero-dependency TypeScript types | 1.0.0 | Stable |
@interstellar-tools/mcp | MCP server for AI assistants | 1.0.0 | Stable |