Skip to content
yovi.a personal corner of the internetElsewhere
Back to projects

Blocksmith

Reusable TipTap/Yjs block editor extracted into a package and playground consumer.

React · TypeScript · TipTap · Yjs · Hocuspocus · Vite
Blocksmith desktop interface

Blocksmith is a reusable block editor package and playground. I used the project to migrate useful editor capabilities out of a Lovable-generated app and into cleaner module boundaries that can survive beyond a single demo product.

The problem

Rich-text editors often begin as app-specific code, where storage, auth, demo UI, mock uploads, page management, and editor behavior become tightly coupled.

The insight

A reusable editor is mostly a boundary problem. The editor core should own editing behavior, while auth, uploads, persistence adapters, sidebar UI, and product workflows should stay outside the package boundary.

The solution

I reorganized the project into `packages/editor` as the publishable editor module and `apps/playground` as the demo consumer. The editor uses TipTap with StarterKit, tables, tasks, highlight, color, placeholders, Yjs persistence, slash commands, mentions, floating toolbars, and custom blocks such as toggles, callouts, page links, image blocks, columns, table of contents, embeds, font size, and mentions. Demo-only concerns such as auth, presence simulation, comments, and mock file storage were separated from the reusable core.