@rotastellar/sdk
v0.1.1
Published
Node.js SDK for RotaStellar - Space Computing Infrastructure
Maintainers
Readme
@rotastellar/sdk
Node.js SDK for RotaStellar — Space Computing Infrastructure
Core types, utilities, and client for the RotaStellar platform.
Installation
npm install @rotastellar/sdkQuick Start
import { Position, Orbit, Satellite, TimeRange } from '@rotastellar/sdk';
// Create a geographic position (e.g., Kennedy Space Center)
const ksc = new Position({
latitude: 28.5729,
longitude: -80.6490,
altitudeKm: 0.0
});
console.log(`KSC: ${ksc.latitude}°N, ${ksc.longitude}°W`);
// Define an ISS-like orbit
const orbit = new Orbit({
semiMajorAxisKm: 6778.0,
eccentricity: 0.0001,
inclinationDeg: 51.6,
raanDeg: 100.0,
argPeriapsisDeg: 90.0,
trueAnomalyDeg: 0.0
});
console.log(`Orbital period: ${orbit.periodMinutes.toFixed(1)} minutes`);
console.log(`Apogee: ${orbit.apogeeKm.toFixed(1)} km`);
// Create a satellite
const satellite = new Satellite({
id: 'ISS',
name: 'International Space Station',
noradId: 25544,
position: new Position({ latitude: 45.0, longitude: -122.0, altitudeKm: 408.0 }),
orbit
});
// Define a time range
const range = new TimeRange({
start: new Date('2026-01-01T00:00:00Z'),
end: new Date('2026-01-02T00:00:00Z')
});
console.log(`Duration: ${range.durationHours.toFixed(1)} hours`);Features
- Position — Geographic coordinates with altitude
- Orbit — Keplerian orbital elements with derived properties
- Satellite — Satellite metadata and state
- TimeRange — Time window specifications
- Validation — Runtime parameter validation with Zod
Related Packages
| Package | Description | |---------|-------------| | @rotastellar/intel | Satellite tracking, TLE parsing, conjunction analysis | | @rotastellar/compute | Thermal, power, latency, and feasibility analysis | | @rotastellar/distributed | Federated learning, model partitioning, mesh routing |
Links
- Website: https://rotastellar.com
- Documentation: https://docs.rotastellar.com/sdks/node
- GitHub: https://github.com/rotastellar/rotastellar-node
Author
Created by Subhadip Mitra at RotaStellar.
License
MIT License — Copyright (c) 2026 RotaStellar
