Menu

1 / 3

I built a floor plan editor in vanilla JS: rooms from a wall graph, three.js, and no backend for your plans

DEV Community: frontend·Sedat Okutan·3 days ago
#HpnFY1Dg
#devtofrontend#devto#dev#aabbcc#plan
Long article (1734 words) — no AI summary yet.
Reading 0:00
15s threshold

I have been building Plan Your Layout , a floor plan editor that runs entirely in the browser. You draw walls, drop in furniture at real sizes, look at it in 3D, print it to scale or export DXF. It is free, there is no account and no watermark, and your plans stay in localStorage on your own device.

This post is not a feature list. It is about the parts that were interesting to build, and a few decisions that went the other way.

The stack: deliberately boring

Vanilla JavaScript ES modules. No framework.

The UI is template strings plus one delegated click handler . Every button carries a data-act="…" , and a single table of actions in main.js handles them. Property edits use data-set / data-k and go through one applyProp function.

Canvas 2D for the plan, three.js for 3D, jsPDF for PDFs, Vite to build.

document . addEventListener ( 'click' , ( e ) => { const el = e . target . closest ( '[data-act]' ) ; if ( el ) ACT [ el . dataset . act ] ? .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.