# edwardkim/rhwp

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/edwardkim-rhwp).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

4,081 stars · 794 forks · Rust · MIT

## Links

- GitHub: https://github.com/edwardkim/rhwp
- awesome-repositories: https://awesome-repositories.com/repository/edwardkim-rhwp.md

## Topics

`hwp` `hwpx` `rust`

## Description

rhwp is a Rust document engine for Korean Hangul word processor files. It reads HWP, HWPX, HWP3 and HWPML documents into one shared document model, then lays out, renders, edits, saves and converts them without the original application. The same engine is compiled to WebAssembly so it can run in a browser with no server upload, and it is also available as a Rust library, a command-line tool, a browser and desktop viewer and editor, and a PDF-to-HWP/HWPX converter.

Several things set it apart. It exposes document operations to AI agents through a Model Context Protocol server, with session handles, agent profiles and policy gates. The command-line tool describes itself and returns structured JSON results with defined exit codes, so scripts and agents can check outcomes without parsing text. Pages are drawn through interchangeable backends (SVG, Canvas2D, CanvasKit and native Skia), and the project includes extensive fidelity, regression, fuzzing and round-trip testing, as well as benchmarking of agents on document tasks.

The wider surface covers inspecting and querying documents, extracting text, tables and structure, comparing versions, and filling forms singly or in batches. Export targets include SVG, PNG, PDF, HTML, Word, CSV and XML. PDF import supports page selection, passwords and cancellation. A browser editor, an extension that opens HWP files from links and downloads, and embedding APIs cover web use. Security features include redaction, scanning for hidden text, and hardening against malformed input.

Prebuilt command-line binaries are published for Linux, macOS and Windows, alongside a Rust crate installable through Cargo and an npm package.

## Tags

### Business & Productivity Software

