HubLensRustedwardkim/rhwp
edwardkim

rhwp

FrontendRustWebAssemblyTypeScriptEditorParser
View on GitHub
75
+340

// summary

rhwp is a Rust and WebAssembly-based open-source project designed to provide a free, installation-free viewer and editor for HWP and HWPX document formats. It aims to break down the barriers of proprietary formats by enabling universal access across all platforms and AI-driven workflows. The project follows a structured roadmap to achieve full feature parity with Hancom Office while maintaining high-quality, human-led development standards.

// technical analysis

rhwp is a Rust and WebAssembly-based open-source project designed to provide a universal, installation-free viewer and editor for HWP and HWPX document formats. By utilizing a robust core architecture built on CQRS principles and a structured pagination engine, it aims to break the limitations of proprietary formats and enable cross-platform document accessibility. The project emphasizes a human-led, AI-assisted development methodology, ensuring that architectural decisions and quality control remain under human oversight while leveraging AI for rapid implementation and testing.

// key highlights

01
Provides full support for HWP 5.0 binary and HWPX XML-based formats, including complex elements like tables, equations, and charts.
02
Features a high-performance WASM-based rendering engine capable of generating SVG output and canvas-based web previews.
03
Includes a comprehensive web editor that supports text manipulation, formatting, and table editing with an API layer compatible with hwpctl.
04
Implements a sophisticated pagination system that handles multi-column layouts, table row splitting, and object placement.
05
Offers a CLI tool for document inspection and SVG export, facilitating debugging and automated document processing.
06
Maintains a rigorous development process with over 780 tests and extensive documentation on AI-driven software engineering practices.

// use cases

01
Embedding a full-featured HWP editor into web applications
02
Parsing and rendering HWP/HWPX files to SVG or HTML5 Canvas
03
Automating document inspection and layout debugging via CLI tools

// getting started

To begin, developers should review the onboarding guide in the mydocs directory to understand the project architecture and workflow. For native development, ensure Rust 1.75+ is installed and use cargo for building; for web editor development, use the provided Docker setup for WASM compilation and Vite for the rhwp-studio frontend.