-
Dilemma: "What if leaving him breaks me, but staying kills me slowly?" User enters a real, emotional dilemma — the courtroom begins here.
-
Debate in Action — Impulsive vs Logical: A battle of the mind, on screen. Your inner voices come alive — bold, conflicted, human.
-
Final Verdict: “You judged with your heart.” The end isn't just a result — it's a reflection of who you are in that moment.
🧠 About the Project: Mind on Trial
What if your own mind could debate with itself — right in front of you?
Mind on Trial was born from that exact thought. We all overthink. We spiral. We feel torn between what the heart screams and what the mind whispers.
And sometimes.. we just wish our thoughts could speak out loud, argue with each other, and help us truly understand what we want.
So I decided to bring that experience to life — where your inner voices don’t just stay in your head, they show up, take sides, and make you listen.
💡 Inspiration
This idea came from a place most of us quietly live in — the storm inside our heads. Those moments when the world is silent, but your thoughts are screaming. Late-night breakdowns. Life-changing decisions. That strange emotional chaos that pretends to be logic.
I kept wondering — what if those thoughts could come alive? What if we could actually watch our inner voices argue — not in our heads, but out loud, on screen, like characters in a courtroom?
I wanted to build something human. Something raw, emotional, and oddly familiar — that makes you pause and say:
“Wait… that’s exactly how I think.”
🛠️ How I Built It
I built this using Next.js, TypeScript, and Tailwind CSS — ensuring a modern, clean structure with smooth interactions.
For the voices in your head, I used OpenAI’s API to generate replies from two contrasting inner personas: -❤️🔥Impulsive You — raw, emotional, and unpredictable and 🧠 Logical You — calm, thoughtful, and grounded
With Text-to-Speech, these voices don’t just appear — they speak.
The bubble-style interface transforms your dilemma into a living conversation.
In the end, your mind whispers a verdict — gently reflecting whether it was your heart or your logic that took the lead.
Every tiny detail — color tones, voice timings, message flow — was carefully tuned to reflect the emotional push and pull inside the mind.
🚧 Challenges I Faced
Managing voice sync between each debate turn was surprisingly tricky — even a slight mismatch broke the emotional rhythm. Getting OpenAI to generate truly distinct tones for impulsive and logical voices took a lot of prompt engineering and trial runs. On top of that, handling the loading delays for text and audio without breaking the flow or making users impatient was one of the hardest UX moments in the build.
🌱 What I Learned
Building Mind on Trial wasn’t just about writing code — it was about understanding how tech can echo the human mind. I learned that AI isn’t just meant to answer questions; it can mirror emotions, bring out confusion, and even offer clarity without saying what’s right or wrong. Crafting the two personalities — Impulsive and Logical — taught me how powerful prompt design can be when storytelling through AI.
I also dove deep into async data handling and UI state flow in Next.js, making sure each turn felt seamless and reactive. It pushed me to think not just like a developer, but like a director staging an internal play — syncing voice, visuals, and timing like scenes in a drama. And somewhere along the way, I realized that keeping things minimal and meaningful is way harder than it looks — but when it works, it feels right.
🏆 Accomplishments I'm Proud Of
I took something silent — a tangled, emotional thought that usually lives in the shadows of the mind — and gave it a voice. In just 48 hours, I didn’t just build a project… I brought an experience to life. One that doesn’t just ask for input and return output, but makes you pause, listen, and feel.
It’s not just code on a screen. It’s a piece of how I think, how we all think. And creating something that feels that human — that’s what I’m truly proud of.
🧠 Why It’s Unmistakably Human
Because this isn’t AI trying to impress you. This is you — unfiltered, tangled, deeply human. The dilemmas aren’t made up. They echo in your mind when the world goes quiet. They’re the questions that haunt you at 2 AM, when no one else is listening. And those voices? They’re not lines of code. They’re your very own thoughts — messy, conflicted, heartbreakingly honest.
You’re not watching a machine perform. You’re witnessing your mind... put on trial.
🔮 What’s Next for Mind on Trial
This is just the beginning. I want to add memory and reflection — a way for you to revisit past dilemmas, to see how your inner voices evolve with time. Maybe one day you'll come back and hear how you once thought, how you once felt — and quietly notice how far you’ve come.
The dream isn’t to make you think better. It’s to create a space you return to — not for solutions, but simply to listen. To your own mind. In its mess. In its clarity. Gently. Honestly. Just as it is.
💫 Final Thoughts
Mind on Trial isn’t just an app. It’s a pause. A mirror. A moment with yourself. It doesn’t try to fix you — it simply lets you hear yourself. And sometimes… that’s all we need!
Built With
- next.js
- openai-api
- tailwindcss
- typescript
Log in or sign up for Devpost to join the conversation.