← Back to ProjectsProject 02 / 06 · AI · Architectural Planning

Case Study 02

OpenBlueprint

From Measurements to Intelligent Blueprints.

OpenBlueprint is an AI-assisted architectural planning system: plot measurements and requirements in, reasoned floor-plan options out, then 2D editing, 3D visualisation, INR cost estimation and PDF/PNG/SVG/JSON export. Verified stack: Next.js 16 + React 19 + shadcn, Three.js, Zustand, Prisma/SQLite, OpenAI-compatible AI with offline fallback.

Next.jsThree.jsPrismaZustand
OPENBLUEPRINT
From Measurements to Intelligent Blueprints.
1. Plot input → 2. Requirements → 3. AI analysis → 4. Five strategies → 5. Floor plan → 6. 2D editor → 7. 3D → 8. Cost → 9. Export

01 · Overview

Overview

02 · The Problem

The Problem

03 · The Solution

The Solution

04 · How It Works

How It Works

01 · 1. Plot input-

dimensions, setbacks, road/north, floors with live preview.

02 · 2. Requirements+

rooms, preferences, Vastu; floor-distribution dialog.

03 · 3. AI analysis+

POST /api/layout/generate; 428 without key, 422 clarification, offline fallback.

04 · 4. Five strategies+

Space, Ventilation, Modern Open, Privacy, Vastu Compliant.

05 · 5. Floor plan+

parking carve, BSP pack, openings, repair, connectivity, furniture; 8+ rules.

06 · 6. 2D editor+

move/resize/split, doors/windows, 47 furniture items, undo/redo.

07 · 7. 3D+

R3F clay render.

08 · 8. Cost+

INR grades 1500/1800/2300/3000 per sqft with breakdowns.

09 · 9. Export+

SVG/PNG + A4 PDF sheet + JSON.

Select a stage to expand it. Every stage maps to code in the repository.

05 · System Architecture

System Architecture

Frontend

Next.js 16 + React 19 + TS + Tailwind 4 + shadcn (47 primitives); Zustand + TanStack Query.

APIs

nine routes: projects, layout generate/validate, AI assistant, knowledge, cost, export pdf/image.

AI

OpenAI-compatible provider, reason-then-place planner, assistant with offline fallback, keyword RAG over 10 topics.

Geometry

engine, rules, planner, scoring, validation, SVG renderer, catalogs.

Data

Prisma + SQLite: User, Project, DesignVersion, AiConversation, CostEstimate.

06 · Core Features

Core Features

Plot wizard with live preview and buildable-area math.

Plot wizard with live preview and buildable-area math.

Five scored strategies (6-axis) making trade-offs explicit.

Five scored strategies (6-axis) making trade-offs explicit.

Reason-then-place AI with auditable reasoning.

Reason-then-place AI with auditable reasoning.

2D editor + 47 furniture items.

2D editor + 47 furniture items.

3D clay render.

3D clay render.

INR cost grades with Lakhs/Crores formatting.

INR cost grades with Lakhs/Crores formatting.

AI assistant + knowledge RAG with offline fallback.

AI assistant + knowledge RAG with offline fallback.

Floor-distribution dialog, validation + Vastu report, export suite.

Floor-distribution dialog, validation + Vastu report, export suite.

07 · Technical Implementation

Technical Implementation

08 · My Contribution

My Contribution

09 · Tech Stack

Tech Stack

Frontend
Next.js 16 · React 19 · TS · Tailwind 4 · shadcn.
State
Zustand · TanStack Query.
3D
Three.js · R3F · drei.
Backend
API routes · Prisma · SQLite.
AI
provider · planner · assistant · knowledge RAG.
Export
SVG · sharp · PDF.

10 · Challenges & Decisions

Challenges & Decisions

11 · Result

Result

12 · Links

GitHub / Demo

← SkillVision AIAll ProjectsDiagnoraX AI →