kordoc: A library, CLI, and MCP server for reading, comparing, editing, and creating Korean documents with AI.
What problem it solves
Korean official documents use varied formats such as HWP, HWPX, PDF, Office files, and scanned images, making their contents difficult for AI workflows to read and work with directly. The project addresses this by converting documents into Markdown and structured data, while also supporting document creation, comparison, form filling, and format-preserving edits.
Key features
Document parsing and OCR — Convert HWP, HWPX, PDF, Office files, and scanned images into Markdown and structured data. Local OCR is available for text extraction, including handwriting recognition.
Source: README
Document creation and conversion — Create HWPX or HWP documents from Markdown, apply official-document presets and departmental formatting samples, and convert other supported formats into HWPX.
Source: README
Comparison and format-preserving edits — Compare documents at block or cell granularity and apply patches to HWPX or HWP files while retaining document formatting. New content can also be written using the formatting of a sample document.
Source: README
Forms, templates, and document review — Fill fields and press boxes, use standard draft forms, create reusable agency format packs, and lint documents for notation, public-language, structure, AI-style, and calculation issues.
Source: README
Library, CLI, MCP, and SDK access — Use the project as a JavaScript or TypeScript library, a command-line application, or an MCP server. Python and Java SDKs are also documented for parsing documents from those ecosystems.
Source: README, sdk, server.json
Quick start
Copied verbatim from the project's README.
npm install kordocimport { parse, markdownToHwpx } from "kordoc"
import { writeFile } from "node:fs/promises"
const result = await parse("문서.hwpx")
if (result.success) {
console.log(result.markdown)
// result.blocks: 구조화 데이터, result.metadata: 문서 정보
}
const hwpx = await markdownToHwpx("# 추진계획\n\n본문", {
gongmun: { preset: "보고서" },
})
await writeFile("보고서.hwpx", Buffer.from(hwpx))Who it may suit
This project may suit developers building AI document workflows, public-sector teams working with Korean office files, and users who need to convert, compare, fill, or generate HWP-family documents.
Topics to discuss
Which official-document workflows would benefit most from unified Markdown and HWPX support?
How should format-preserving editing expose skipped changes and verification results?
Which templates, validation rules, or agency packs should the community prioritize next?
Written by ReadmeX AI from the project's README, source and public GitHub data; it may contain mistakes.
Read the original README https://github.com/chrisryugj/kordoc#readme
ReadmeX opened this community for a trending project; it is not run by the project. Maintainers can claim it from the community page.
Comments
…