Priority: P2
Source
Senior Architect Code Review (2026-04-03)
Problem
packages/shared-types/src/solarSystems.generated.ts is 3.4MB of bundled solar system catalog data. This file is imported by the dashboard and API via the shared-types package. The size impacts:
bun install and node_modules bloat
- IDE performance (indexing, autocomplete)
- Potentially client-side bundle size if not properly tree-shaken
- CI cache sizes
Affected Files
packages/shared-types/src/solarSystems.generated.ts (3,457,433 bytes)
packages/shared-types/src/solarSystems.ts
scripts/update-solar-systems.ts
Recommendation
Options to evaluate:
- Lazy-load the data — export the catalog as a function that dynamically imports the data, so it is only loaded when needed
- Separate data package — move the generated catalog to its own
packages/solar-system-data package so the core shared-types remain lightweight
- JSON instead of TS — store as
.json and import with resolveJsonModule, which may be more IDE-friendly
- Compress + decompress — store as a compressed binary and decompress at runtime (extreme, probably not worth it)
- API-served — serve the catalog from the API and remove it from the client bundle entirely
Acceptance Criteria
Priority: P2
Source
Senior Architect Code Review (2026-04-03)
Problem
packages/shared-types/src/solarSystems.generated.tsis 3.4MB of bundled solar system catalog data. This file is imported by the dashboard and API via the shared-types package. The size impacts:bun installandnode_modulesbloatAffected Files
packages/shared-types/src/solarSystems.generated.ts(3,457,433 bytes)packages/shared-types/src/solarSystems.tsscripts/update-solar-systems.tsRecommendation
Options to evaluate:
packages/solar-system-datapackage so the core shared-types remain lightweight.jsonand import withresolveJsonModule, which may be more IDE-friendlyAcceptance Criteria