Skip to content

AI-driven 2D-to-3D architectural rendering platform using React + TypeScript + Puter.js. Integrates multiple AI models for photorealistic visualization with serverless workers, durable storage, persistent metadata, and a real-time community feed.

Notifications You must be signed in to change notification settings

Bharathkdev/react-planora-ai

Repository files navigation

Planora AI

Transform 2D floor plans into photorealistic 3D renders using Generative AI


📋 Table of Contents

  1. 🤖 Introduction
  2. ⚙️ Tech Stack
  3. 🔋 Features
  4. 🏗️ Architecture
  5. 🚀 Quick Start

Planora AI is an AI-powered architectural visualization platform that converts 2D floor plans into realistic 3D interior renders in seconds.

Upload a blueprint → AI understands spatial layout → generates a furnished photorealistic scene.

The project demonstrates a complete modern AI SaaS architecture:

  • Image-to-Image Generative AI: High-fidelity spatial translation.
  • Persistent storage & hosting: Reliable asset management.
  • Serverless backend workers: Scalable logic without managing servers.
  • Client-side rendering & download pipeline: High-performance browser interactions.
  • Real production-like system design: Industrial-grade modularity.

Instead of static design tools, Planora acts as a visual thinking engine for architects, designers, and creators.


Frontend

  • React: Component-based UI.
  • React Router: Full-stack routing & SSR capabilities.
  • TypeScript: Type-safe development.
  • Vite: Ultra-fast build tool.
  • TailwindCSS: Utility-first styling.
  • Canvas API: Advanced image manipulation.

AI & Backend

  • Puter.js: Handing Auth, KV storage, Hosting, and Workers.
  • Gemini Image Model: Core Image-to-Image rendering engine (other AI models can also be used).
  • Serverless Edge Workers: Low-latency backend processing.
  • KV Storage Database: For high-speed metadata retrieval.
  • CDN Hosting: Global delivery of generated assets.

Image Processing

  • FileReader API: Local file handling.
  • Canvas Rendering: Processing raw image data.
  • Blob & Base64 normalization: Universal data formats.
  • CORS-safe downloading: Secure asset retrieval.

👉 2D → 3D AI Rendering Upload a floor plan and generate a furnished, photorealistic interior automatically.

👉 Watch Demo Mode 🎬 Built-in interactive demo video explaining the workflow without leaving the page — improves onboarding and first-time user understanding.

👉 AI Image-to-Image Pipeline Processes spatial layouts using a multimodal generative model.

👉 Persistent Project Storage Projects saved in KV database while images are stored in CDN hosting.

👉 Instant Image Download Download rendered images directly without opening a new tab.

👉 Before / After Comparison Interactive slider to compare blueprint vs generated interior.

👉 Serverless Architecture No traditional backend — powered entirely by edge workers.

👉 Authentication System Secure login using Puter Auth with per-user storage.

👉 Smart Asset Hosting AI outputs normalized and uploaded permanently for reuse & sharing.

👉 Upload Experience Simulation Smooth progress animation while AI processing happens.

👉 Optimized Rendering Flow

- Base64 normalization
- MIME detection
- Cross-origin safe canvas rendering

👉 Scalable Storage Design

- KV stores metadata only
- CDN stores heavy assets
- Worker API acts as database layer

👉 Clean Modular Architecture Separation of UI, AI processing, storage, hosting, and worker backend.


The application follows a linear, high-efficiency flow:

  1. User Upload: Floor plan provided via React UI.
  2. AI Generation: Gemini processes the image to create a 3D render.
  3. Normalization: Image is converted via Canvas to a standard PNG format.
  4. CDN Upload: Asset is hosted permanently on the CDN.
  5. Database Entry: Metadata and asset links are stored in KV storage.
  6. UI Retrieval: Client displays the final render with comparison tools.

Pattern: Frontend → Worker API → AI → Hosting → Database


Follow these steps to set up the project locally on your machine.

Prerequisites

Make sure you have the following installed on your machine:

Environment Variables

Planora AI requires a configuration for the AI worker endpoint. Create a .env.local file in the project root (if not already present) and add the following:

VITE_PUTER_WORKER_URL=https://your-worker-url.puter.work

Cloning the Repository

git clone https://github.com/Bharathkdev/react-planora-ai.git
cd react-planora-ai

Installation

Install the project dependencies using npm:

npm install

Running the Project

npm run dev

Open http://localhost:5173 in your browser to view the project.

Building for Production

npm run build

Preview Production Build

npm run preview

About

AI-driven 2D-to-3D architectural rendering platform using React + TypeScript + Puter.js. Integrates multiple AI models for photorealistic visualization with serverless workers, durable storage, persistent metadata, and a real-time community feed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published