# basecamp/trix

A rich text editor for everyday writing

Repository: https://github.com/basecamp/trix
Canonical: https://ross.abutalabs.com/products/trix
Homepage: https://trix-editor.org/
Language: JavaScript
License: MIT
License Family: permissive
Topics: rich-text-editor, wysiwyg-editor, wysiwyg, javascript, custom-elements, editor, text-editor
Last push: 2026-08-21T10:40:31+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 83, longevity 100
- inputs: {"age_days": 4780, "days_push": 12, "days_rel": 116, "gap_med": 14.0, "n_releases_24m": 17}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 20004, forks 1134 (observed 2026-08-28T04:11:29.513061+00:00)

## What it is
Trix is a WYSIWYG rich text editor for web applications, built by 37signals as a JavaScript custom element. It uses its own internal document model rather than relying on contenteditable's execCommand APIs, producing consistent HTML output with support for embedded attachments.

## Use cases
- add a rich text editor to a web app for writing messages and comments
- let users compose formatted articles or lists in the browser
- embed a WYSIWYG editor with attachment support in a form
- avoid cross-browser contenteditable inconsistencies in a text editor
- build a comment box with bold, italic, and list formatting
- integrate a rich text editor into a Rails or any JavaScript web application

## When to choose
- you need a dependable, production-proven WYSIWYG editor for everyday writing like messages, comments, and articles
- you want consistent, terse HTML output across all evergreen browsers
- you prefer a web-standards-based custom element that works with any bundler or framework
- you need built-in support for embedded attachments

## When to avoid
- you need complex document editing like tables, collaborative editing, or fine-grained layout control
- you want a fully customizable editor architecture with a plugin ecosystem (consider ProseMirror or Slate)
- you need a plain markdown or code editor rather than WYSIWYG formatting

## Facets
- artifact type: library
- maturity: stable
- function: editor, ui-components, frontend-framework
- domain: web-development, frontend, text-editors
- platform: browser, cross-platform
- tags: wysiwyg, rich-text-editor, custom-elements, web-components, contenteditable, attachments, javascript

## Member repositories
- basecamp/trix (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:29.513061+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-29T16:59:22.938820+00:00, confidence not recorded.
  - readme: https://github.com/basecamp/trix (fetched 2026-08-28T04:11:29.513061+00:00, sha 402a4b663f30)
  - homepage: https://trix-editor.org/ (fetched 2026-08-29T07:58:18.425408+00:00, sha 74ce26d0abef)
  - registry_npm: https://registry.npmjs.org/trix (fetched 2026-08-29T07:58:18.428825+00:00, sha 049b74c159a3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
