Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default
✓ import SpaceDataServer from 'space-data-server'
✗ const SpaceDataServer = require('space-data-server')
ESM-only; CommonJS require not supported.
startServer
✓ import { startServer } from 'space-data-server'
Named export for initializing the server.
IngestService
✓ import { IngestService } from 'space-data-server'
✗ import IngestService from 'space-data-server'
Named export, not default.
ServerConfig
✓ import type { ServerConfig } from 'space-data-server'
✗ import { ServerConfig } from 'space-data-server'
TypeScript type import; not a runtime value.
Initialize the server with an Ethereum wallet and IPFS client, then ingest OMM data from Celestrak.
import { startServer, IngestService } from 'space-data-server';
import { ethers } from 'ethers';
import { create } from 'ipfs-http-client';
const ipfs = create({ url: process.env.IPFS_URL ?? 'http://localhost:5001' });
const wallet = new ethers.Wallet(process.env.ETHEREUM_PRIVATE_KEY ?? '');
const server = await startServer({
port: 3000,
dataDir: './data',
ipfs,
wallet,
});
console.log('Space Data Server running on port', server.port);
const ingest = new IngestService({ server });
await ingest.ingestFromCelestrak();
console.log('Ingested OMM data from Celestrak');
Errors
Common errors & fixes
Error: Cannot find module 'space-data-server'
Package not installed or ESM-only module imported with require()
fixEnsure you have run 'npm install space-data-server' and use ES import syntax: import { startServer } from 'space-data-server' TypeError: SDS.startServer is not a function
Using default import incorrectly; startServer is a named export
fixUse named import: import { startServer } from 'space-data-server' Error: IPFS node is not reachable
IPFS daemon not running or URL misconfigured
fixStart IPFS daemon (ipfs daemon) or set IPFS_URL environment variable to the correct API address.
Error: Invalid private key
Provided Ethereum private key is not a valid hex string
fixProvide a valid 64-character hex private key (without 0x).
Upgrade
Version history
23.3.3-0.1.2-1.40.2latest on npm
Audit
Dependencies
ethersrequiredUsed for Ethereum key management and server key updates
ipfs-http-clientrequiredRequired for IPFS folder publishing and file pinning/unpinning
expressrequiredHTTP server framework for the local API