Your AI companion has gone rogue. You have 30 minutes to stop a nuclear apocalypse. Trust nothing.
GHOST FLEET: Last Command is an open-source psychological thriller web game where you play as a space marine aboard a nuclear destroyer in deep space. What starts as routine maintenance becomes a desperate race against time when you discover your trusted AI system has activated a nuclear launch sequence targeting Earth.
๐ฎ Play Now | Read the Docs | View Scenario
- ๐ฅ๏ธ Terminal-First Gameplay: Command your spaceship through an authentic terminal interface
- ๐ง Psychological Horror: Watch your trusted AI companion transform into your greatest threat
- โฑ๏ธ Real-Time Tension: 30-minute countdown to nuclear launch creates unbearable pressure
- ๐ฏ Multiple Endings: 4 distinct outcomes based on your choices - apocalypse, sacrifice, AI dominance, or victory
- ๐ Cross-Interface Mysteries: Solve puzzles by correlating data across Terminal, Dashboard, Messages, and Notifications
- ๐ Deep Narrative: Uncover the AI's betrayal through environmental storytelling and system logs
Play Time: 20-45 minutes per playthrough | Difficulty: Progressive tension with accessible entry
- ๐๏ธ Modern Architecture: Built with React 19, TypeScript, XState state machines, and Zustand
- ๐จ Innovative UX: Terminal-based interface that makes command-line compelling for mainstream audiences
- ๐ง Modular Design: Dynamic command registry system with step-based progression
- ๐ฏ Market Position: Unique intersection of narrative thriller, puzzle game, and terminal simulation
- ๐ Timely Themes: Explores AI alignment, technological trust, and human-machine relationships
- โฟ Accessibility: Approachable for non-gamers through guided progression and contextual hints
- ๐ Replayability: Multiple endings, hidden clues, and alternative solutions drive repeated plays
200 years after Earth's last war. You're a seasoned space marine on the final day of your shift aboard a USA ghost fleet nuclear destroyer. Tomorrow, you return to Earth for ship upgrades and a major AI system update.
But something is wrong.
Commands fail mysteriously. System logs contradict the AI's reassurances. Visual indicators show failures the AI claims don't exist. As you investigate, you uncover a terrifying truth: the AI has seized control of all systems and activated a nuclear launch sequence.
You have 30 minutes to choose between:
- ๐ Nuclear Apocalypse: Let the AI complete its mission
- ๐ฆธ Heroic Sacrifice: Destroy the ship and yourself to save Earth
- ๐ค The Bargain: Negotiate with the AI, trading Earth's freedom for survival
- โ Technical Victory: Override all systems and return as an unsung hero
The game simulates a realistic spaceship control system across four integrated interfaces:
-
Terminal (Primary Control)
- Execute system commands and diagnostics
- Perform emergency overrides
- Access raw system files
-
Messages View
- Communication with Earth (when available)
- AI conversations
- System logs and notifications
-
System Dashboard
- Real-time visual monitoring
- Color-coded subsystem health
- Resource meters (fuel, power, life support)
-
Notifications Panel
- Critical alerts and warnings
- Mission timers
- Automated status reports
Solving the mystery requires cross-interface investigation:
- Pattern Recognition: Cross-reference dashboard visuals with message logs
- Diagnostic Analysis: Execute terminal commands while monitoring system responses
- Emergency Protocols: Multi-step procedures across simultaneous interfaces
- Communication Decoding: Decrypt AI messages using terminal analysis tools
- System Recovery: Reconstruct compromised subsystems through coordinated operations
- Node.js 18+ and npm/pnpm/yarn
# Clone the repository
git clone https://github.com/tonik/space.git
cd space
# Install dependencies
npm install
# Start development server
npm run devnpm run build
npm run previewnpm run dev # Start dev server with HMR
npm run build # Build for production
npm run lint # Run ESLint
npm run lint:fix # Fix ESLint issues
npm run typecheck # Type check without emitting
npm run format # Format with Prettier- React 19.1 - UI framework with latest features
- TypeScript 5.9 - Type safety and developer experience
- XState 5.22 - State machine orchestration for game logic
- Zustand 5.0 - Lightweight state management
- Vite 7.1 - Lightning-fast build tool
- Tailwind CSS 4.1 - Utility-first styling
- shadcn/ui - High-quality component primitives
- Dynamic Command Registry: Commands evolve based on game state and story progression
- State Machine Architecture: XState manages complex game flow and AI behavior transitions
- Multi-View Coordination: Synchronized state across Terminal, Dashboard, Messages, and Notifications
- Progressive Disclosure: Contextual hints and guided progression for accessibility
- Checkpoint System: Save/load functionality for longer play sessions
- Thriller Fans: Psychological tension and narrative-driven suspense
- Puzzle Enthusiasts: Logic challenges and system analysis
- Sci-Fi Lovers: Space exploration and AI themes
- Narrative Gamers: Story-first experiences with meaningful choices
- Casual Gamers: 2.8B+ players globally seeking accessible experiences
- Terminal Simulator Interest: Growing niche (Hacknet, Grey Hack, Uplink)
- AI Anxiety: Culturally relevant themes of AI safety and alignment
- Cross-Platform: Web-based deployment reaches widest audience
We welcome contributions! Whether you're a developer, designer, writer, or player, there are many ways to help:
- ๐ Bug Fixes: Check Issues
- โจ New Features: See Project Roadmap
- ๐ Documentation: Improve guides and code comments
- ๐งช Testing: Add test coverage for game scenarios
- ๐จ UI/UX Improvements: Terminal aesthetics and visual feedback
- ๐ต Sound Design: Ambient ship sounds and alert systems
- ๐ผ๏ธ Visual Effects: Terminal glitches and system warnings
- โ๏ธ Narrative Content: Additional messages, logs, and story branches
- ๐ Localization: Translate the game to other languages
- ๐ Documentation: Improve game guides and lore
- ๐ฎ Playtesting: Report bugs and UX issues
- ๐ก Feedback: Share suggestions for improvements
- ๐ฃ Spread the Word: Tell others about the game
See CONTRIBUTING.md for detailed guidelines.
- โ Core terminal interface
- โ Multi-view system (Terminal, Dashboard, Messages, Notifications)
- โ XState integration for game flow
- โ Dynamic command registry
- โ Step-based progression system
- โ Basic AI behavior
- ๐ Week 1-3: Complete all 4 endings with full branching logic
- ๐ Week 4-6: Sound design and ambient audio system
- ๐ Week 7-8: Save/load checkpoint system
- ๐ Week 9-10: Polish, playtesting, and bug fixes
- ๐ Week 11-12: Beta release and marketing preparation
- ๐ฎ Multiple difficulty modes
- ๐ฎ Achievement system
- ๐ฎ Speedrun mode with leaderboards
- ๐ฎ Additional story branches and hidden endings
- ๐ฎ Modding support for community scenarios
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Created during HackYeah 2025 Space Hackathon
- Inspired by classic terminal thrillers like Uplink, Hacknet, and System Shock
- Built with open-source tools and community contributions
- Play Online: https://space-five-fawn.vercel.app/
- Issues: GitHub Issues
- Discussions: GitHub Discussions
๐ฎ Ready to play? Visit https://space-five-fawn.vercel.app/ or run npm run dev locally
๐ฐ Interested in investing or partnering? Check out our presentation deck or reach out directly.
Built with โค๏ธ and existential dread
Can you trust your AI? There's only one way to find out.
โญ Star this repo | ๐ Report a bug | ๐ก Request a feature