the-life
v0.4.0
Published
A life simulator running on the terminal
Readme
The Life
A terminal-based life simulation game powered by Ink + ink-kit.
A text-based life that runs in your terminal
Quick Start
# Install dependencies
npm install
# Start the game
npm start
# Development mode (hot reload)
npm run devFeatures
- Theme system — Built-in default theme, toggle with
T - Multi-language — Switch between Chinese / English with
L - Keyboard navigation — Full keyboard controls,
↑↓to select,Enterto confirm,Qto quit
Tech Stack
- Ink — Build terminal UI with React
- @baigao_h/ink-kit — Component library for screen management, keyboard system, i18n, themes, etc.
- TypeScript
- tsx — TypeScript execution engine
Project Structure
the-life/
├── assets/
│ ├── languages/ # i18n language packs
│ │ ├── zh-CN.json
│ │ └── en-US.json
│ └── themes/ # Theme configurations
│ └── default.json
├── src/
│ └── index.tsx # Entry point & main menu
├── package.json
└── tsconfig.jsonCommands
| Command | Description |
|---------|-------------|
| npm start | Start the game |
| npm run dev | Development mode (watch mode) |
| npm run build | TypeScript compilation check |
License
MIT
