Dokumentation

Alles, was du über Kodo Forge wissen musst — vom Einstieg bis zur Erstellung eigener Terminal-Kurse.

Was ist Kodo Forge?

Kodo Forge is a Terminal User Interface (TUI) for learning web development. Unlike browser-based platforms like Udemy, Coursera or freeCodeCamp, Kodo Forge runs entirely inside your terminal — the same tool professional developers use every day.

Why a terminal? Because it eliminates distractions. No browser tabs, no notifications, no ads. Just you and the material. Research shows that deep-focus, distraction-free environments dramatically improve learning retention.

Kodo Forge is:
100% offline — no internet connection required after download
Zero dependencies — single executable, no Node.js or Python needed
Privacy first — no accounts, no telemetry, no tracking
Open source — MIT licensed, fully transparent

Wie es funktioniert

When you launch Kodo Forge, the engine scans your directory for a platform.json configuration file. This file tells the engine where your courses are and how they're structured.

The engine then renders a beautiful terminal interface with:
1. A platform overview showing all available courses with progress bars and a learning path flowchart
2. A course view with all lessons organized by phase, with completion status
3. A section reader with the Kinetic Reading engine and adaptive depth modes
4. Interactive quizzes with multiple choice and code exercises
5. A spaced repetition system with smart review scheduling and streak tracking

Everything is keyboard-driven. Navigate with arrow keys, select with Enter, go back with Escape. It's designed to feel like a native terminal application with smooth animations.

Der Kinetische Reader

The Kinetic Reader is our custom-built text progression engine. Instead of dumping an entire page of text at you, it reveals content progressively — section by section, paragraph by paragraph.

How it works:
• Text is rendered in the terminal using our custom Markdown engine
• Beautiful syntax-highlighted code blocks with optional line-by-line annotations
• Mermaid diagram support rendered directly in the terminal
• Tables with automatic column sizing and proper formatting
• Callout boxes for tips, warnings, important notes, and thinking prompts
Why it's better:
• Forces active reading instead of passive scrolling
• Each section is right-sized for focused learning (3-7 minutes)
• Progress is saved automatically — pick up exactly where you left off
• Adaptive depth: switch between summary, standard, and deep-dive modes per section with a single keypress

Spaced-Repetition-System

Kodo Forge includes a built-in spaced repetition system based on proven cognitive science. After you complete a section, key concepts are automatically added to your review queue.

The algorithm:
• New concepts are reviewed after 1 day
• If you remember them, the interval doubles (1 → 2 → 4 → 8 → 16 days)
• If you forget, the interval resets to 1 day
• The platform shows you which reviews are due each session
Features:
• Automatic flashcard generation from lesson content
• Daily review count in the platform header
• Streak tracking to maintain your learning habit
• Activity sparklines showing your 14-day learning history
• Smart recommendations based on your progress and review state

Open-Source-Philosophie

Kodo Forge is 100% free and open source under the MIT license. We believe high-quality programming education should be accessible to everyone, regardless of income or location.

What this means for you:
• All source code is available on GitHub
• You can modify, extend, and redistribute the engine freely
• Community contributions (bug fixes, new features, translations) are welcome
• No hidden premium tier, no subscription, no "freemium" model
• The entire codebase is TypeScript — clean, typed, and well-structured
Want to contribute?
• Report bugs and request features via GitHub Issues
• Submit pull requests for improvements
• Create your own courses and share them with the community
• Help translate courses to other languages

We believe in learning by doing. The engine itself is a great TypeScript project to study — it demonstrates clean architecture, state management, terminal rendering, and data-driven design patterns.

Installation

Option 1: Download the executable (recommended for learners)

Go to the Download page and grab the binary for your operating system. Place it in any directory and run it. That's it — instant learning environment.

Option 2: Run from source (recommended for developers)

If you want to contribute, modify, or study the code:

bash
git clone https://github.com/lia-xim/Kodo-Forge-TUI-for-learning-Coding.git
cd Kodo-Forge-TUI-for-learning-Coding/platform
npm install
npm start
Requirements for source:
• Node.js 20+
• npm
Requirements for executable:
• Nothing. Zero dependencies. Works on Windows, macOS, and Linux.

