FindSoftware

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

Status
Active
Maintainer
Neil Jenkins3
First release
20144

Rendering and deploy

Install with
npm, script tag2

Releases

Current major version
25
Last release
2026-11-106

Adoption

GitHub stars
4,9281
npm downloads a week
64,4817
Contributors
279
Dependent repositories
8758
Dependent packages
218

Why these figures do not compare

Sources

  1. 2026-11-16: links, Written in, License, GitHub stars
    api.github.com/repos/fastmail/Squire
  2. 2026-11-16: links, Categories, Install with, License model
    github.com/fastmail/Squire/blob/master/README.md
  3. 2026-11-16: Maintainer
    github.com/fastmail/Squire/blob/master/LICENSE
  4. 2026-11-16: First release
    api.github.com/repos/fastmail/Squire/git/tags/41ff391f36612f44d2aa0222f165127ff7a741c5
  5. 2026-11-16: Current major version
    registry.npmjs.org/squire-rte/latest
  6. 2026-11-16: Last release
    registry.npmjs.org/squire-rte
  7. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/squire-rte
  8. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/squire-rte
  9. 2026-11-16: Contributors
    api.github.com/repos/fastmail/Squire/contributors?per_page=1

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON