@eve-data/systems
v3.1.0
Published
Static data for all EVE Online star systems. The data is sourced from EVE Static Data Export (SDE) but offered via a custom API.
Downloads
72
Readme
@eve-data/systems
Static data for all EVE Online star systems. The data is sourced from EVE Static Data Export (SDE) but offered via a custom API.
This library can be used in browsers as well as with Node. The data gzips well which offers a viable alternative for fetching static data from an API during runtime (less than 150 KB gzipped).
Abyssal and Jovian systems are not included in this package. (If you have a use case for Abyssal systems, let me know. They should be quite easy to add if there is a strong case for including them in this dataset.)
The @eve-data
project
This library is a part of the @eve-data
project, please see the top-level README for more general information.
Usage
npm i @eve-data/systems
All Data
import systems from "@eve-data/systems";
console.log(systems);
// [
// {
// "name": "TXW-EI",
// "secondaryName": null,
// "id": 30003323,
// "securityStatus": -0.01311255977769577,
// "securityClass": "NULL",
// "effect": null,
// "region": {
// "id": 10000041,
// "name": "Syndicate"
// },
// "constellation": {
// "id": 20000484,
// "name": "YFN-UN"
// },
// "whClass": null,
// "staticConnections": []
// },
// ...
// ]
Find One System
Find one system with name or ESI ID.
import { findOneSystem } from "@eve-data/systems";
// Use exact name as displayed in game.
const jita = findOneSystem({ name: "Jita" });
// Throws if system not found.
try {
findOneSystem({ id: 1234567 });
} catch {
console.log("Not found!");
}
Wormhole Effects
Wormhole effects are included for non-vanilla systems.
The strength
values are signed to make them more sensible. The signs reflect the effect particular trait will have on an attribute of a ship or a module. This should be rather straightforward in all except the agility/inertia case (part of the Black Hole effect): The SDE's description talks about "ship agility", however, there is no such attribute in the game. The correct attribute here is ship inertia which has the opposite sign to "agility". Therefore I have left the strength
value positive as the effect increases ship inertia. The long description is left as is ("Penalty to ship agility") but the short one is "Ship Inertia".
The isPositive
booleans come straight from the SDE and appear to indicate whether the particular trait is considered beneficial to capsuleers or not. They might be slightly ambiguous at times but are often used to color the traits in UI's so I wanted to include them.
const wh = findOneSystem({ name: "J211817" });
console.log(wh.effect);
// {
// "id": "30867",
// "name": "Pulsar",
// "effectClass": 4,
// "traits": [
// {
// "strength": -36,
// "isPositive": true,
// "description": {
// "long": "Reduction in capacitor recharge time",
// "short": "Capacitor Recharge Time"
// }
// },
// ...
// ]
// },
License
Project code is licensed under MIT, game data is subject to CCP's EULA.