SpaceCenter#

Provides functionality to interact with Kerbal Space Program: vessels and their parts, celestial bodies and orbits, flight control, maneuver nodes and the auto-pilot.

Example#

The following example prints the name of the active vessel:

import { connect } from "@krpc-org/krpc";

const conn = await connect({ name: "SpaceCenter Example" });
const vessel = await conn.spaceCenter.getActiveVessel();
console.log(await vessel.getName());

Mods#

The SpaceCenter service supports several mods, such as Ferram Aerospace Research. The mods guide lists them, with the versions kRPC is tested with.