Haverbeke launches Wordgard open-source rich-text editor
Wordgard is a new, modular, and schema-based in-browser rich-text editor library written in JavaScript and released under the permissive MIT license. Developed by Marijn Haverbeke as a greenfield rewrite incorporating lessons from nine years of ProseMirror maintenance, it features a completely new programming interface with facet-based extensions, a simplified change representation model inspired by CodeMirror 6, and a design aimed at minimizing DOM monitoring workarounds by utilizing standard `beforeinput` events.
While ProseMirror remains a robust industry standard, Wordgard represents a cleaner, next-generation architecture that sheds backward compatibility constraints to solve core state-management and extension pain points.
* Greenfield Architecture: Starting from scratch allows Haverbeke to implement facet-based extensions and a simpler change representation system modeled on CodeMirror 6, moving away from ProseMirror's complex "step" translation logic.
* Simplified Schema Composition: Unlike ProseMirror where nodes and marks are coupled to specific schemas, Wordgard allows element types to be defined independently and reused dynamically.
* Modern DOM Interactivity: By relying heavily on the modern standard `beforeinput` events, the library bypasses many of the historical, browser-specific DOM-diffing hacks that plagued early contenteditable editors.
* Non-Compromised Design: Wordgard is not designed to replace ProseMirror immediately, but rather to exist as a clean-slate option for developers who want a general, functional programming interface without the legacy baggage.
DISCOVERED
1h ago
2026-07-03
PUBLISHED
5h ago
2026-07-03
RELEVANCE
AUTHOR
indy