@tiptap/core vs. prosemirror-state
Side-by-side comparison · 9 metrics · 14 criteria
- Weekly Downloads
- 38.5M
- Stars
- 39.1K
- Gzip Size
- 104.0 kB
- License
- MIT
- Last Updated
- 9mo ago
- Open Issues
- 956
- Forks
- 3.2K
- Unpacked Size
- 3.3 MB
- Dependencies
- 13
- Weekly Downloads
- 40.7M
- Stars
- 232
- Gzip Size
- 19.6 kB
- License
- MIT
- Last Updated
- 1y ago
- Open Issues
- 0
- Forks
- 69
- Unpacked Size
- 184.0 kB
- Dependencies
- 4
@tiptap/core vs prosemirror-state downloads · last 12 months
Criteria · @tiptap/core vs prosemirror-state
- State Control
- @tiptap/coreProvides state within a broader editor modelprosemirror-state ✓Directly targets editor-state management
- Download Reach
- @tiptap/core39.4M weekly downloadsprosemirror-state ✓41.4M weekly downloads
- Learning Curve
- @tiptap/coreRequires learning the editor and extension modelprosemirror-stateNarrow API scope, but assumes state-level integration work
- Bundle Footprint
- @tiptap/coreLarger package footprint at 104.0 kB gzipprosemirror-state ✓Smaller package footprint at 19.6 kB gzip
- Primary Use Case
- @tiptap/coreBuild an extensible rich-text editorprosemirror-stateManage editor state directly
- Abstraction Level
- @tiptap/core ✓Editor-centered headless rich-text coreprosemirror-stateFocused ProseMirror editor-state layer
- Integration Scope
- @tiptap/core ✓More editor structure in one packageprosemirror-stateNarrower scope; surrounding editor structure remains consumer-owned
- Project Footprint
- @tiptap/core ✓39.1K GitHub stars and 3.2K forksprosemirror-state232 GitHub stars and 69 forks
- Rendering Boundary
- @tiptap/coreHeadless editor core without a prescribed visual interfaceprosemirror-stateState package rather than a rendering layer
- Unpacked Footprint
- @tiptap/coreLarger installed package at 3.3 MBprosemirror-state ✓More compact installed package at 184.0 kB
- Extension Composition
- @tiptap/core ✓Organizes editor capabilities through extensionsprosemirror-stateCenters composition on state behavior and transactions
- Migration Flexibility
- @tiptap/coreBest aligned with Tiptap’s editor-oriented modelprosemirror-stateBest aligned with direct state-layer integration
- Customization Approach
- @tiptap/coreCustomize behavior through editor extensionsprosemirror-stateCustomize state handling and transaction flow directly
- Issue Tracking Snapshot
- @tiptap/core943 open issues in the supplied dataprosemirror-state ✓No open issues in the supplied data
| Criteria | @tiptap/core | prosemirror-state |
|---|---|---|
| State Control | Provides state within a broader editor model | ✓ Directly targets editor-state management |
| Download Reach | 39.4M weekly downloads | ✓ 41.4M weekly downloads |
| Learning Curve | Requires learning the editor and extension model | Narrow API scope, but assumes state-level integration work |
| Bundle Footprint | Larger package footprint at 104.0 kB gzip | ✓ Smaller package footprint at 19.6 kB gzip |
| Primary Use Case | Build an extensible rich-text editor | Manage editor state directly |
| Abstraction Level | ✓ Editor-centered headless rich-text core | Focused ProseMirror editor-state layer |
| Integration Scope | ✓ More editor structure in one package | Narrower scope; surrounding editor structure remains consumer-owned |
| Project Footprint | ✓ 39.1K GitHub stars and 3.2K forks | 232 GitHub stars and 69 forks |
| Rendering Boundary | Headless editor core without a prescribed visual interface | State package rather than a rendering layer |
| Unpacked Footprint | Larger installed package at 3.3 MB | ✓ More compact installed package at 184.0 kB |
| Extension Composition | ✓ Organizes editor capabilities through extensions | Centers composition on state behavior and transactions |
| Migration Flexibility | Best aligned with Tiptap’s editor-oriented model | Best aligned with direct state-layer integration |
| Customization Approach | Customize behavior through editor extensions | Customize state handling and transaction flow directly |
| Issue Tracking Snapshot | 943 open issues in the supplied data | ✓ No open issues in the supplied data |
@tiptap/core is aimed at developers building a headless rich-text editor with an integrated, extension-oriented way to define editor behavior. Its fit is strongest when an application needs a higher-level editing surface and wants to assemble features around Tiptap’s editor core rather than work directly with low-level state primitives. The package description identifies it as a headless rich text editor, so it supplies editor functionality without prescribing a visual interface.
prosemirror-state is best suited to developers who want direct control over ProseMirror’s editor state and are comfortable composing an editing system from focused primitives. Its description is specifically “ProseMirror editor state,” not a complete rich-text editor; choose it when the state layer itself is the requirement and your application is prepared to provide the surrounding editor architecture. That narrower scope can be an advantage for custom integrations, but it leaves more design decisions to the consumer.
The central architectural distinction is the level of abstraction. @tiptap/core presents an editor-centered model in which extensions can contribute capabilities, while prosemirror-state focuses on the state that represents an editing session and how transactions update it. In practical terms, Tiptap’s core is oriented around assembling editor behavior; prosemirror-state is oriented around managing and responding to state changes, giving developers a more direct foundation when they need to shape those mechanics themselves.
Their extension and composition choices follow from that difference. @tiptap/core places extensions at the center of its editor model, which provides a recognizable place to package and configure editing behavior. prosemirror-state exposes a narrower state-focused boundary, so customization is tied more closely to composing state behavior and transactions than to configuring a complete editor through one package. Neither package’s supplied metadata specifies a rendering layer, so the headless description of @tiptap/core should not be mistaken for a built-in visual interface.
The learning curve depends on whether a team wants an editor framework or a state primitive. @tiptap/core gives an editor-oriented entry point, but developers still need to understand its extension model to customize behavior effectively. prosemirror-state has a smaller stated scope, which may make its API boundary easier to isolate, yet building a full editing experience requires understanding and supplying the surrounding pieces. The provided package data does not state TypeScript support or debugging tools, so those should be verified against project requirements rather than inferred from this comparison.
For payload-sensitive applications, prosemirror-state has a clear advantage in the supplied size figures: its gzip bundle is 19.6 kB versus 104.0 kB for @tiptap/core, and its unpacked size is 184.0 kB versus 3.3 MB. This is a meaningful difference if the state package alone meets the need, but the figures compare packages with different scopes; a state-only dependency does not automatically replace the editor capabilities represented by @tiptap/core. Evaluate the complete implementation required by your application, not just the package-level bundle numbers.
Choose @tiptap/core when you are creating a headless rich-text editor and want an editor-centered, extension-based foundation for application-specific behavior. Choose prosemirror-state when you need ProseMirror editor state directly, want to own more of the integration, or are optimizing for the smaller package footprint and can provide the additional editor structure. The download figures are close, with prosemirror-state slightly higher, but download volume alone does not determine which abstraction matches a particular architecture.
Migration is not simply a matter of swapping package names: the packages occupy different levels of the editing stack. Moving from @tiptap/core to prosemirror-state means taking responsibility for editor behavior that was organized around Tiptap’s editor and extension model; moving in the other direction means adapting state-focused code to Tiptap’s editor-oriented composition. For long-term maintenance, @tiptap/core has substantially more recorded open issues, while prosemirror-state has none in the supplied data; issue counts are a snapshot, not a measure of resolution quality or future support.
A useful boundary case is an application that needs only controlled editor-state updates rather than a reusable rich-text editing surface: prosemirror-state’s narrower scope and smaller bundle can make it the more direct dependency. Conversely, when multiple features need to be composed as editor extensions, @tiptap/core’s higher-level model may reduce the amount of custom coordination, even though its package is larger. Treat the headless distinction as an architectural choice: @tiptap/core provides editor structure without a prescribed presentation, whereas prosemirror-state supplies state management rather than a complete editor experience.
CORRECTIONS
Spot wrong data here?Spot wrong data on this page?
A short note helps us fix it.A short note helps us fix it. We read every one; confirmed fixes ship in the next nightly build.
Anonymous · No account · No email back