Eigene Kurse erstellen

Kodo Forge is a data-driven engine. Courses are just folders of Markdown files. You can create courses on any topic — programming, languages, science, history, anything that can be taught through text.

Step 1: Create your directory structure

bash
my-project/
├── platform.json          # Course registry
├── my-course/
│   ├── 01-introduction/
│   │   ├── README.md      # Lesson overview
│   │   └── sections/
│   │       ├── 01-welcome.md
│   │       ├── 02-setup.md
│   │       └── 03-first-steps.md
│   ├── 02-basics/
│   │   ├── README.md
│   │   └── sections/
│   │       ├── 01-core-concepts.md
│   │       └── 02-hands-on.md
│   └── ...

Step 2: Register in platform.json

json
{
  "courses": [{
    "id": "my-course",
    "name": "My Amazing Course",
    "description": "Learn something amazing",
    "directory": "my-course",
    "color": "blue",
    "icon": "MC",
    "totalLessons": 10,
    "status": "active"
  }],
  "activeCourse": "my-course"
}

Step 3: Write your Markdown content

The engine supports rich Markdown features:
• Headers, bold, italic, inline code
• Fenced code blocks with syntax highlighting
Annotated code blocks — code with side-by-side explanations
• Tables with automatic column sizing
• Callout boxes (TIP, WARNING, IMPORTANT, NOTE, DENKFRAGE)
• Mermaid diagrams rendered in the terminal
• Depth markers for adaptive reading (summary / standard / deep-dive)

Step 4: Test with the engine

bash
npm start

The engine auto-detects your course and renders it as a beautiful TUI.

Using AI to create courses: You can use AI assistants (Claude, ChatGPT, Gemini) to generate course content. We provide a workflow file at .agent/workflows/create-kodo-course.md that teaches AI assistants the exact directory structure, Markdown conventions, and didactic best practices. Simply tell your AI: "Create a Kodo Forge course about [topic]" and point it to this workflow.

Markdown-Referenz

Headings Use #, ##, ### for section headers.

Code Blocks Use fenced code blocks with language specification for syntax highlighting.

Annotated Code (Kodo Forge exclusive) Add [annotated] after the language name. Lines ending with // comment get displayed as side annotations.

Callout Boxes
Start a blockquote with an emoji + keyword:
> 💡 TIPP: — Tips and best practices
> ⚠️ WARNUNG: — Warnings and caveats
> 📌 WICHTIG: — Important information
> 🧠 DENKFRAGE: — Self-explanation prompts
Depth Markers
Control what content appears at each reading depth:
— Summary mode content
— Standard mode (default)
— Deep-dive mode only

Tables Standard Markdown tables with automatic column sizing and alignment.

Mermaid Diagrams Use mermaid as the language in a fenced code block. Supports flowcharts, sequence diagrams, and more.

Engine-Architektur

Kodo Forge is built with TypeScript and runs on Node.js (or as a compiled Bun executable). The codebase is organized into clean, modular components:

Core Engine Modules:
tui.ts — Main entry point, input loop, screen routing
tui-state.ts — Global state management (screens, progress, config)
tui-platform.ts — Platform overview with responsive multi-layout system
tui-main-menu.ts — Course lesson list with selection and filtering
tui-section-reader.ts — The Kinetic Reader engine with adaptive depth
markdown-renderer.ts — Custom terminal Markdown renderer (500+ lines)
tui-quiz.ts — Interactive quiz engine with multiple question types
tui-review.ts — Spaced repetition scheduling and review UI
tui-stats.ts — Progress tracking, streaks, activity sparklines
animation-engine.ts — Terminal animation system with easing functions
Design Principles:
• Zero external runtime dependencies — only dev dependencies (TypeScript, tsx)
• Pure terminal rendering — no ncurses, no blessed, no ink
• Responsive to terminal width/height changes in real-time
• All state persisted to local JSON files
• Modular architecture for easy extension
• Data-driven — the engine knows nothing about specific course content

Kodo Forge ist Open Source

Beitragen, forken oder einfach den Code studieren. Die gesamte Engine ist in sauberem, gut dokumentiertem TypeScript geschrieben.