Written in Koder Lang

Meet Dok

A universal text reader and editor. View and edit any document — code, text, markdown, configs, and more. Terminal, desktop, web, and mobile.

36,120
Lines of code
45
Modules
100+
Languages
5
Platforms
dok — main.kd
1# Koder Dok — main entry point
2require "./src/core/document"
3require "./src/shell/renderer"
4
5app = Dok::Application.new
6app.load_config
7app.load_themes
8
9case mode
10when :shell then app.run_shell
11when :desktop then app.run_desktop
12when :web then app.run_web
13end

One editor, every platform

Koder Dok adapts its interface to each environment while sharing the same core engine, syntax highlighting, and configuration.

Shell (TUI)

Full-featured terminal UI with Vim and standard editing modes. SSH-friendly, no GUI needed.

Linux macOS Windows

Desktop

Native window with GPU-accelerated rendering, system menus, drag-and-drop, and file associations.

Linux macOS Windows

Web

Run in any modern browser via WebAssembly. Edit files, collaborate, and code from anywhere.

Chrome Firefox Safari

Mobile

Touch-optimized UI with gesture navigation, virtual keyboard shortcuts, and file sync.

Android iOS

Everything you need to code

From syntax highlighting to debugging, Koder Dok packs a full IDE experience into a lightweight, extensible editor.

Multi-Environment

Runs in terminal (TUI), desktop window, web browser, and mobile. One codebase, four experiences.

Syntax Highlighting

100+ programming languages with an incremental regex engine. Fast, accurate, and beautiful.

LSP Client

Auto-completion, diagnostics, go-to-definition, hover info, rename refactoring, and code actions.

DAP Client

Debug with breakpoints, step-through execution, variable inspection, and watch expressions.

Git Integration

Status, diff, blame, staging, commit, and branch management without leaving the editor.

Multi-Cursor

Multiple cursors and selections, Ctrl+D add occurrence, column selection for parallel editing.

Vim + Standard

Dual editing modes: full Vim motions and operators or standard Ctrl+ keyboard shortcuts.

Command Palette

Fuzzy search commands, files, symbols, and lines. Access everything with Ctrl+Shift+P.

Integrated Terminal

Built-in terminal emulator with multiple instances. Run builds, tests, and commands inline.

10 Themes

Koder Dark/Light, Monokai, Nord, Solarized, Dracula, One Dark, Gruvbox, and Tokyo Night.

Code Intelligence

Snippets, auto-pairs, bracket matching, code folding, and smart indent for a seamless flow.

Plugin System

Extend with Koder Lang scripts. Rich API, lazy activation, and a growing ecosystem of plugins.

Modular by design

45 modules organized into 12 domains. Each module is independent, testable, and replaceable.

core
Buffer, cursor, selection, undo/redo
syntax
Incremental regex tokenizer
lsp
Language Server Protocol client
dap
Debug Adapter Protocol client
git
Status, diff, blame, branch ops
ui
Widget system, layout, rendering
shell
Terminal UI, VT100 escape codes
web
WASM target, Canvas rendering
desktop
Native window, GPU acceleration
mobile
Touch UI, gestures, virtual keys
config
Settings, keymaps, themes
plugin
Extension API, lazy activation
36,120
Lines of code
45
Modules
12
Domains
0
External deps

Up and running in seconds

Install Koder Dok on any platform and start editing immediately.

terminal
# Install via package manager
$ sudo apt install koder-editor    # Debian/Ubuntu
$ sudo dnf install koder-editor    # Fedora/RHEL
$ sudo pacman -S koder-editor      # Arch

# Or download from releases
$ curl -fsSL https://dok.koder.dev/install.sh | sh

# Open a file
$ dokmain.kd

# Open in desktop mode
$ dok--desktop project/
terminal
# Install via Homebrew
$ brew install koder-editor

# Open a file
$ dokmain.kd

# Open in desktop mode
$ dok--desktop project/
powershell
# Install via winget
> winget install Koder.Editor

# Install via Scoop
> scoop install koder-editor

# Open a file
> dokmain.kd

# Open in desktop mode
> dok--desktop project\
terminal
# Start local web server
$ dok--web                        # opens http://localhost:9400
$ dok--web --port 8080           # custom port

# Or visit the hosted version
# https://dok.koder.dev/app
install
# Android — download APK from releases
$ curl -LO https://flow.koder.dev/koder/koder-dok/releases/latest

# iOS — available on TestFlight
# https://dok.koder.dev/ios
usage
$ dokfile.txt                     # open file in TUI mode
$ dok--desktop src/               # open directory in desktop mode
$ dok--web                          # start web server
$ dok--vim                          # force Vim mode
$ dok--theme tokyo-night           # select theme
$ dok--diff a.txt b.txt           # diff two files
$ dok--version                      # show version

All releases available at flow.koder.dev/koder/koder-dok/releases