yjd vs Jodit
Jodit is a capable, full-featured vanilla TypeScript WYSIWYG with a large built-in toolbar. It is a solid all-in-one, but it is also on the larger side. yjd tree-shakes: you register only the formats you use and ship far less, with a chat/prompt layout Jodit does not have.
At a glance
| yjd | Jodit | |
|---|---|---|
| Bundle size | ~17 KB min → ~75 KB full (gzip), tree-shakeable | ~150+ KB (full build) |
| Dependencies | None (zero runtime deps) | None |
| Frameworks | React, Vue 3/2, Angular, AngularJS, Svelte, vanilla | Vanilla + React/Vue/Angular wrappers |
| TypeScript types | ✓ Yes | ✓ Yes |
| License | ISC | MIT |
| Best for | Comments, chat/prompt inputs, blog & social posts, light CMS | Full-featured vanilla editing |
Facts, not a scorecard — both are capable editors. Sizes are approximate and vary with configuration/plugins; figures for Jodit come from its public docs (https://xdsoft.net/jodit). The trade-offs are below.
Which should you pick?
Choose Jodit when
- Big built-in toolbar and feature set
- TypeScript, no dependencies
- Mature file/image handling
You want a full-featured vanilla editor with everything on by default.
Choose yjd when
- Tree-shakes to ~17 KB (vs a large full build)
- Native chat/prompt layout + BYO-AI
- Framework guides for React/Vue/Angular
You want to ship only the formats you use and a chat/prompt composer.
Try yjd
A real editor, ~17 KB, zero dependencies. Install: npm i @oix1987/yjd. It runs in React, Vue, Angular and vanilla.
More comparisons: vs Tiptap · vs Quill · vs TinyMCE · vs CKEditor 5 · vs Slate · vs Lexical · vs Draft.js · vs ProseMirror · vs Editor.js · vs Froala · vs Trix · vs Summernote · vs Toast UI Editor