# fastmail/Squire

The rich text editor for arbitrary HTML.

Repository: https://github.com/fastmail/Squire
Canonical: https://ross.abutalabs.com/products/squire
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-26T03:41:59+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 5422, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4908, forks 413 (observed 2026-08-28T04:09:02.251740+00:00)

## What it is
Squire is a lightweight (16KB gzipped, zero-dependency) HTML5 rich text editor built in TypeScript that treats arbitrary HTML as the source of truth rather than a structured internal data model. Originally built for Fastmail email composition, it excels at preserving third-party HTML like nested blockquotes and is designed to be integrated with your own UI framework without shipping any toolbar or widgets.

## Use cases
- embed a rich text editor for composing HTML emails in a web app
- edit arbitrary HTML content without a structured data model losing formatting
- replace a textarea with a lightweight rich text editing component
- build a custom WYSIWYG editor with my own toolbar UI
- preserve nested blockquotes when quoting or forwarding emails
- add rich text editing to a React/Vue app without bundling a second UI toolkit

## When to avoid
- you want a batteries-included editor with toolbars, widgets and overlays out of the box
- you prefer editors with a structured document model (e.g. ProseMirror, Slate) for schema-constrained content
- you need to support Internet Explorer

## Facets
- artifact type: library
- maturity: stable
- function: editor, ui-components, frontend-framework
- domain: web-development, frontend, text-editors, email
- platform: browser, cross-platform
- tags: rich-text-editor, html5, wysiwyg, email-composition, contenteditable, typescript, lightweight

## Member repositories
- fastmail/Squire (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:02.251740+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:18:05.769126+00:00, confidence not recorded.
  - readme: https://github.com/fastmail/Squire (fetched 2026-08-28T04:09:02.251740+00:00, sha d9eb4a084036)
- Data as of 2026-08-30T08:39:29.467469+00:00.
