Squire
HTML5 rich text editor library that a web page embeds in place of a textarea and edits as HTML.
Squire is an HTML5 rich text editor that a page creates on a DOM node, replacing a textarea, and reads and writes as HTML. It was built for email composition in the Fastmail web app, where forwarded and quoted HTML from other senders has to keep its formatting. The editor therefore keeps the HTML as the source of truth rather than converting it into a limited internal model. It ships no toolbar, widgets or overlays; the application builds its own interface around the editor.
Worth knowing
The README says a page must provide a way to turn raw HTML safely into DOM nodes. Squire uses DOMPurify when the page loads it; otherwise the configuration needs a sanitizeToDOMFragment function.
Identity
Rendering and deploy
- Install with
- npm, script tag2
Releases
Adoption
Sources
- 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/fastmail/Squire - 2026-11-16: links, Categories, Install with, License model
github.com/fastmail/Squire/blob/master/README.md - 2026-11-16: Maintainer
github.com/fastmail/Squire/blob/master/LICENSE - 2026-11-16: First release
api.github.com/repos/fastmail/Squire/git/tags/41ff391f36612f44d2aa0222f165127ff7a741c5 - 2026-11-16: Current major version
registry.npmjs.org/squire-rte/latest - 2026-11-16: Last release
registry.npmjs.org/squire-rte - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/squire-rte - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/squire-rte - 2026-11-16: Contributors
api.github.com/repos/fastmail/Squire/contributors?per_page=1