- [Document Viewers](https://awesome-repositories.com/f/business-productivity-software/document-viewers.md) — Opens, renders, edits and saves Hangul HWP and HWPX documents in the browser and on the desktop without the original application.
- [Word Processor Document Viewers and Editors](https://awesome-repositories.com/f/business-productivity-software/word-processor-document-viewers-and-editors.md) — Opens, renders and edits Korean Hangul word processor files in a browser or on the desktop without the original application, preserving text, tables, equations and formatting.
- [Document Form Field Filling](https://awesome-repositories.com/f/business-productivity-software/document-form-field-filling.md) — Inspects form fields in HWP or HWPX files and fills them singly, by occurrence number or in bulk, then verifies and sanitizes output. ([source](https://github.com/edwardkim/rhwp/blob/main/mydocs/manual/agent_capability_registry.md))
- [Document Form Filling](https://awesome-repositories.com/f/business-productivity-software/document-form-filling.md) — Populates form fields and table cells in templates from supplied data and runs bulk replacements and conversions over whole folders of documents.
- [Document Page Layout](https://awesome-repositories.com/f/business-productivity-software/document-page-layout.md) — Lays out paragraphs, tabs, merged-cell tables, columns, numbering, vertical text, headers, master pages and positioned objects to match the original page. ([source](https://github.com/edwardkim/rhwp#readme))
- [Document Table Editing](https://awesome-repositories.com/f/business-productivity-software/document-table-editing.md) — Handles nested tables, row breaks, cell margins, merged and split cells, formulas, and image insertion inside table cells in documents. ([source](https://github.com/edwardkim/rhwp/blob/main/mydocs/release/release_notes_v0.9.0.md))
- [Scripted Form and Cell Edits](https://awesome-repositories.com/f/business-productivity-software/document-table-editing/scripted-form-and-cell-edits.md) — Fills form fields, replaces text across a whole document and writes table cells by grid coordinates through scripted commands. ([source](https://github.com/edwardkim/rhwp/blob/main/CHANGELOG_EN.md))
- [Document Template Batch Filling](https://awesome-repositories.com/f/business-productivity-software/document-template-batch-filling.md) — Populates template fields and table cells from supplied values and fills many records into one template for mail-merge-style output. ([source](https://github.com/edwardkim/rhwp/blob/main/llms.txt))
- [Document Version Comparison](https://awesome-repositories.com/f/business-productivity-software/document-version-comparison.md) — Diffs two documents to surface content and structural changes between versions. ([source](https://github.com/edwardkim/rhwp/tree/main/src))
- [Editor Embedding APIs](https://awesome-repositories.com/f/business-productivity-software/editor-embedding-apis.md) — Exposes WebAssembly and iframe-based editor APIs with an export method so web pages can open, edit and save documents. ([source](https://github.com/edwardkim/rhwp/blob/main/CHANGELOG.md))
- [In-Place Document Saving](https://awesome-repositories.com/f/business-productivity-software/in-place-document-saving.md) — Writes edited documents back to HWP or HWPX, optionally overwriting the original, keeping tables, fields, captions, text boxes, numbering and styles intact on reopening. ([source](https://github.com/edwardkim/rhwp/blob/main/CHANGELOG.md))
- [Programmatic Document Editing APIs](https://awesome-repositories.com/f/business-productivity-software/programmatic-document-editing-apis.md) — Provides a programmatic document API for modifying text, tables, images, fields and formatting, inserting text at positions and writing HWPX. ([source](https://github.com/edwardkim/rhwp/blob/main/llms.txt))

### Artificial Intelligence & ML

- [Document Automation Tools](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-agent-servers/document-automation-tools.md) — Lets AI agents read, search, fill in and convert documents through a Model Context Protocol server or command-line tools returning structured JSON results.
- [MCP Tool Servers](https://awesome-repositories.com/f/artificial-intelligence-ml/mcp-tool-servers.md) — Runs a Model Context Protocol server exposing document operations as tools with open-edit-close sessions and reusable handles for reading, filling, converting and editing large files. ([source](https://github.com/edwardkim/rhwp/blob/main/llms.txt))
- [Model Context Protocol Servers](https://awesome-repositories.com/f/artificial-intelligence-ml/model-context-protocol-servers.md) — Runs a Model Context Protocol server exposing document read, search, fill and convert operations as tools for AI agents.
- [Agent-Ready Document Queries](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-ready-document-queries.md) — Returns document info, text, structure, tables, fields, search hits and comparison verdicts as JSON with failure exit codes for scripts and AI agents. ([source](https://github.com/edwardkim/rhwp/blob/main/CHANGELOG_EN.md))
- [Stdio JSON-RPC Tool Servers](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-agent-servers/stdio-json-rpc-tool-servers.md) — Runs a stdio JSON-RPC server speaking the Model Context Protocol so agent hosts use document tools after adding one configuration entry. ([source](https://github.com/edwardkim/rhwp/blob/main/mydocs/manual/mcp_integration_guide.md))
- [Document Structure Analysis](https://awesome-repositories.com/f/artificial-intelligence-ml/document-structure-analysis.md) — Reads body text, table grids with merged cells, outline structure, and dates, amounts and quantities from documents for downstream analysis. ([source](https://github.com/edwardkim/rhwp/blob/main/mydocs/manual/mcp_integration_guide.md))

### Content Management & Publishing

- [Document Import and Export](https://awesome-repositories.com/f/content-management-publishing/content-import-and-export/document-import-and-export.md) — Renders pages to SVG, PNG, PDF or terminal graphics and exports content to HTML, Word, CSV or structured XML for use in other tools. ([source](https://github.com/edwardkim/rhwp/blob/main/CHANGELOG.md))
- [Command-Line Document Processors](https://awesome-repositories.com/f/content-management-publishing/content-processing-transformation/document-processing-conversion/document-processing-tools/document-automation-interfaces/command-line-document-processors.md) — Provides a command-line tool for inspecting, exporting, converting and diagnosing documents in scripts and automated workflows without a graphical interface. ([source](https://github.com/edwardkim/rhwp/tree/main/src))
- [Office Document Libraries](https://awesome-repositories.com/f/content-management-publishing/content-processing-transformation/document-processing-conversion/document-processing-tools/format-conversion-toolkits/office-document-libraries.md) — Reads HWP, HWPX, HWP3 and HML files into one shared document model for inspection, conversion and editing.
- [PDF to Editable Document Conversion](https://awesome-repositories.com/f/content-management-publishing/content-processing-transformation/document-processing-conversion/document-processing-tools/pdf-manipulation-utilities/pdf-editors/pdf-content-converters/pdf-to-editable-document-conversion.md) — Converts PDF files into editable HWP or HWPX through CLI, library, browser module or editor, with page selection, passwords and damaged-file recovery. ([source](https://github.com/edwardkim/rhwp/blob/main/CHANGELOG_EN.md))
- [Word Processor File Parsing](https://awesome-repositories.com/f/content-management-publishing/word-processor-file-parsing.md) — Reads binary HWP, HWPX, HWP3 and HWPML files, extracting sections, paragraphs, tables, images, equations, charts, headers, footers and notes. ([source](https://github.com/edwardkim/rhwp#readme))
- [PDF Exports](https://awesome-repositories.com/f/content-management-publishing/content-formats-exporting/export-formats/pdf-exports.md) — Renders documents directly to PDF through a native renderer, for all pages or a single page, with input and output safety checks. ([source](https://github.com/edwardkim/rhwp/tree/main/bindings))
- [Document Conversion](https://awesome-repositories.com/f/content-management-publishing/content-processing-transformation/document-processing-conversion/document-conversion.md) — Converts large sets of documents between formats in one run and checks that converted files open correctly. ([source](https://github.com/edwardkim/rhwp/tree/main/tools))
- [Document Content Search](https://awesome-repositories.com/f/content-management-publishing/document-content-search.md) — Finds text in a document and reports the page and table cell address of each match to show where content sits. ([source](https://github.com/edwardkim/rhwp/blob/main/mydocs/manual/mcp_integration_guide.md))
- [Paginated Document Layouts](https://awesome-repositories.com/f/content-management-publishing/paginated-document-layouts.md) — Splits content across pages and columns, breaks tables at row boundaries and corrects paragraph positions to match source pagination. ([source](https://github.com/edwardkim/rhwp/blob/main/README.md))
- [PDF Document Importers](https://awesome-repositories.com/f/content-management-publishing/pdf-document-importers.md) — Loads a WebAssembly module in a web page to import PDF bytes, report diagnostics and export HWPX with page selection and limits. ([source](https://github.com/edwardkim/rhwp/blob/main/mydocs/manual/pdf_developer_onboarding.md))
- [PDF Exports](https://awesome-repositories.com/f/content-management-publishing/pdf-exports.md) — Exports document pages to SVG, PNG or reproducible PDF from the command line, with scaling, size limits, text-as-paths and font fallback. ([source](https://github.com/edwardkim/rhwp/blob/main/README_EN.md))
- [PDF to HWP Converters](https://awesome-repositories.com/f/content-management-publishing/pdf-to-html-converters/pdf-to-hwp-converters.md) — Converts PDF files into editable HWP or HWPX with page selection, password support and layout fidelity options.

### Data & Databases

- [Tool Result Envelopes](https://awesome-repositories.com/f/data-databases/data-processing-pipelines/data-serialization/json-schema/structured-json-generation/tool-result-envelopes.md) — Returns every command outcome in a structured JSON envelope with a meaningful exit code so scripts and pipelines can chain operations without parsing text. ([source](https://github.com/edwardkim/rhwp/blob/main/GEMINI.md))

### Development Tools & Productivity

- [Document Parsing CLI Tools](https://awesome-repositories.com/f/development-tools-productivity/document-parsing-cli-tools.md) — Provides a command-line tool with JSON output and exit codes for inspecting, converting, filling and rendering Hangul documents in scripts.
- [Document Editors](https://awesome-repositories.com/f/development-tools-productivity/code-editors-ides/document-editors.md) — Offers a browser-based editor running as WebAssembly for typing, formatting, table editing, cell formulas and undo on Hangul documents. ([source](https://github.com/edwardkim/rhwp/blob/main/README.md))
- [Self-Describing Command Schemas](https://awesome-repositories.com/f/development-tools-productivity/terminal-shell-cli/cli-tooling-frameworks/cli-tooling/agent-integration-interfaces/agent-command-line-interfaces/self-describing-command-schemas.md) — Lets the command-line tool describe its own commands and usage so coding agents can learn it without reading external documentation. ([source](https://github.com/edwardkim/rhwp/blob/main/CONVENTIONS.md))

### Programming Languages & Runtimes

- [Rust WebAssembly Integrations](https://awesome-repositories.com/f/programming-languages-runtimes/rust-webassembly-integrations.md) — Compiles a single Rust document engine to WebAssembly so the same parsing, layout and editing logic runs natively and in any browser without a server.

### Software Engineering & Architecture

- [Document Rendering Backends](https://awesome-repositories.com/f/software-engineering-architecture/pluggable-backends/document-rendering-backends.md) — Lays out and draws document pages through pluggable paint backends for accurate viewing natively, in browsers via WebAssembly, or in other hosts. ([source](https://github.com/edwardkim/rhwp/tree/main/src))
- [Shared Document Models](https://awesome-repositories.com/f/software-engineering-architecture/shared-document-models.md) — Parses every input format into one common in-memory representation so layout, editing, rendering and export work identically regardless of source type.
- [Exit Code Outcome Contracts](https://awesome-repositories.com/f/software-engineering-architecture/exit-code-outcome-contracts.md) — Defines exit codes and structured JSON output so automated tools can judge whether a command, including an edit, succeeded or failed. ([source](https://github.com/edwardkim/rhwp/blob/main/QWEN.md))
- [Persistent Document Sessions](https://awesome-repositories.com/f/software-engineering-architecture/persistent-document-sessions.md) — Opens a document once and keeps a session handle alive so repeated text lookups on large files skip parsing again. ([source](https://github.com/edwardkim/rhwp/blob/main/mydocs/manual/mcp_integration_guide.md))

### Web Development

- [Client-Side WebAssembly Rendering](https://awesome-repositories.com/f/web-development/client-side-webassembly-rendering.md) — Exposes a WebAssembly parser and renderer to JavaScript, installable via npm, so HWP files load and render to SVG in the browser without a server. ([source](https://github.com/edwardkim/rhwp#readme))
- [Browser Extensions](https://awesome-repositories.com/f/web-development/browser-integration-utilities/browser-extension-development/browser-extensions.md) — Ships a browser extension that opens HWP and HWPX files from drag-and-drop, link context menus or downloads with no server upload. ([source](https://github.com/edwardkim/rhwp/blob/main/README_EN.md))
- [Embeddable Editors](https://awesome-repositories.com/f/web-development/embeddable-editors.md) — Places a complete HWP editor with menus, toolbar, formatting and table editing into any web page through an installable package or iframe. ([source](https://github.com/edwardkim/rhwp/blob/main/README.md))

### Graphics & Multimedia

- [Canvas Rendering](https://awesome-repositories.com/f/graphics-multimedia/canvas-rendering.md) — Draws document pages onto a web canvas with Canvas2D or CanvasKit, choosing the renderer per document with safe fallback. ([source](https://github.com/edwardkim/rhwp#readme))
- [Document Page SVG Renderers](https://awesome-repositories.com/f/graphics-multimedia/document-page-svg-renderers.md) — Produces an SVG image of each document page with paragraphs, tables, equations, images, charts, headers and footers from WebAssembly, command line or native code. ([source](https://github.com/edwardkim/rhwp/tree/main/npm))

### Security & Cryptography

- [Client-Side Document Privacy](https://awesome-repositories.com/f/security-cryptography/client-side-document-privacy.md) — Handles every document entirely in the browser using WebAssembly, so files are never uploaded or transmitted and contents stay private. ([source](https://github.com/edwardkim/rhwp/tree/main/rhwp-chrome))

### Testing & Quality Assurance

- [Reference Fidelity Comparisons](https://awesome-repositories.com/f/testing-quality-assurance/rendered-layout-checks/reference-fidelity-comparisons.md) — Compares rendered layout and parsed structure against reference output with golden files, round-trip checks and fuzzing to catch layout drift and corrupted-input failures.
