yjd vs Trix
Trix, from Basecamp, is a deliberately simple, opinionated editor — it powers Rails ActionText. It is great when its fixed feature set is exactly what you need. yjd covers the same simple compose-box use case but is configurable (pick your tools), tree-shakeable, and framework-agnostic.
At a glance
| yjd | Trix | |
|---|---|---|
| Bundle size | ~17 KB min → ~75 KB full (gzip), tree-shakeable | ~40 KB gzip |
| Dependencies | None (zero runtime deps) | None |
| Frameworks | React, Vue 3/2, Angular, AngularJS, Svelte, vanilla | Vanilla (Rails ActionText) |
| TypeScript types | ✓ Yes | ~ Community |
| License | ISC | MIT |
| Best for | Comments, chat/prompt inputs, blog & social posts, light CMS | Simple compose boxes, Rails apps |
Facts, not a scorecard — both are capable editors. Sizes are approximate and vary with configuration/plugins; figures for Trix come from its public docs (https://trix-editor.org). The trade-offs are below.
Which should you pick?
Choose Trix when
- Dead simple, works out of the box
- First-class in Rails (ActionText)
- Very small API surface
You are on Rails/ActionText or want a fixed, no-configuration compose box.
Choose yjd when
- Configurable toolbar and formats
- Tree-shakeable; add only what you need
- Chat/prompt layout, mentions, BYO-AI
You want a simple editor you can still configure and extend, in any stack.
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 Summernote · vs Jodit · vs Toast UI Editor