I Rebuilt My Editor from Scratch: Fabric.js vs HTML Drag & Drop

Every product starts with speed.

And every serious product eventually runs into its limits.

This is the story of how I rebuilt the entire Imejis.io editor—moving away from Fabric.js and rebuilding everything using a pure HTML drag-and-drop architecture.

Not because Fabric.js is bad. But because it stopped me from scaling the product.

If you’re building a design editor, image automation tool, or anything with dynamic text and images—this post might save you months.


Link to this sectionWhy I Used Fabric.js Initially

When I started building Imejis.io, my goal was simple:

Ship something usable as fast as possible.

Fabric.js was a logical choice:

  • Canvas-based rendering
  • Easy object manipulation
  • Quick prototypes
  • A working editor without heavy upfront decisions

It helped me validate the idea quickly.

And early on—it worked.


Link to this sectionWhen Fabric.js Became a Bottleneck

Problems didn’t show up immediately.

They appeared when:

  • Real users started designing real templates
  • Dynamic content became core to the product
  • Automation and APIs entered the picture

That’s when limitations surfaced.


Link to this sectionFabric.js Limitation #1: Complex Text Handling

Text was central to my product.

Dynamic text. Auto-updating text. API-driven variables.

Fabric.js struggled here.

Issues I faced:

  • Multi-line text behaved inconsistently
  • Line height and alignment were unpredictable
  • Auto-resizing text containers was fragile
  • Small text changes broke layouts

Text logic became a web of hacks.


Link to this sectionFabric.js Limitation #2: Auto-Resize and Dynamic Content

Imejis.io generates images dynamically from APIs.

That means:

  • Text length constantly changes
  • Numbers grow and shrink
  • Content is unpredictable

With Fabric.js:

  • Measuring text accurately was unreliable
  • Containers didn’t resize consistently
  • Overflow handling felt like guesswork

Canvas-based editors are not designed for dynamic content at scale.


Link to this sectionFabric.js Limitation #3: Custom Fonts Were Painful

Custom fonts are non-negotiable for design tools.

Reality with Fabric.js:

  • Fonts loaded after canvas render
  • Text appeared before fonts were ready
  • Layouts silently broke
  • Cross-device rendering was inconsistent

Debugging font-related issues was extremely time-consuming.


Link to this sectionFabric.js Limitation #4: Image Resize and Cropping

Image handling should be simple.

With Fabric.js:

  • Aspect ratio logic became complex
  • Cropping math piled up
  • High-resolution images impacted performance
  • Predictable resizing was hard to guarantee

Every image interaction required manual canvas calculations.


Link to this sectionFabric.js Limitation #5: Debugging and Maintainability

Canvas has no real DOM.

That means:

  • Browser DevTools offer limited help
  • State lives inside Fabric internals
  • Visual bugs are hard to reproduce
  • Fixing one issue often introduces another

At some point, I wasn’t building features anymore.

I was fighting the editor.


Link to this sectionThe Question That Forced the Rewrite

One night, while debugging a text issue that shouldn’t exist, I asked myself:

“If I were starting this product today, would I still choose Fabric.js?”

The answer was clear.

No.

And once you know that, rebuilding becomes inevitable.


Link to this sectionThe Migration: From Fabric.js to HTML Drag-and-Drop

I made the hard decision to rebuild the editor from scratch.

Not refactor. Not patch. Rebuild.

The new approach:

  • Pure HTML
  • Real DOM elements
  • Drag-and-drop interactions
  • CSS-driven layout and resizing

This meant deleting months of work.

But it also meant clarity.


Link to this sectionWhat Changed After Moving to HTML

The difference was immediate.

Link to this sectionText Became Reliable

  • Native browser text rendering
  • Predictable wrapping and alignment
  • Auto-resize worked naturally
  • Custom fonts loaded correctly

Link to this sectionImage Handling Became Simple

  • CSS handled resizing
  • Aspect ratios stayed intact
  • Cropping logic simplified
  • Performance improved

Link to this sectionDebugging Became Possible Again

  • Real DOM nodes
  • Full access to DevTools
  • Visual bugs were traceable

Link to this sectionDrag-and-Drop Felt Natural

  • No canvas simulation
  • Predictable layer ordering
  • Cleaner interaction logic

The editor stopped feeling fragile.

It started feeling stable.


Link to this sectionThe Invisible Work Users Never See

This rebuild wasn’t flashy.

There was no announcement. No launch post. No sudden growth spike.

Just weeks of:

  • Rewriting rendering logic
  • Rebuilding selection systems
  • Handling edge cases
  • Fixing bugs users would never notice

Most users didn’t know what changed.

They just felt fewer issues.

That’s how you know the rebuild worked.


Link to this sectionLessons Learned from Rebuilding the Design Editor

Hard-earned lessons from this migration:

  • Fabric.js is great for prototypes
  • Canvas helps you move fast early
  • DOM-based editors scale better
  • Rewrites are not failures
  • Foundations matter more than features

Short-term speed feels good.

Long-term architecture builds real products.

V2 editor with drag and drop builder


Link to this sectionWas the Rewrite Worth It?

Absolutely.

This rebuild marked a turning point.

Imejis.io stopped being fragile. The editor stopped being scary to touch. Building started feeling calm again.

And that’s when I knew:

Rewriting wasn’t a setback.

It was a commitment to the product.


Link to this sectionFinal Thoughts

If you’re building:

  • A design editor
  • An image automation platform
  • A template-based product
  • Anything with dynamic text and images

Ask yourself this early:

“Will this architecture still work a year from now?”

That question saved my product.

New posts show up on X.

Follow new posts on X

All posts

Related posts