DocMind is an AI-native document workspace designed for contracts, long-form documents, and professional document workflows.
Instead of being a traditional Word editor, DocMind combines semantic document understanding, AI agents, patch-based editing, diff review, and lightweight editing into a unified desktop experience.
Users can interact with documents through natural language, just like using Cursor or Codex for code — but for DOCX and professional documents.
DocMind supports local-first workspaces, semantic AST parsing, AI review workflows, patch operations, and multi-model agent integration.
Scaffold follows vite-electron-builder.
packages/
entry-point.cjs Runtime entry (wires renderer + preload)
dev-mode.js Development launcher
electron-versions/ Electron Node/Chrome version helpers
main/ Electron main process
preload/ Preload + contextBridge
renderer/ React UI
shared/ Shared types
contract-schema/ Semantic AST, patch ops
semantic-editor/ Lexical editor
agent-runtime/ Agent runtime
workspace-core/ Local workspace FS orchestration
docx-parser/ DOCX → Semantic AST
pnpm install
pnpm start
pnpm typecheck
pnpm build
pnpm compilepnpm start runs packages/dev-mode.js: build preload, start renderer dev server, watch-build preload/main (main spawns Electron).
Renderer imports preload APIs directly:
import { exportWorkspaceDocument } from '@docmind/preload'If postinstall fails to download the binary, .npmrc includes npmmirror for China. Retry:
node node_modules/electron/install.js