2D/3D Floor Planner

A best-in-class TypeScript boilerplate for designing interior floor plans with matched 2D and 3D views of the same scene — built on React, Three.js, Zustand, and Zod — so you can build at the speed of thought with AI, ship an accurate planner, and rank #1 on Google.

Why Use Gallop Templates?

Just chat with AI inside your code editor using our Gallop templates, and you will never want to wrestle with a heavyweight CAD suite, a bloated drag-and-drop room designer, or a proprietary file format again. Simply describe the space you want, and AI writes the code. No SketchUp, no AutoCAD, no visual editors, and no design limitations. Just type and watch. Lay out rooms and walls, place windows, doors, cabinets and appliances, toggle between accurate 2D and 3D views, configure your SEO and AI discoverability instantly, expand endlessly, and get prompting tips from our Gallop community. Go live in minutes.


Features

  • 🧱 One typed scene, two views — a single source-of-truth JSON scene drives both the 2D plan and the 3D model, so they can never drift
  • 🪚 Cabinet CAD → CNC cut files — a standalone /cad/ workspace turns one typed cabinet definition into a 3D drawing, CNC-ready DXF cut sheets, and GRBL G-code for every board, all derived from the same data
  • 🧭 Multi-page app — a built-in page menu hops between the Floor Plan and the Cabinet CAD workspace; Vite bundles both pages in one build
  • 📐 Precise dimensions — all linear values stored in inches; imperial (ft / in) display by default with an in toggle
  • ⚛️ React 18 + TypeScript with strict typing end-to-end
  • 🧊 Three.js via @react-three/fiber + @react-three/drei for the 3D view
  • ✏️ Plain SVG 2D floor plan — crisp at any zoom, fully measured
  • 🗂️ Edit one file — describe your whole space in src/design/home.ts; an edge/bounds authoring DSL keeps the math out of your way
  • 🛡️ Zod-validated scene contract — bad layouts surface as clear errors instead of broken renders
  • 🎯 Click-to-select any wall, opening, room, or fixture in either view, with a shared tooltip showing labels and dimensions
  • 🧭 Live compass that stays north-up in 2D and tracks the camera in 3D
  • 🤖 AI-friendly codebase structure with TypeScript strict mode
  • 🔍 SEO and AI optimized with meta tags, Open Graph, and Twitter cards
  • Vite for instant hot reload and lightning-fast production builds
  • 🏠 Starter home included so the project runs out of the box

Explore

Browse the full source of the 2D/3D Floor Planner project.

Cabinet CAD — From Definition to CNC Cut Files

Beyond the floor planner, the template ships a second, standalone page at /cad/ for taking a single cabinet all the way to the shop. Open it from the page menu in the top-left of the toolbar (or visit http://localhost:5173/cad/ directly).

Each cabinet is described once as a typed definition (cad/cabinets/*.ts). From that one source of truth the page generates:

  • 🧊 A 3D drawing — every part rendered as its assembled box, with an explode slider, dimension callouts, per-part cut sizes, and a toggleable layer/legend.
  • 📄 DXF cut sheets — true finished part outlines nested onto each board (one per material thickness), ready to import into your CAM software. Drag a .dxf back onto the canvas to inspect it.
  • ⚙️ GRBL G-code — ready-to-run toolpaths per board for a BobsCNC KL744 (1/4" bit): pockets first while parts are still captive, then outside profiles with holding tabs. Includes a separate wasteboard-surfacing program.

Two build variants ship as worked examples — upper18 (CNC face-frame upper on 48×48 boards) and upper18saw (the same cabinet as straight saw cuts on 4×8 sheets).

Machine-safety audit: because bad G-code breaks bits and gouges stock, every generated job is checked by npm run audit:gcode — it flags un-parseable lines, plunges into stock, travel below safe height, cuts deeper than the material, out-of-bounds moves, and more, and confirms every toolpath lands exactly on the 3D plan.


Build it with Gallop

Supercharge your workflow

Gallop is a desktop AI website builder. Be the designer, be the architect, and let your AI programmers do the typing. These blocks and templates are free and open source — the editor is what turns them into a finished, deployed site.

What's included

  • AI that does the typinggenerate pages and copy, edit files, run commands, and refactor through natural conversation, powered by Claude.
  • One-click setupGallop installs Node, Git, and Claude for you, then scaffolds a production-ready Next.js project.
  • Review every changea built-in git viewer lets you approve each AI edit line-by-line, with Media for images and fonts and SEO audit tools built in.
  • Free to startthe first 30 use-days are free, then just $0.75 on days you open the app, or purchase Pro for no per-use-day charges. Bring your own Claude API key or use prepaid credits.

Gallop

Works on macOS and Windows.

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC