# facebookarchive/draft-js

A React framework for building text editors.

Repository: https://github.com/facebookarchive/draft-js
Canonical: https://ross.abutalabs.com/products/draft-js
Homepage: https://draftjs.org/
Language: JavaScript
License: MIT
License Family: permissive
Archived: true
Last push: 2023-02-06T15:35:05+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3848, "days_push": 1304, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 22598, forks 2593 (observed 2026-08-28T04:11:32.770370+00:00)

## What it is
Draft.js is a JavaScript framework for building rich text editors in React, backed by an immutable editor state model. It provides declarative building blocks for text styling, entities, and custom block rendering, and is now in maintenance mode with Lexical as its successor.

## Use cases
- build a rich text editor in React
- add WYSIWYG comment or status input to a web app
- create a long-form article composer with inline styles
- implement custom text editor blocks like embedded media
- build a notes editor with controlled editor state
- handle cross-browser contenteditable differences

## When to choose
- maintaining an existing React app already built on Draft.js
- you need a mature, well-documented React rich text framework with an immutable state model

## When to avoid
- starting a new project - the repo is archived and only receives critical security patches
- you need accessibility and performance improvements - use Lexical instead
- you need non-React or framework-agnostic editor support

## Facets
- artifact type: framework
- maturity: abandoned
- function: frontend-framework, ui-components, state-management, editor
- domain: web-development, frontend, text-editors, developer-tools
- platform: cross-platform
- tags: rich-text-editor, react, wysiwyg, immutable-js, contenteditable, archived, web-server, javascript

## Member repositories
- facebookarchive/draft-js (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:32.770370+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:56:57.755856+00:00, confidence not recorded.
  - readme: https://github.com/facebookarchive/draft-js (fetched 2026-08-28T04:11:32.770370+00:00, sha 23a4da9164b1)
  - homepage: https://draftjs.org/ (fetched 2026-08-29T07:55:31.768183+00:00, sha 979737488698)
  - site_page: https://draftjs.org/docs/getting-started (fetched 2026-08-29T07:55:31.777154+00:00, sha 319031ba2b51)
  - site_page: https://draftjs.org/docs/api-reference-editor (fetched 2026-08-29T07:55:31.779295+00:00, sha a3583b562d0f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
