Browser-based cognitive training with adaptive difficulty, N-back training, and spaced repetition
English โข ็ฎไฝไธญๆ
Zero dependencies โข Works offline โข Bilingual (EN/ZH)
N New Game ยท P Pause ยท H Hint ยท โโโโ Navigate ยท Enter Flip
5 science-backed training modes to improve cognitive function:
| Mode | Focus | Description |
|---|---|---|
| Classic | Visual memory | Match pairs in 4ร4 / 4ร5 / 6ร6 grids |
| Countdown | Speed | Race against time limits |
| Daily Challenge | Consistency | Same layout for all players worldwide |
| N-back | Working memory | Match stimulus N steps back |
| Delayed Recall | Long-term memory | Post-game recognition test |
Adaptive Intelligence: ELO-like rating (600-1600) auto-adjusts difficulty based on your performance.
Fully Featured: ๐ i18n (auto-detected) โข ๐ฒ PWA installable โข โจ๏ธ Keyboard navigation โข ๐พ Export/JSON backup โข ๐ Achievements
Desktop (Chrome/Edge): Visit site โ Click โ install icon โ Launch from desktop
iOS Safari: Share โ "Add to Home Screen"
Android Chrome: Menu โ "Add to Home screen"
git clone https://github.com/LessUp/mind-gym.git
cd mind-gym && npm install
npm test # Run unit tests
npm run build:css # Compile TailwindStack: Vanilla JS (ES2022) โข Tailwind CSS 3.4 โข Jest 30 โข GitHub Pages
- โก <100KB total (no runtime dependencies)
- ๐ฏ Lighthouse 95+
Project Structure
โโโ index.html # SPA entry
โโโ app.js # Game orchestrator
โโโ sw.js # Service Worker
โโโ src/ # Core modules
โ โโโ storage.js, stats.js, modes.js, i18n.js, fsrs.js
โโโ __tests__/ # Jest tests
โโโ docs/ # User guides
โโโ openspec/ # Spec-driven development
โโโ specs/ # Capability specifications
- Documentation โ User guides and tutorials
See CONTRIBUTING.md. Steps: Fork โ Review specs โ Code โ Test (npm test) โ PR
MIT License ยฉ LessUp
Made with โค๏ธ for cognitive health

