How hquaiato/cellcare works
CellCare is a browser-based cell-culture care and research game. The player starts or loads a lab, manages cultures and equipment over simulated time, then advances through assays, research results, publication, and grants; minigames and the shop provide supporting rewards and upgrades. The graph combines the shown App/store/simulation calls with README-documented capabilities. Several tab and game implementations were not excerpted, so their detailed internal calls are not inferred.
Main entry points: actions.ts Lab actions · App.tsx Game navigation · store.ts State orchestration · sim.ts Culture simulation
Components 25
App and preferences
- Game navigation
src/App.tsx - Language and theme
src/i18n/index.ts
Culture operations
- Culture care
src/tabs/CultureTab.tsx - Incubators
src/tabs/IncubatorsTab.tsx - Freezer
src/tabs/FreezerTab.tsx - Cell suspension
src/modals/SuspensionModal.tsx - Transduction
src/modals/TransductionModal.tsx - Lab actions
src/game/actions.ts
Research workflow
- Lab workspace
src/tabs/LabTab.tsx - Assay setup
src/modals/ExperimentModal.tsx - Research and papers
src/tabs/ResearchTab.tsx - Results and publishing
src/game/research.ts - Result figures
src/components/ResultFigure.tsx - Grants
src/game/grants.ts
Progress and economy
- Minigames
src/tabs/GamesTab.tsx - Shop and passes
src/tabs/ShopTab.tsx - Coins and XP
src/game/econ.ts
Game runtime
- Culture simulation
src/game/sim.ts - Cell and assay data
src/game/data.ts - Game state
src/game/types.ts - State orchestration
src/game/store.ts - Local save
src/game/save.ts - New lab setup
src/game/newgame.ts - Tutorial lessons
src/game/lessons.ts
Other components
- Player
Connections 39
- Player → Game navigation: uses
src/App.tsx - Game navigation → Culture care: shows tab
src/App.tsx - Game navigation → Incubators: shows tab
src/App.tsx - Game navigation → Freezer: shows tab
src/App.tsx - Game navigation → Minigames: shows tab
src/App.tsx - Game navigation → Shop and passes: shows tab
src/App.tsx - Game navigation → Research and papers: shows tab
src/App.tsx - Game navigation → Lab workspace: shows tab
src/App.tsx - Game navigation → State orchestration: reads state
src/App.tsx - Game navigation → Tutorial lessons: queues lessons
src/App.tsx - Player → Language and theme: sets preferences
src/i18n/index.ts - Culture care → Lab actions: requests actions
src/tabs/CultureTab.tsx - Freezer → Lab actions: requests actions
src/tabs/FreezerTab.tsx - Incubators → Lab actions: requests actions
src/tabs/IncubatorsTab.tsx - Cell suspension → Lab actions: requests actions
src/modals/SuspensionModal.tsx - Transduction → Lab actions: requests actions
src/modals/TransductionModal.tsx - Assay setup → Lab actions: requests actions
src/modals/ExperimentModal.tsx - Lab actions → Culture simulation: uses simulation
src/game/actions.ts - Lab actions → Coins and XP: uses economy
src/game/actions.ts - Lab actions → Results and publishing: uses research
src/game/actions.ts - Culture simulation → Results and publishing: resolves experiments
src/game/sim.ts - Culture simulation → Grants: ticks grants
src/game/sim.ts - Culture simulation → Cell and assay data: reads parameters
src/game/sim.ts - Research and papers → Results and publishing: reads research
src/tabs/ResearchTab.tsx - Research and papers → Result figures: renders figures
src/tabs/ResearchTab.tsx - Research and papers → Grants: reads relevance
src/tabs/ResearchTab.tsx - Results and publishing → Coins and XP: awards XP
src/game/research.ts - Minigames → Lab actions: requests rewards
src/tabs/GamesTab.tsx - Shop and passes → Lab actions: requests purchases
src/tabs/ShopTab.tsx - State orchestration → Lab actions: dispatches actions
src/game/store.ts - State orchestration → Culture simulation: advances time
src/game/store.ts - State orchestration → New lab setup: creates or migrates
src/game/store.ts - State orchestration → Local save: loads and persists
src/game/store.ts - State orchestration → Tutorial lessons: checks lessons
src/game/store.ts - State orchestration → Game state: holds state
src/game/store.ts - Lab actions → Cell and assay data: reads definitions
src/game/actions.ts - Lab actions → Grants: applies grants
src/game/actions.ts - Lab actions → Results and publishing: publishes papers
src/game/actions.ts - Lab actions → Coins and XP: sells cells
src/game/actions.ts