Developers

System files

Every system, whether it’s from the catalogue, made from a seed or saved to your account, is a system file: JSON with a schemaVersion, a name, a basis and its bodies in objects.

  • basis: "elements" holds orbital elements, each at its own epoch. Opening one moves every body to the current time. Catalogue systems such as Sol use it.
  • basis: "snapshot" holds the bodies as they were at simulationTime, plus the seed for generated systems. Opening one resumes from that time.

The catalogue API below serves system files, and the simulator opens any file you give it.

Catalogue API

The catalogue is open to read, with no key needed:

Request Returns
GET /api/catalogue Published systems: slug, name, description, bodyCount
GET /api/catalogue/{slug} The system file, such as /api/catalogue/sol

Responses can be cached for 5 minutes. To open a catalogue system in the simulator, link to /teskooano/c/{slug}. To open a generated system, link to /teskooano/seed/{seed}.

Guides

Original