Dok — Cross-Platform Editor + Office Suite

  • Area: Workspace
  • Path: platform/dok
  • Kind: Cross-platform editor — text, code, and rich office documents (terminal, desktop, web, mobile)
  • Stack: Entirely written in Koder Koda
  • History: Originally shipped as "Koder Editor (ked)"; renamed to "Koder Dok (dok)" in v1.0.26 (2026-03-26)

Role in the stack

Dok is Koder's cross-platform 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 office-suite 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

  • PDF — full parser + generator (objects, streams, pages, fonts, images, bookmarks, metadata, text positioning)
  • DOCX — Office Open XML with styles, headings, lists, tables, hyperlinks, images, headers/footers, numbering, metadata
  • XLSX — SpreadsheetML with multiple sheets, shared strings, styles, formulas, merged cells, frozen panes, filters, conditional formatting, CSV import/export
  • PPTX — PresentationML with slides, shapes, placeholders, speaker notes, transitions, themes
  • ODF — ODTODSODP with paragraphs, styles, lists, tables, headers/footers, metadata
  • SVG — full parser and visual editor with transforms, inline styles, path data, defs (gradients, filters, clipPaths), optimization, terminal preview, HTML preview
  • Google 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

  • Terminal — works inside any terminal, with Unicode preview for images and SVGs
  • Desktop — chromeless app window (--desktop mode)
  • Web — served by the embedded dok-server
  • Mobile — from the same Koder Koda codebase