A browser-based, turn-driven space trading and fleet management game built with TypeScript, Phaser, and Vite.
You run a growing freight company in a living galaxy: buy low, sell high, expand your fleet, optimize routes, survive market swings, and chase the high score.
- Procedurally generated galaxy and market setup
- Turn simulation with economy updates and events
- Fleet, routes, and finance management scenes
- Retro-inspired UI and audio systems
- Strong unit test coverage across core game systems
- Engine/UI: Phaser 3
- Language: TypeScript
- Build Tool: Vite
- Testing: Vitest
- Node.js 22+
- npm 10+
npm cinpm run devnpm run buildnpm run testOn pull requests and pushes to main, CI runs:
- Type checking (
npm run typecheck) - Unit tests (
npm run test) - Production build (
npm run build)
GitHub Pages deployment also enforces these gates before publish.
This repository is configured to deploy automatically to GitHub Pages from main using GitHub Actions.
If this is your first time enabling Pages for the repo:
- Open Settings → Pages.
- Set Source to GitHub Actions.
- Push to
main(or manually run the deploy workflow).
src/scenes/– game scenes and flowsrc/game/– simulation, economy, events, fleet, routes, scoringsrc/generation/– world/market/name generationsrc/ui/– reusable UI components and theme primitivessrc/data/– game state store, constants, shared types
Contributions are welcome! If you’d like to help:
- Fork the repo
- Create a feature branch
- Add or update tests for your changes
- Open a PR
Please keep gameplay logic deterministic where possible and maintain/expand test coverage for non-visual systems.
No license file has been added yet.
If you want this to be fully open source, add a license (MIT is a common choice for indie game projects).