THIS IS A DEVELOPMENT/HOBBY PROJECT - USE AT YOUR OWN RISK
This software and its data are provided "AS IS" without warranty of any kind, express or implied. No guarantees or warranties are given regarding data accuracy, completeness, or fitness for any purpose. The authors and contributors are not liable for any damages arising from use of this software or its data. See the LICENSE file for full terms.
The legality information for rare goods in this application is manually curated from Inara.cz.
Unfortunately, there are no public APIs available that provide rare goods legality data:
- Inara.cz: Does not provide a public API for commodity legality data
- EDSM: Provides system coordinates and basic system info, but not commodity legality
- Spansh: Focuses on route planning, not commodity legality data
-
Visit the Inara page for each rare good:
- Go to https://inara.cz/galaxy-commodity/
- Search for the rare good name
- Click on the commodity entry
-
Find the "Legal in systems" section which shows restrictions
-
Update the data in
src/data/rares.tsbased on Inara's notes:Field:
illegalInSuperpowers- Use when Inara says "illegal in [Superpower] space" or "illegal in all [Superpower] systems"
- Example:
illegalInSuperpowers: ["Federation"]
Field:
illegalInGovs- Use when Inara says "illegal in [Government] systems" without mentioning a superpower
- Example:
illegalInGovs: ["Prison Colony", "Theocracy"]
Field:
illegalInSuperpowerGovs- Use when Inara mentions a specific combination like "Federal Democracy" or "Imperial Theocracy"
- Example:
illegalInSuperpowerGovs: [{ superpower: "Federation", government: "Democracy" }]
Example 1: Kamitra Cigars
- Inara note: "This rare good is legal in all systems except for Prison Colony, Theocracy and Corporate systems and Federal Democracy systems."
- Translation:
illegalInGovs: ['Prison Colony', 'Theocracy', 'Corporate'], illegalInSuperpowerGovs: [ { superpower: 'Federation', government: 'Democracy' }, ],
Example 2: Centauri Mega Gin
- Inara note: "This rare good is legal in all systems except for Prison Colony systems and Federal Theocracy systems."
- Translation:
illegalInGovs: ['Prison Colony'], illegalInSuperpowerGovs: [ { superpower: 'Federation', government: 'Theocracy' }, ],
After updating data, verify by:
- Running the application
- Scanning for rares near a system with the restricted government/superpower
- Checking that the legality badge and details match Inara's information
If you find inaccuracies:
- Check Inara.cz for the current legality information
- Update the data in
src/data/rares.ts - Submit a pull request with the correction