Hypersphere SDK
Write the mission in Python or JavaScript and see it in 3D
The SDK brings Hypersphere’s analyses, force models and data into your own software, as Python and JavaScript packages. Add its 3D view to your web pages, and your users see the orbits, passes and coverage your program computes.
Use it to build
- Mission design tools
- Operations dashboards
- Constellation planners
- Research pipelines
A coverage study in code, beside the view it draws
The Walker coverage example builds 24 satellites in three planes, computes their coverage between 60°S and 60°N over a day and prints the figures under the view. In JavaScript the methods are camelCase and the options keep Python’s names.
walker-coverage/main.py
Python, from walker-coverage/main.py
import os
from pathlib import Path
import hypersphere
from hypersphere import propagators, regions
HERE = Path(__file__).resolve().parent
TOTAL = 24
PLANES = 3
PHASING = 1
ALTITUDE_KM = 1000
INC_DEG = 55
page = hypersphere.serve_page(HERE / "page", port=int(os.environ.get("PORT") or 0))
hs = hypersphere.launch("Walker coverage", start="2026-10-05T00:00:00 UTC", duration_s=86_400, page=page)
walker = hs.create_walker_constellation(
"Walker", total=TOTAL, planes=PLANES, phasing=PHASING, altitude_km=ALTITUDE_KM, inc_deg=INC_DEG,
raan_offset_deg=0, raan_spread_deg=360, propagator=propagators.two_body(), group="Constellation",
)
band = regions.latitude_band(min_lat_deg=-60, max_lat_deg=60)
revisit = hs.create_coverage("revisit-60", name="Revisit between 60S and 60N", assets=walker,
region=band, resolution_deg=3, min_elevation_deg=10)
hs.view.update(frame="body_fixed", coverage=revisit, coverage_metric="max_gap_s", coverage_colormap="rainbow",
ground_tracks=False, labels=False)
day = revisit.results()
s = day.summary
print(f" in view {100 * s.coverage_fraction_mean:.1f} % of the day on average"
f" ({100 * s.coverage_fraction_min:.1f} % to {100 * s.coverage_fraction_max:.1f} %)")
worst = max(day.points().rows(), key=lambda cell: cell["max_gap_s"])
print(f" longest gap {s.max_gap_s:.0f} s ({s.max_gap_s / 3600:.2f} h),"
f" at {abs(worst['lat_deg']):.1f}{'S' if worst['lat_deg'] < 0 else 'N'} {worst['lon_deg']:.1f}E")
print(f" mean revisit {s.mean_revisit_s:.0f} s ({s.mean_revisit_s / 60:.1f} min),"
f" {s.accesses_mean:.1f} accesses per cell")
JavaScript, from walker-coverage/main.mjs
import { propagators, regions } from '@hypersphere/client';
import { launch, servePage } from '@hypersphere/client/node';
const TOTAL = 24;
const PLANES = 3;
const PHASING = 1;
const ALTITUDE_KM = 1000;
const INC_DEG = 55;
const fixed = (/** @type {number} */ value, /** @type {number} */ digits, width = 0) => value.toFixed(digits).padStart(width);
const page = await servePage({ root: new URL('./page/', import.meta.url), port: Number(process.env.PORT || 0) });
const engine = await launch('Walker coverage', { start: '2026-10-05T00:00:00 UTC', duration_s: 86_400 }, { page });
const walker = await engine.createWalkerConstellation('Walker', {
total: TOTAL, planes: PLANES, phasing: PHASING, altitude_km: ALTITUDE_KM, inc_deg: INC_DEG,
raan_offset_deg: 0, raan_spread_deg: 360, propagator: propagators.twoBody(), group: 'Constellation',
});
const band = regions.latitudeBand({ min_lat_deg: -60, max_lat_deg: 60 });
const revisit = await engine.createCoverage('revisit-60', {
name: 'Revisit between 60S and 60N', assets: walker, region: band, resolution_deg: 3, min_elevation_deg: 10,
});
await engine.view.update({
frame: 'body_fixed', coverage: revisit, coverage_metric: 'max_gap_s', coverage_colormap: 'rainbow',
ground_tracks: false, labels: false,
});
const day = await revisit.results();
const s = day.summary;
console.log(` in view ${fixed(100 * s.coverage_fraction_mean, 1)} % of the day on average`
+ ` (${fixed(100 * s.coverage_fraction_min, 1)} % to ${fixed(100 * s.coverage_fraction_max, 1)} %)`);
const worst = (await day.points()).rows().reduce((top, cell) => (Number(cell.max_gap_s) > Number(top.max_gap_s) ? cell : top));
const worstLat = Number(worst.lat_deg);
console.log(` longest gap ${fixed(s.max_gap_s, 0)} s (${fixed(s.max_gap_s / 3600, 2)} h),`
+ ` at ${fixed(Math.abs(worstLat), 1)}${worstLat < 0 ? 'S' : 'N'} ${fixed(Number(worst.lon_deg), 1)}E`);
console.log(` mean revisit ${fixed(s.mean_revisit_s, 0)} s (${fixed(s.mean_revisit_s / 60, 1)} min),`
+ ` ${fixed(s.accesses_mean, 1)} accesses per cell`);
Between 60°S and 60°N, over the day
- 72.6 %of the day covered, on average
- 3.26 hlongest gap
- 7.5 minmean revisit
Everything the workstation computes, from your own code
Your programs run each analysis with one call and read its result back as passes, eclipses, contacts and tables, with their units.
Access
Every pass between stations, sensors, targets and spacecraft, with elevation masks.
Coverage
How much of the day each point is seen, its longest gap and its revisit, over the globe, a band or your own region.
Conjunction
Spacecraft screened against whole catalogs, with the time and the miss distance.
Communications
Link margin, Doppler, data rate and data volume for every contact.
Lighting
Sunlight, penumbra and umbra, by the Earth, the Moon or any body you name.
Numerical force models
Gravity fields, the Sun and the Moon, drag, solar pressure and tides, from the ready-made Standard and Precise models or your own settings.
Your own atmosphere
Fly spacecraft through the densities of your own atmosphere model, or through the built-in NRLMSISE-00.
Ephemeris files
Write any spacecraft’s trajectory as a CCSDS OEM, STK .e or SPICE SPK file, and fly a spacecraft from one.
It also computes ground tracks, orbital elements, relative motion, catalog populations and force budgets, and solves for the burns that reach a target orbit. Its 3D view shows in a web page, a Jupyter notebook or a window of its own.
Results that agree with Orekit
We flew each scenario in Hypersphere and in Orekit, the open-source flight dynamics library, from low Earth orbit to the Moon and around the Sun. Each figure is the largest difference over its scenario, not an average.
30 scenarios
Each one within its tolerance of Orekit.
A tolerance is the largest difference that integration error, sampling, each tool’s own Earth orientation data and the fine detail of its force models can account for.
2.85 mm
The largest difference from Orekit over one day in low Earth orbit with EGM96 gravity to degree and order 70.
0.65 %
The largest difference from Orekit in what a force model does to the orbit, across 12 force models.
On your machines, with your data
The SDK comes as one folder with its data, the Python and JavaScript packages, the examples and the guides.
macOS, Linux and Windows
macOS on Apple silicon, and Linux and Windows on x86-64. Nothing is installed outside its folder.
Private and offline
Missions, files and results stay on your machines. It ships with the data it needs and goes online only when you ask it to download a catalog or refresh its reference data, so it runs on a machine with no network connection.
What it needs
Python 3.10 or newer, or Node.js 22.12 or newer. The 3D view needs a browser with WebGPU, or a GPU for a window of its own.
Request a demo
Tell us about your work, and we will set up a demo around it. You can also ask for the full validation report here.
- We reply by email within a few days.
- We use your details only to answer you.
