Real-time AI
Lume Chat — real-time chat with a multimodal AI assistant
A Socket.io chat app with image sharing and a Gemini-powered assistant that streams context-aware replies in real time.

Lume Chat's AI workspace with streamed, context-aware replies.
Socket.io messaging with real-time AI reply streaming.
Gemini 2.0 Flash handles text and images with thread-aware context.
React 19 and Zustand client; Express, MongoDB, and Cloudinary backend.
Chat products live or die on latency and presence. Lume pairs Socket.io messaging with a multimodal assistant that can read images and answer in the context of a specific message.
The client is React 19 with Vite, TypeScript, Tailwind and shadcn/ui, Zustand for state, React Hook Form and Zod for validation, and socket.io-client for transport. The server is Node.js and Express with MongoDB and Mongoose, Passport and JWT authentication, Cloudinary for image storage, and the Google Generative AI SDK running Gemini 2.0 Flash.
AI replies stream token by token over socket events, so the response appears as it is generated instead of after a long pause. Context is scoped to the thread and the message being replied to, and uploaded images are stored in Cloudinary before being passed to the model. The app is deployed as a static client and a web service on Render.
The lesson was that real-time AI is mostly plumbing. The model gets the attention, but the product quality comes from the socket layer, the context window, and how gracefully the stream handles a slow or interrupted response.
“Real-time AI is less about the model and more about the plumbing that makes the first token arrive quickly.”





