▲ 15 today3.2k starsTypeScript
Kordoc turns Korean government docs into editable Markdown
What is kordoc?
Kordoc parses Korean official files, including HWP, HWPX, PDF, Office formats and scanned images, and converts them to Markdown or structured JSON. It can also generate HWPX documents from Markdown while preserving tables and layout, and is available as a library, CLI, and HTTP API.
Who it is for
Anyone who needs to feed Korean paperwork into AI models or automate document workflows can now do it without manual re-typing.
How kordoc works
kordoc is a Node.js package that runs on version 20 or later on macOS, Linux or Windows. It loads a WebAssembly engine to read PDF content and bundles local OCR, image conversion and QR-code detection modules. The core library can be invoked via a command-line interface, an HTTP API or registered as a Model Context Protocol (MCP) server for AI agents. Optional components can be omitted to reduce size, and the whole parser can be sandboxed with gVisor for extra security.
What you can do with it
- Convert HWP, HWPX, PDF, DOCX, PPTX and image files into Markdown or structured JSON.
- Generate new HWPX or HWP documents from Markdown using preset government templates.
- Extract tables from PDFs as exact grid structures and export them as GFM-compatible markdown.
- Fill form fields in a government document template by supplying a JSON file.
Good to know
- Requires Node.js 20+ and a compatible OS; no native support for older runtimes.
- OCR and image processing depend on optional native libraries and may need GPU flags for best performance.
- Offline mode disables any external network calls, so cloud-based models cannot be used when KORDOC_OFFLINE=1.
Written from the project's own README.
Try it in 60 seconds
You need: Node.js 20 or newer
npm installnpx kordoc 문서.hwpx -o 문서.md
MIT licenseUpdated todayTypeScript4 open issues
New projects are not vetted. Skim the code, and run it in a fresh folder or a container before giving it your files or keys.
The story so far
Early Signal first spotted chrisryugj/kordoc on December 1, 2026, when it had 3.2k GitHub stars. It now has 3.2k. On its busiest day it gained 15 stars. It is published under the MIT license and has 557 forks. Early Signal files it under MCP & Skills, Coding.
Questions about kordoc
- Is kordoc free and open source?
- Yes. chrisryugj/kordoc is open source under the MIT license, and the code is on GitHub at https://github.com/chrisryugj/kordoc.
- How do I install kordoc?
- Use one of these, depending on your setup: npm install · npx kordoc 문서.hwpx -o 문서.md
- What do I need to run kordoc?
- Node.js 20 or newer