BaBloom is a framework-agnostic TypeScript editor core with an extension-first architecture, image uploads and one consistent API across React, Vue and Svelte.
npm install @tlob/babloom-core @tlob/babloom-react
The core never imports React, Vue or Svelte. Adapters are thin.
Marks, nodes, keymaps and input rules are all plain extensions.
Structured nodes and marks, with HTML and text serialization.
Pick, drop or paste. Validation built in, storage is yours.
Mod-B, Mod-Alt-1, plus `# `, `- ` and `> ` input rules.
Written in TypeScript, ESM only, tree-shakeable, zero runtime deps.
Adapters only handle mounting and reactivity. Commands, extensions and serialization are identical everywhere, so your editor features port for free.
import { StarterKit, ImageExtension } from "@tlob/babloom-core";
import { useEditor } from "@tlob/babloom-react";
const { editor, ref } = useEditor({
extensions: [
StarterKit(),
ImageExtension({ maxSize: 5_000_000, upload: uploadImage }),
],
onUpdate: ({ editor }) => save(editor.getJSON()),
});