Inspiration

Life is a series of decisions — but we often wonder, "What if I had chosen differently?" Inspired by this idea and the power of generative AI, I set out to build a tool that simulates how life might unfold across different decision paths. The goal was to help users reflect on their values and visualize alternate realities using technology — something both philosophical and interactive.

What it does

Multiverse Life Simulator is an AI-powered web app that:

Simulates alternate life paths based on user choices

Lets users pick a life philosophy (e.g., Stoic, YOLO, Growth, Karma)

Adjusts decision outcomes based on sliders like Happiness, Wealth, and Success

Generates rich, narrative-based outcomes using OpenAI GPT models

Visualizes those paths using an interactive decision tree (via ReactFlow)

Allows users to export their life simulations as beautiful PDF reports

It’s a blend of reflection, storytelling, and AI — packaged into a full-stack simulation tool.

How I built it

Frontend: Built with React (Vite), styled using Tailwind CSS and shadcn/ui

Decision Tree UI: Integrated ReactFlow to create interactive branching timelines

Backend: Developed using Supabase (PostgreSQL + Edge Functions)

AI Integration: Used OpenAI GPT models through Supabase Edge Functions

Authentication: Implemented secure login/signup with Supabase Auth

PDF Export: Generated reports using html2canvas and jsPDF

State Management: Used local state with hooks and fallback data logic

Challenges I ran into

AI response handling: Sometimes OpenAI responses were malformed or too long — requiring fallback logic and retries

PDF generation: Ensuring layout consistency and font scaling across different screen sizes was tricky

CORS issues: Supabase Edge + OpenAI required custom headers and config to work reliably

Decision balance: Crafting sliders and logic that felt realistic yet varied enough in outcomes

Accomplishments that I'm proud of

Built a fully functional life simulator that merges AI, visualization, and decision theory

Created a polished UX that encourages reflection, exploration, and creativity

Designed a robust architecture using modern tools (Supabase, ReactFlow, shadcn/ui)

Successfully integrated AI with real-time data visualization and exportable results

What I learned

How to build agent-like AI simulations using GPT with dynamic user input

Deep understanding of ReactFlow for decision-tree logic and graph UIs

Using Supabase Edge Functions for serverless AI processing

Creating exportable, print-ready PDF documents from web apps

The importance of emotional design — making tech feel personal and meaningful

What's next for Multiverse Life Simulator

🎯 Add sentiment and tone analysis to AI-generated paths

🧭 Introduce timeline-based navigation to revisit or edit decisions

👥 Enable multiplayer mode: simulate relationships or friends’ decisions

📊 Dashboard with life stats comparison across universes

🌐 Public gallery: let users share and explore alternate lives

Built With

Share this project:

Updates

posted an update

Feature Expansion and Demo Video Released

Multiverse Life Simulator has officially completed its first stable version. Here’s what’s new in this update:

New Features Added:

Personality-based Random Life Generator Generates entire multiverse timelines using selected philosophies like Stoic, YOLO, Growth, and Karma.

Interactive Decision Tree Built with ReactFlow, allowing users to explore life branches dynamically.

PDF Export Support Export your simulation as a well-formatted PDF using html2canvas and jsPDF.

User Authentication Secure login and sign-up implemented using Supabase Auth.

Save and Load Simulations Users can now export or import their timelines in JSON and TXT formats.

Demo Video Released Watch the demo here https://youtu.be/UCPRClorSq4?si=yMlHchxHIlCqdrQS

Tech Stack

TypeScript, React (Vite), Tailwind CSS, shadcn/ui, ReactFlow, Supabase, PostgreSQL, OpenAI API, jsPDF

Upcoming Features

Timeline-based life path visualization

Comparative analytics for different decision paths

Public sharing and discovery of user-generated life stories

AI-based life suggestions from uploaded CVs or quiz data

Log in or sign up for Devpost to join the conversation.