Introduction

BaBloom is a framework-agnostic TypeScript rich-text editor with an extension-first architecture for React, Vue and Svelte.

The editor core has zero framework dependencies. It owns the document model, selection, commands, transactions, history, extensions and serialization. Thin adapters expose the same API to each UI framework, so a feature written once works everywhere.

Why BaBloom

  • Core never imports React, Vue or Svelte — it only touches the DOM.
  • Every feature is an extension instead of hardcoded editor behaviour.
  • Structured JSON document made of nodes and marks, plus HTML serialization.
  • UI calls commands; it never mutates document state directly.
  • Image storage is delegated to a user-provided upload handler.
  • React, Vue and Svelte adapters expose a consistent editor API.

Quick look

tsx
import { StarterKit, ImageExtension } from "@tlob/babloom-core";
import { useEditor } from "@tlob/babloom-react";

const { editor, ref } = useEditor({
  content: "<p>Hello from BaBloom</p>",
  extensions: [StarterKit(), ImageExtension({ upload: uploadImage })],
});

return <div ref={ref} className="babloom-content" />;

Head to Installation or try the Playground.