██╗ ██╗███████╗██╗ ███████╗ █████╗ ██████╗ ███╗ ██╗
██║ ██╔╝██╔════╝██║ ██╔════╝██╔══██╗██╔══██╗████╗ ██║
█████╔╝ ███████╗██║ █████╗ ███████║██████╔╝██╔██╗ ██║
██╔═██╗ ╚════██║██║ ██╔══╝ ██╔══██║██╔══██╗██║╚██╗██║
██║ ██╗███████║███████╗███████╗██║ ██║██║ ██║██║ ╚████║
╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝
Terminal Learning App — Study, Don't Just Memorize
a Kashsight project by @kashsight
Learn anything — by studying, not just memorizing.
Features • Quick Start • Installation • KSL-Verse • Structure • Contributing
kslearn is an offline-first educational learning system that combines comprehensive study notes, interactive quizzes, flashcards, step-by-step tutorials, hierarchical courses with progression gating, AI chat with proactive suggestions, and KSL-Verse — a full RPG-style multiverse learning game — all in one terminal app.
| Attribute | Detail |
|---|---|
| 🎯 Purpose | Learn anything — study, don't memorize |
| 🌐 Connectivity | 100% offline-first (AI Chat optional) |
| 💻 Platform | Linux, macOS, Windows, Android (Termux) |
| 🐍 Language | Python 3.7+ |
| 📦 Dependencies | rich, click |
| Feature | Icon | Description |
|---|---|---|
| Course Catalog | 📂 | 1-6 level hierarchical courses with progression gating & AI tutor |
| Study Notes | 📚 | 50+ topics across multiple subjects with reading time tracking |
| Quizzes | 📝 | Multiple-choice with explanations, timed mode, assessments |
| KSL-Verse | 🌌 | RPG-style multiverse learning game with 10+ game modes |
| AI Chat | 🤖 | 11 AI providers (5 free) with proactive "What to Study Next" |
| My Progress | 📊 | Analytics dashboard, quiz scores, achievements, export report |
| Study Tools | 🔖 | Bookmarks, global search, spaced review system |
| Knowledge Brain | 🧠 | Offline Q&A database with auto-save from AI chat |
| Data Store | 🏪 | Download free & premium content packages |
| Profile & Account | 👤 | Online login, cloud sync, friends, local profile switching |
| Study Modes | 🎮 | Flashcards, timed quiz, step-by-step tutorials |
| LearnQuest | 🏆 | Quiz → JSON → submit & win rewards |
| Online Hub | 🌐 | Friends, leaderboards, shared worlds, multiplayer Verse |
| Settings | ⚙️ | Theme, daily goal, API provider, spaced review limit |
| Support & Help | ❤️ | Credits, social links, usage info |
A full RPG-style game where learning is an adventure.
| Mode | XP Multiplier | Difficulty | Description |
|---|---|---|---|
| ⚔️ Story Mode | 1× | 🟢 Relaxed pace, hints available | |
| ⚔️ Normal | 1× | 🟡 Standard experience | |
| 🔥 Hard Mode | 1.5× | 🔴 No hints, no forgiveness | |
| 💀 Ironman | 2× | ⚫ One wrong = run ends | |
| 🏃 Marathon | 3× | ⚫ Full world back-to-back | |
| ⚔️ Boss Rush | 2× | 🔴 Fight all bosses in sequence | |
| ♾️ Endless | 1× | ⚫ Infinite scenarios, one wrong = game over | |
| 💀 Survival | 1× | 🔴 3 lives — wrong answers cost lives | |
| 🎲 Randomizer | 1× | 🟡 10 random shuffled scenarios | |
| 🏃 Practice | 0× | 🟢 No penalties — just learning |
| Level | Rank | XP Required | Badge |
|---|---|---|---|
| 1 | Novice Walker | 0 | 🌱 |
| 2 | Apprentice Explorer | 200 | 🔍 |
| 3 | Seasoned Voyager | 500 | 🧭 |
| 5 | Realm Wanderer | 2,000 | 🗺️ |
| 7 | Cosmos Sage | 5,500 | 🌟 |
| 10 | Verse Transcendent | 20,000 | 👑 |
- 5 levels with story-driven scenarios per world
- Mini-bosses mid-level + Boss battles at world end (with Phase 2)
- XP system with combo multipliers and prestige
- Lifelines: 50/50, Skip, Hint
- Items & Inventory: Drops from correct answers
- NPCs with memory, mentor advice, rival challenges
- Lore Codex: Discover hidden secrets and world backstory
- World Builder: Create worlds via CLI wizard
- AI World Generator: Pull from Course Catalog → parallel AI generates full worlds
- Import/Export: Backup and restore progress
- 32 achievements across 4 rarity tiers
Every interaction proactively suggests what to learn next.
| Trigger | Suggestion Type | Example |
|---|---|---|
| After AI Chat | 📚 Topic recommendations | "Based on your question, try these next..." |
| After Quiz | "You scored 70% — focus on these areas..." | |
| After Course | 🔗 Related courses | "Since you're exploring this topic, check these out..." |
| After Sub-topic | 📅 Spaced review | "1 topic due for review today" |
| After Search | 🎯 Related content | "Based on your search, here's what might interest you..." |
| Streak ≥ 3 days | 🔥 Challenge | "Try a timed quiz to push your limits!" |
| # | Option | Shortcut | Description |
|---|---|---|---|
| 1 | 📂 Course Catalog | 1 / CC |
Hierarchical courses with AI tutor |
| 2 | 📚 Study Notes | 2 / N |
Browse learning materials |
| 3 | 📝 Take Quiz | 3 / Q |
Test your knowledge |
| 4 | 🤖 AI Chat | 4 |
AI tutor (online & offline) |
| 5 | 📊 My Progress | 5 / P |
Analytics, achievements, export |
| 6 | 🔖 Study Tools | 6 / T |
Bookmarks, search, spaced review |
| 7 | 🧠 Knowledge Brain | 7 / B |
Offline Q&A database |
| 8 | 🏪 Data Store | 8 |
Download content |
| 9 | 🌌 KSL-Verse | 9 / V |
Multiverse learning game |
| O | 🌐 Online Mode | O |
Friends, leaderboards, share worlds |
| S | ❤️ Support | S |
Credits, email, website |
| F | 🎮 Study Modes | F / M |
Flashcards, timed quiz, tutorials |
| D | 👤 Profiles | D |
Switch or manage profiles |
| C | ⚙️ Settings | C |
Configure experience |
| H | ❓ Help | H |
Usage info |
| 0 | ❌ Exit | 0 |
Leave kslearn |
# Install with online features (recommended)
pip install kslearn[online]
# Launch
kslearn
# Play KSL-Verse with friends
kslearn online| Requirement | Version | Notes |
|---|---|---|
| Python | 3.7+ | Required |
| rich | Latest | Terminal UI library |
| click | Latest | CLI framework |
# Clone repository
git clone https://github.com/kashsight/kslearn.git
cd kslearn
# Install dependencies
pip install rich click
# Install in editable mode
pip install -e .
# Run
kslearn# Install prerequisites
pkg install python
# Install dependencies
pip install rich click
# Clone and install
git clone https://github.com/kashsight/kslearn.git
cd kslearn
pip install -e .
# Run
kslearn📖 Full installation guide: See docs/INSTALLATION.md for detailed instructions, troubleshooting, and all platforms.
kslearn connects to Firebase RTDB for global multiplayer features:
| Feature | Description |
|---|---|
| 👥 Friends | Add friends, see who's online, send invites |
| 🎮 Multiplayer Verse | Host or join KSL-Verse sessions with friends |
| 🏆 Leaderboards | Compete globally on XP and scores |
| 🌍 Share Worlds | Upload/download community-created worlds |
| 📊 Cross-Device Sync | Login from anywhere, progress follows you |
# Open online mode
kslearn online
# Join friend's game
kslearn online join ksverse_abc123
# Upload your world
kslearn share --world my_world
# View leaderboards
kslearn leaderboard --xpkslearn comes pre-configured with the kash-sight Firebase project. Just run:
kslearn online
# Choose "Continue as guest" or "Create account"📖 Full guide: See docs/ONLINE_MODE.md for detailed setup instructions.
Each world is a *_verse.json file in data/ksl/:
WebDev Cosmos 🌐
├── Level 1: The HTML Highlands 🏔️ (5 scenarios + mini-boss)
├── Level 2: The CSS Canyons 🎨 (5 scenarios + mini-boss)
├── Level 3: The JavaScript Junction ⚡ (5 scenarios + mini-boss)
├── Level 4: The DOM Delta 🌊 (5 scenarios + mini-boss)
├── Level 5: The Async Abyss 🔮 (5 scenarios + mini-boss)
└── Boss: The Chrono Phantom ⚔️ (5 questions, 150 XP)
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Course Catalog │ ──► │ AI Generation │ ──► │ Playable World │
│ (data/ksl/) │ │ (ThreadPool) │ │ (*_verse.json) │
└─────────────────┘ └──────────────────┘ └─────────────────┘
Process:
- Browse Course Catalog — Select any hierarchical course
- AI generates in parallel — Uses
tgpt/skywithThreadPoolExecutor - Each course category → a game level — 5 scenarios per level + mini-boss
- Boss battle — Covers all course concepts
- Lore entries + epilogue — Inspired by course content
All verse content is plain JSON — no encryption, no packaging:
{
"verse": {
"id": "my_world",
"title": "My World",
"icon": "🌍",
"difficulty": "beginner",
"levels": [
{
"id": "level_1",
"title": "First Steps",
"scenarios": [...],
"boss": {...}
}
]
}
}kslearn/
├── kslearn/
│ ├── cli.py # Main CLI entry point
│ ├── config.py # Configuration management
│ ├── ui.py # Rich UI components with theming
│ ├── loader.py # Content loader (.ksl + JSON)
│ ├── ksl_loader.py # KSL file parser
│ ├── protector.py # Content encryption/signing
│ ├── engines/
│ │ ├── quiz_engine.py # Quiz system
│ │ ├── notes_viewer.py # Notes + hierarchical courses
│ │ ├── tutorials.py # Tutorial engine
│ │ ├── achievements.py # Badge system (32 achievements)
│ │ └── verse_engine.py # KSL-Verse game engine (~3,900 lines)
│ └── main/
│ ├── ai_chat.py # AI tutor with suggestions
│ ├── datastore.py # Content store
│ └── support.py # Social links
├── data/
│ ├── ksl/ # Content packages
│ └── config/settings.json # User settings
├── docs/ # Documentation
└── website/ # Firebase-hosted website
Build and manage encrypted .ksl packages:
| Command | Description |
|---|---|
python ksl_tool.py build data/my_subject.json -o data/my_subject.ksl |
Build encrypted package |
python ksl_tool.py verify data/my_subject.ksl |
Verify package integrity |
python ksl_tool.py info data/my_subject.ksl |
Display package information |
python ksl_tool.py pack my_course.json -t "Course Title" |
Pack course interactively |
Visit kash-sight.web.app for:
| Page | Purpose |
|---|---|
| 🏠 Home | Project showcase and hero section |
| 📚 KSL Store | Free & premium content marketplace |
| 🏆 LearnQuest | Quiz-to-reward system |
| 📝 Submit KSL | Community content submissions |
| 💬 Contact | Suggestions, feedback, support |
⚠️ Note: kslearn is proprietary software owned by KashSight Platform. We do not accept code contributions.
However, we welcome feedback:
| Type | How to Submit |
|---|---|
| 🐛 Bug Report | Use Bug Report Template |
| 💡 Feature Request | Use Feature Request Template |
| kashsight@gmail.com | |
| 🌐 Website | https://kash-sight.web.app |
Proprietary — KashSight Platform
All rights reserved. No modifications, redistributions, or derivative works permitted.
See LICENSE for full terms.
Made with ❤️ by KashSight
Learn anything. Study, don't memorize. 🚀

