How a Simple AI Chat App Works Behind the Scenes
A simple walkthrough of how a browser, server, OpenRouter, and AI model work together in a chat app.
Full-Stack Web Developer
I write on Emran's Blog, X, and Medium. You can also find me on LinkedIn, GitHub, Instagram, and YouTube, or send me an email.
I've had a special love for video games ever since I was very young. Digital screens, pixels, and the world of games have always fascinated me.
I still remember being in class six when I broke my arm. I kept asking my parents to buy me a TV game. To convince them, I even came up with a rather unusual argument. I told them that playing with the game controller would exercise my injured hand and help improve blood circulation!
As I grew older, I studied Textile Engineering and started my career as a textile engineer. But at some point, I found my way into programming. Initially, it was a career change. Gradually, though, programming became something I genuinely love doing.
Since then, I've been building one thing after another. Looking back, I feel that my childhood fascination with technology might have played a part in bringing me here.
I love taking an idea and turning it into something real. Sometimes that means building a practical tool for a local shop owner. Other times, it's an AI-powered website for a business or simply an experiment I'm curious about.
I enjoy the entire process, from figuring out how the data should be structured to refining the smallest details on the screen and finally putting the product into people's hands.
Along the way, I've built things for clients, explored ideas just for fun, and shared useful projects with the community for free.
For me, the best part has always been the same: starting with an idea, building something meaningful, and seeing it make a difference in someone's life.
Beyond coding, I enjoy drawing and watching movies. I'm always drawn to new stories, different worlds, and creative work.
I love JavaScript. Started on the frontend, kept going deeper. Now building full-stack applications with React, Next.js, and Node.js.
Frontend
Backend
AI Engineering
A simple walkthrough of how a browser, server, OpenRouter, and AI model work together in a chat app.
A simple story explaining how V8, JIT compilation, the heap, and the call stack help JavaScript run.
A simple ATM visit made me think about pure functions and side effects in React.
Thank You!