

Spatia
Spatia is a web app where architecture students learn residential design by building real floor plans. I built the entire product alongside my product designer friend, combining a 2D plan editor, 3D viewer, six live building checks, simulations, and an AI assistant.

Long story short
Spatia is a browser based architecture studio made for students learning residential design. Instead of drawing a plan first and checking how it performs later, every change to rooms, walls, doors, windows, columns, or furniture immediately updates the building's performance numbers. It teaches through feedback without grading students or auto generating layouts for them.
I built the full product from start to finish alongside my product designer friend. That included the TypeScript core logic, the 2D Konva floor plan editor, and the 3D React Three Fiber viewer. Students can draw multiple floors with nested rooms, snapping, live measurements, rulers, and 28 resizable components, then switch between 2D plans and 3D cut aways anytime.
Every time an edit is saved, six checks automatically recalculate space efficiency, sunlight, daylight, airflow, heat exposure, and wheelchair access, running the heavier math in a Web Worker so the editor stays smooth. A Design Check panel, a Consequence Trace showing what each edit changed, and Sun, Airflow, and Structure simulations help students see how small layout choices affect the whole house.
Spatia also includes an AI assistant that explains the results in plain language. Every number it mentions is checked on the server against real computed data so it never makes up figures. Under the hood, it runs on Next.js 15, React 19, TypeScript, Zustand with Immer undo/redo history, Dexie (IndexedDB) for local first saves, and Supabase Postgres with Row Level Security and Google login.
Services
Built with

Dashboard with recent projects, sync status, and starter example plans

3D viewer showing both floors, stairs, openings, and room interiors

AI Assistant explaining sunlight results with checked numbers and sources
The approach and process
Design & Code Architecture
Worked closely with my product designer friend to shape the workflow and separated pure TypeScript building logic from the UI, stores, and API routes.
2D Editor & 3D Viewer
Built a 2D Konva drafting canvas with snapping, rulers, layers, and multiple floors, paired with a 3D Three.js viewer you can inspect from any angle.
Live Checks & Simulations
Built six live building checks using a Web Worker, Sun, Airflow, and Structure simulations, and an edit trace linking issues back to the change that caused them.











