I built a spatial 3D knowledge graph with React Three Fiber & Gemini AI ๐ŸŒŒ

Published: (January 12, 2026 at 11:55 AM EST)
2 min read
Source: Dev.to

Source: Dev.to

Cover image for I built a spatial 3D knowledge graph with React Three Fiber & Gemini AI ๐ŸŒŒ

Hey developers! ๐Ÿ‘‹

Iโ€™ve always felt that standard noteโ€‘taking apps force our brains into unnatural, linear lists. Our thoughts are connected, chaotic, and spatial. So, I spent the last few weeks building an experiment to fix this.

Itโ€™s called Echo Archive.

Itโ€™s a spatial knowledge management system where your notes live in a 3D constellation.

๐Ÿ›  The Tech Stack

I wanted to keep it lightweight but visually immersive.

  • Frontend: React 18 + Vite
  • 3D Engine: Three.js & React Three Fiber (drei)
  • AI Core: Google Gemini AI (via API)
  • Styling: Tailwind CSS + Lucide Icons
  • Storage: LocalStorage (Privacy first, no cloud database)

๐Ÿง  The AI Integration

The coolest part was integrating Gemini. Since Iโ€™m using the gemini-2.5-flash model, I could implement:

  • Autoโ€‘Tagging: The AI reads the note and suggests categories based on context.
  • Smart Continue: Writerโ€™s block? The AI finishes your sentence.
  • Abstracts: It automatically generates a TL;DR summary at the top of long notes.

๐ŸŒŒ The Challenge: Mobile 3D Navigation

Making a 3D orbit control feel natural on a phone screen was tricky. I had to map touch events carefully to ensure you can pan the universe with one finger and zoom with two, without accidentally triggering the text editor.

๐Ÿ”— Try it out

I just released v1.0 and would love some feedback on the navigation feeling!

Live Demo:

Let me know what you think about spatial interfaces. Are they the future or just a gimmick?

Cheers!

Back to Blog

Related posts

Read more ยป

Hello, Newbie Here.

Hi! I'm falling back into the realm of S.T.E.M. I enjoy learning about energy systems, science, technology, engineering, and math as well. One of the projects I...