termdle
v1.9.0
Published
A fully-featured Wordle clone that runs entirely in your terminal! Built with TypeScript, React, and Ink.
Downloads
269
Maintainers
Readme
Termdle
A fully-featured wordle clone that runs entirely in your terminal! Built with TypeScript, React, and Ink.
Installation
Run with npx
npx termdleor Install Termdle globally
npm install -g termdleThen simply run:
termdleFeatures
✅ Classic Wordle Gameplay
- 6 attempts to guess a 5-letter word
- Color-coded feedback: Green (correct position), Yellow (wrong position), Gray (not in word)
✅ Beautiful Terminal UI
- Modern React-based interface using Ink
- Live keyboard showing letter states
✅ Statistics Tracking
- Games played, won, win percentage
- Current and maximum win streaks
- Guess distribution histogram
- Persistent stats saved to your home directory
Project Structure
├── src/
│ ├── cli/
│ │ ├── index.tsx # Main CLI entry point
│ │ └── ui/
│ │ ├── App.tsx # Main React application
│ │ ├── atoms/ # Jotai state management
│ │ ├── components/ # React components
| | ├── hooks/ # React hooks
│ │ └── utils/ # UI utilities
│ └── core/
│ ├── game.ts # Core game logic and word evaluation
│ ├── stats.ts # Statistics tracking and persistence
│ └── words.ts # Word lists for targets and valid guesses
├── package.json # Project configuration
└── tsconfig.json # TypeScript configurationLocal Development
Prerequisites
Setup
Clone the repository
git clone [email protected]:k-dang/termdle.gitInstall dependencies
pnpm installDevelopment Workflow
Start the tsdown bundler in watch mode
pnpm run devStart the cli app in another terminal window
pnpm run startType checking
pnpm run typecheckRun linting
pnpm run lintFormat code
pnpm run formatBumping version
Make sure to bump package versions on package json
pnpm version major
pnpm version minor
pnpm version patchPublishing
This repo is setup to publish upon merges to main via Github actions. You can also run the commands manually.
Bundle the package
pnpm run buildPublish the package
pnpm run publish