PACKAGE · RICH TEXT EDITOR

slate

A completely customizable framework for building rich text editors.

WEEKLY DOWNLOADS 4.8M
STARS 31.8K
FORKS 3.3K
OPEN ISSUES 17
GZIP SIZE 33.2 kB
UNPACKED SIZE 2.6 MB
DEPENDENCIES 1
LAST UPDATED 10mo ago
DOWNLOAD TRENDS

slate downloads · last 12 months

Download trends for slate1 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.03.6M7.2M10.9M14.5MNov 2025FebMayAugOct 2026
slate
ABOUT SLATE

Slate is a customizable framework for building rich text editors in JavaScript and React. It gives developers a foundation for representing and editing structured text, rather than a finished editor with a fixed interface and set of behaviors. This makes it possible to shape editing experiences around an application’s content model and interaction requirements.

Slate’s central design goal is customization: developers can define how editor content is structured and how editing behavior works. It is aimed at teams building React applications whose text-editing needs extend beyond basic text input, particularly when the editor must support application-specific content or interactions. That control also means teams take responsibility for assembling and maintaining the editor experience.

Slate uses a document-and-editor model that applications can extend with their own behavior and rendering. In React, the editor is integrated into the component tree, allowing application code to connect the editing surface with surrounding UI and React state. Treat the editor’s content structure and editing rules as application-level decisions rather than expecting a fixed set of features to cover every use case.

The package fits React-based browser workflows and projects built with JavaScript. Its framework approach suits applications that need rich-text editing to work closely with custom components, application data, or interface conventions. Teams should plan for the work of implementing and testing the particular editing behaviors their product requires, instead of assuming that installing Slate provides a complete, ready-to-use editor.

Slate is a mature, actively maintained package, with version 0.147.4, 2.0M weekly downloads, 31.7K GitHub stars, and 3.3K forks in the supplied data. Its reported gzip bundle size is 33.2 kB, while the unpacked package is 2.6 MB; these figures describe different measures and should be considered separately when evaluating delivery and installation. The package is MIT-licensed, and its open framework design trades ready-made editor behavior for control over implementation.

WHEN TO USE
  • When building a React browser application that needs an editable rich-text surface, use Slate as the editor framework rather than treating a plain text field as the entire editing model.
  • When your content needs an application-specific structure, build on Slate’s customizable editor model so the document representation can match the product’s content.
  • When editing interactions must follow product-specific rules, use Slate as a foundation and implement the behaviors your application requires.
  • When the editor must be composed with React UI, integrate it into the component tree so surrounding controls and application state can work alongside the editing surface.
  • When you want to own the editor’s rendering and behavior rather than adopt a fixed editor interface, choose Slate’s customizable framework approach.
  • When assessing a React rich-text framework with substantial ecosystem activity, consider the supplied figures of 2.0M weekly downloads and 31.7K GitHub stars alongside your own requirements.
WHEN NOT TO USE
  • If you need a complete editor interface and feature set immediately, avoid Slate’s framework-first approach; choose a ready-made editing solution or budget time to implement the required UI and behaviors.
  • If your content is only plain text with no rich-text editing needs, use a standard text input or textarea rather than introducing Slate’s editor framework.
  • If your application does not use React, Slate may not fit its component workflow; choose an editor framework designed for your application’s framework or platform.
  • If your team cannot take responsibility for defining and testing custom document structures and editing behavior, prefer an editor with built-in behavior that matches your requirements.
  • If a 33.2 kB reported gzip bundle size is outside your delivery budget, evaluate a lighter editing approach and verify its delivered size in your own build.
  • If you require a fixed editor feature set without customizing how content or interactions work, select a solution that provides those features directly instead of building them on Slate.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 4
slate vs quill ★ 47.4K · 8.2M/wk slate vs @tiptap/core ★ 39.1K · 38.5M/wk slate vs lexical ★ 24.0K · 9.5M/wk slate vs prosemirror-state ★ 232 · 40.7M/wk