Inspiration

I am an architecture student, and most of what I learn comes from design reviews (crits), where tutors and classmates give feedback on my drawings. This feedback often ends up in chats or notebooks, making it easy to forget important ideas. Clients face a similar problem because they find architectural terms hard to understand and struggle to imagine a building from its drawings. I wanted to create a space where the building model, feedback and tasks are kept together. A place where students and tutors can also walk through a building before it is built.

What it does

ArchiMind turns a floor plan into a 3D model that students, tutors and clients can review and walk through together.

  • Import or draw a plan: upload a PNG, JPEG, SVG or PDF, including a phone photo of a pen or pencil sketch. ArchiMind finds the walls, doors, sliding doors, windows and pillars, and Firebase AI Logic reads the room names, the scale and the furniture from the image. You can also draw a plan wall by wall.
  • Edit in 2D and 3D: the plan looks like a construction drawing, with dimensions, a command line and snapping. The 3D view has materials, sun and shadows, section cuts and roofs. Gable and hip roofs fit L, T and U-shaped buildings with proper hips and valleys.
  • Ask AI to change the plan: "make the kitchen 2 m² bigger" becomes a structured edit. The geometry engine checks it, you preview it, and accepting it creates a revision.
  • Design review: calculated findings, such as room sizes, door clashes, privacy and daylight, point at real walls and doors. An AI review adds rubric feedback, labelled as opinion.
  • Crit room: comments are pinned to the model, the presenter's view is shared live, anyone can mark up the plan, client feedback is rewritten in plain language and turned into measurable goals, and AI writes the minutes.
  • Walk through together: everyone in the crit appears in the model as a person, walking in real time and opening doors.
  • Revisions and schedule: every accepted change becomes a revision, and the work it creates goes into a schedule built from the hours you have each day.

How I built it

Every AI feature goes through Firebase AI Logic with the firebase/ai SDK. Each feature is a single request with its own JSON schema, which is used both as Gemini Nano's response constraint and as the cloud model's response schema.

  • Eight short tasks, such as explaining a room, proposing a plan edit, writing crit minutes and rewriting a comment in plain language, use PREFER_ON_DEVICE. They run on Gemini Nano in Chrome when it is available, so the work stays on the student's computer.
  • Four larger tasks use ONLY_IN_CLOUD: the full design review and three ways of reading an uploaded drawing.
  • In Balanced mode, Gemini Nano gets a short head start. If it is slow or missing, a cloud request runs alongside it and the first valid answer is used. Private mode never sends anything to the cloud.
  • Every answer is checked against its schema and against the building model before it is used. The AI Logic page shows where each request ran, how long it took and how many tokens it used.
  • App Check with reCAPTCHA Enterprise protects every AI request, and Remote Config chooses the cloud models and feature settings.

Around that, Firestore syncs projects, crit messages and invites in real time, the Realtime Database carries walking positions about ten times a second, and Authentication, Analytics and Hosting complete the app. The front end is React, TypeScript and Vite, with Three.js and React Three Fiber for 3D, and a Web Worker that reads uploaded plans. The people in the walkthrough are Microsoft Rocketbox avatars, released under the MIT License.

Challenges I ran into

  • Reading real drawings. Architects draw in different ways. The system sometimes read one wall as two walls. Photos taken with phones also had shadows and tilted angles. I fixed this by joining wall lines, correcting the lighting and straightening the images. Doors, windows and furniture symbols are now numbered and shown to Gemini alongside standard symbols to help it identify them correctly.
  • Stopping AI from breaking the model. The AI can only suggest changes in a set format. The code checks each change before applying it to the model.
  • Walking together smoothly. Firestore was too slow for smooth movement. I switched to Realtime Database and added a way to predict each person's movement between updates.
  • Creating roofs from real plans. Building separate roofs for each part of a building caused them to overlap. I studied how BIM software creates roofs and changed the system to build one roof from the building outline, with slopes rising from the roof edges.

Accomplishments that I'm proud of

  • One app that goes from a drawing, or even a phone photo of a sketch, all the way to a scheduled task list.
  • A student and a tutor can stand in the same room of a building that doesn't exist yet and talk about it.
  • Hybrid AI you can see: every answer says whether it ran on your computer or in the cloud.

What I learned

On-device models are fast and private for short, structured tasks, but they need strict schemas, checks and a reliable cloud fallback. I also learned how differently architects draw the same things, and how BIM software works out a roof from the shape of a building.

What's next for ArchiMind

Buildings with more than one floor, balconies, industrial buildings, a first layout generated from the brief, and exchanging models with BIM software through IFC.

Trying it

  1. Open https://archimind-studio.web.app in desktop Chrome and sign in with Google. A new account starts with an empty project. To explore quickly, create a new project from the project menu at the top left and choose Sample family home, or use Import a plan with any floor plan image.
  2. Optional, for on-device AI: in Chrome 139 or later, enable chrome://flags/#prompt-api-for-gemini-nano-multimodal-input, restart Chrome, and open AI Logic > Setup check > Download on-device model. Without it, the cloud is used.
  3. Try Ask AI in the studio ("make the kitchen 2 m² bigger"), Run AI design review on the Review page, and the AI Logic page to see where each request ran.
  4. To try a crit with two people, create an invite link in the Crit room and open it in another Chrome profile.

Built With

  • chrome-prompt-api
  • cloud-firestore
  • firebase
  • firebase-ai-logic
  • firebase-analytics
  • firebase-app-check
  • firebase-authentication
  • firebase-hosting
  • firebase-performance-monitoring
  • firebase-realtime-database
  • firebase-remote-config
  • gemini
  • gemini-nano
  • microsoft-rocketbox
  • pdf.js
  • react
  • react-three-fiber
  • recaptcha-enterprise
  • three.js
  • typescript
  • vite
  • vitest
  • web-workers
  • zustand
Share this project:

Updates

Submission history