Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

chrisryugj/kordoc

Data

Converts Korean HWP/HWPX, PDF, Office and scanned documents to Markdown and back, with a CLI, library and MCP server for AI pipelines.

This repo is an agent skill pack · 2 skillsSkill list and install →
3,157
550
TypeScript
MIT
8 months old

What it does

kordoc is a document parser and generator focused on Korean public-sector formats. It reads HWP 3.x/5.x, HWPX, HWPML, PDF, XLS/XLSX, DOCX, PPTX and many image formats into Markdown and structured data, and it can turn Markdown back into HWPX/HWP documents. It ships as a Node/TypeScript library, a CLI, a Python and Java SDK, and an MCP server so an AI agent can parse, compare, fill and lint documents.

The project claims to solve the conversion of Korean official documents (공문서) to readable Markdown for LLM and RAG use. Notable aims include table structure preservation, layout-preserving edits, form filling, privacy masking, and local OCR for scans, including handwriting. The README reports benchmarks such as 100% table structure match on 2,424 HWPX documents and strong PDF-to-Markdown scores on the public opendataloader-bench; measurement scope and exclusions are documented in the benchmark notes (source:14).

Quick start

Requirements: Node.js 20 or later on macOS, Linux or Windows. Install the package or run its CLI with npx:

npm install kordoc
npx kordoc 문서.hwpx -o 문서.md

A basic parse returns Markdown, structured blocks and document metadata. To use it from TypeScript:

import { parse, markdownToHwpx } from "kordoc"
const result = await parse("문서.hwpx")
if (result.success) console.log(result.markdown)

For AI agent use, register the MCP server:

npx -y kordoc setup

This searches for installed clients (Claude Desktop, Claude Code, Cursor, Codex and others) and registers the MCP server. After restarting the client, the README says 22 document tools become available; manual registration and troubleshooting steps are in the usage docs (source:13).

For a scanned PDF, enable OCR explicitly; for a Markdown-to-HWPX conversion, use the generate command with a preset:

npx kordoc 스캔본.pdf --ocr -o 스캔본.md
npx kordoc generate 보고서.md --preset 보고서 -o 보고서.hwpx

Usage constraints

The dependency set only requires Node.js 20+, but the docs note that OCR, image-format conversion and QR reading are optional dependencies installed by default; omitting optional packages limits those features. Parsing many files in parallel with --jobs raises memory usage.

HWP output (-o документ.hwp) requires the separate @rhwp/core package; HWPX output works without Hancom Office. The default output does not include chart values or SmartArt unless --charts is enabled. For closed networks, KORDOC_OFFLINE=1 blocks outbound communication and OCR runs locally on CPU without an API key; Linux users can run the parser inside a gVisor sandbox with KORDOC_SANDBOX=gvisor. The project is MIT-licensed.

HotRepo's take

On the 2026-11-28 TypeScript daily list, kordoc had 3,157 stars and 550 forks, gaining 8 stars that day and reaching position 17. This is a document-data project rather than a generic developer tool: its stated value is in Korean public documents, where the README reports table-structure and layout benchmarks instead of feature lists alone. The inclusion of MCP registration, a Python and Java SDK, offline mode and sandbox support shows the project is aimed at practical use in AI and enterprise pipelines, not just a demo. The single recorded snapshot supports only that day's ranking, not a trend.

Project source and documentation

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.