Dok
Dok — Cross-Platform Editor + Office Suite
- *rea:*Workspace
- *ath:*
platform/dok - *ind:*Cross-platform editor — text, code, and rich office documents (terminal, desktop, web, mobile)
- *tack:*Entirely written in Koder Koda
- *istory:*Originally shipped as "Koder Editor (ked)"; renamed to "Koder Dok (dok)" in v1.0.26 (2026
0326)
Role in the stack
Dok is Koder's crossplatform editor. It started as a modern text and code editor (terminal, desktop, web, mobile from a single codebase in Koder Koda) and grew into a full officesuite replacement: native parsers and generators for the main document formats, plus deep Google DocsSheets integration. Unlike `engineslang/koda` — which is the full IDE with language servers, debuggers, and an AI copilot — Dok focuses on editing content, not shipping code.
Native format support
- *DF*— full parser + generator (objects, streams, pages, fonts, images, bookmarks, metadata, text positioning)
- *OCX*— Office Open XML with styles, headings, lists, tables, hyperlinks, images, headers/footers, numbering, metadata
- *LSX*— SpreadsheetML with multiple sheets, shared strings, styles, formulas, merged cells, frozen panes, filters, conditional formatting, CSV import/export
- *PTX*— PresentationML with slides, shapes, placeholders, speaker notes, transitions, themes
- *DF*— ODTODSODP with paragraphs, styles, lists, tables, headers/footers, metadata
- *VG*— full parser and visual editor with transforms, inline styles, path data, defs (gradients, filters, clipPaths), optimization, terminal preview, HTML preview
- *oogle Docs + Sheets*— OAuth2 authentication, document reading + editing via batchUpdate, export to DOCXPDFXLSX/CSV, sharing
No external dependencies — pdftotext, pandoc, and friends were removed in favor of Koder-native implementations.
Primary couplings
| Consumer | Relationship |
|---|---|
engines/lang/lang |
Implementation language — Dok is written in Koder Koda |
platform/drive |
Cloud storage for opened files |
platform/flow |
Optional git integration for repo-hosted content |
platform/id |
OAuth2 glue for Google Docs/Sheets integration |
Targets
- *erminal*— works inside any terminal, with Unicode preview for images and SVGs
- *esktop*— chromeless app window (
--desktopmode) - *eb*— served by the embedded
dok-server - *obile*— from the same Koder Koda codebase