josh 775c6a4fa5
CI / build-and-push (push) Successful in 29s
Overhaul Models tab UX: action feedback, post-training flow, guided navigation
- Lift modelsTab state into Zustand store so actions can navigate tabs
- Add toast notifications + auto-tab-switch to all 10 model actions
  (train, configure SFT/alignment, distill, fine-tune, quantize, eval, deploy, open-source)
- Add actionable toast buttons with navigation (e.g., "Go to Families" on training complete)
- Fix post-training config: remove 50% deadline, show until pretraining completes,
  always-visible warning prompt outside card expand, engine reminder at 75%
- PostTrainingConfig now hides already-configured sections independently
- Add tab badges: pulsing dot for active jobs, count for undeployed models, warning for no deployment
- Replace empty states with actionable buttons guiding next steps
- Stage bars show "(skip)" in warning color for unconfigured SFT/Alignment stages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-25 10:20:00 -04:00
2026-04-24 18:12:52 -04:00
2026-04-24 18:10:43 -04:00

AI Tycoon

A browser-based incremental/idle game where you manage an AI company from a garage startup to building AGI. Navigate the real tensions of the AI industry: scaling compute, training frontier models, balancing safety vs capability, hiring talent, and competing with rival labs.

Target: 4-8 hour single playthrough | Platform: Desktop browser | Price: Free

Quick Start

# Prerequisites: Node.js 18+, pnpm 10+
pnpm install
pnpm dev

The web app starts at http://localhost:5173 (or the next available port). The backend server starts alongside it for cloud saves and leaderboards.

Tech Stack

Layer Choice
Frontend React 19 + TypeScript, Vite
State Zustand (slice pattern, localStorage persistence)
Styling Tailwind CSS (custom dark theme)
Charts Recharts
Backend Hono (Node.js)
Database PostgreSQL + Drizzle ORM
Monorepo Turborepo + pnpm workspaces

Project Structure

ai-tycoon/
├── apps/
│   ├── web/              # React frontend (Vite)
│   └── server/           # Hono API backend
└── packages/
    ├── shared/           # Types, constants, formatters
    └── game-engine/      # Pure TS simulation (no DOM dependencies)

The game engine is fully decoupled from React. It runs identically for real-time ticks, offline catch-up, and testing.

Game Overview

Four Eras

  1. Startup (~30 min) — First datacenter, first model, first customers
  2. Scale-up (~2 hr) — Growth, multiple datacenters, specializations
  3. Big Tech (~4 hr) — Global operations, regulation, IPO
  4. AGI (~8 hr) — Endgame push, AI agents, custom chips

Core Loop

Buy GPUs → Allocate compute → Train models → Deploy → Earn revenue → Expand

Key Systems

  • Infrastructure — Datacenters across 7 global regions with different costs, latency, and risks
  • Research — Tech tree with generation upgrades and specialization branches
  • Models — Train, tune, and deploy models with capability scores across reasoning, coding, creative, multimodal, and agents
  • Market — Consumer subscriptions and B2B API with token-based pricing
  • Talent — Four departments (Research, Engineering, Ops, Sales) with hiring and morale
  • Competitors — AI rival labs with distinct personalities that react to your moves
  • Events — 40+ events across industry, regulatory, PR, internal, market, and geopolitical categories
  • Safety — Tradeoff between capability benchmarks and safety; low safety risks PR disasters
  • Funding — VC rounds from Seed to IPO with dilution mechanics
  • Achievements — 15 milestones tracking progression

Scripts

pnpm dev          # Start all apps in development mode
pnpm build        # Production build
pnpm typecheck    # Type-check all packages
pnpm lint         # Lint all packages
pnpm clean        # Clean build artifacts

Backend Setup

The backend requires PostgreSQL for cloud saves and leaderboards. Set the connection string in apps/server/.env:

DATABASE_URL=postgresql://user:password@localhost:5432/ai_tycoon

Run migrations:

cd apps/server
pnpm db:push

The game works fully offline without the backend — saves persist to localStorage.

Documentation

  • Architecture Guide — Technical deep dive into the engine, state management, and simulation systems
  • How to Play — Player guide with mechanics, strategies, and tips

License

All rights reserved.

S
Description
No description provided
Readme 2.2 MiB
Languages
TypeScript 99.6%
Dockerfile 0.2%