Playground · AI assistant
AI rich text editor demo — bring-your-own-model assistant
The AI module is bring-your-own-model: one complete hook is the entire integration — point it at OpenAI, Claude, or a local model and yjd handles the UX. Select any text and hit ✦ Ask AI for the action menu (improve · fix · shorten · …): the result streams in and lands as a word-level diff you can accept, reject, or edit word-by-word. Stop typing for a moment and a ghost-text continuation appears — Tab accepts it. This demo ships a tiny offline mock so you can feel the flow without any keys or backend.
Select text → ✦ Ask AI (improve, fix, shorten…), streamed with a word-level diff. Ghost-text autocomplete: pause, then Tab.
💡 The code shown imports from the CDN for copy-paste; here it runs against a pre-loaded core. Edit anything and hit Run.
Live previewBYO model