2D Metaverse ā Immersive Browser-Based Virtual World
Overview
The 2D Metaverse is an immersive virtual environment accessible directly via web browsers. It blends real-time communication, avatar-driven exploration, and spatial collaboration into one seamless experience. Designed to feel like a "virtual office" or "hangout space," users can move around rooms, talk with others via video calls, and experience a persistent shared environment.
š Technologies Used
- Frontend: React, Next.js, TailwindCSS, Framer Motion
- Backend: WebSocket, Prisma, PostgreSQL
- Dev Tools: VSCode, Figma, Chrome DevTools, GitHub
š Live Demo
š Live Project
š» GitHub Repo
⨠Key Features
- š§ Real-time avatar-based navigation on a 2D/3D interactive map
- š¬ Personalized virtual spaces with chat and proximity-based video calls
- š„ One-on-one and group video calls between users in real-time
- šļø Modular scene architecture that supports dynamic content injection
- š¹ļø Realtime state tracking for user position and interaction
- š Reusable component design for efficient expansion and scene creation
š¼ļø Visuals







š§© Project Architecture
š„ Frontend
- Built using Next.js and React for fast rendering and SPA-like behavior
- Integrated with Framer Motion for smooth avatar and environment animations
- Responsive layout with TailwindCSS
š Backend
- Real-time interactions powered by WebSocket
- User and session management handled with PostgreSQL + Prisma
- Video/audio communication via WebRTC integration (peer-to-peer)
š§ Challenges Tackled
- š§® Optimizing performance for complex interactive maps with many avatars
- š Synchronizing movement and real-time interaction for all users
- š Implementing WebRTC in a modular avatar-driven environment
- š§° Maintaining responsiveness for both desktop and mobile layouts
- š Cross-browser compatibility across Chrome, Safari, and Firefox
ā³ Project Duration
š
Feb 2024 ā Apr 2024
šØāš» Role: Full Stack Developer
š” Learning Outcomes
- Building real-time collaborative environments with WebSocket
- Managing distributed UI states across users in shared virtual spaces
- Implementing dynamic video/audio calling logic into React
- Designing flexible backend schemas with Prisma + PostgreSQL
š Folder Structure (Simplified)
2d-metaverse/
āāā components/ # Reusable UI components (Avatar, Map, Controls)
āāā pages/ # Next.js routes and views
āāā public/ # Static assets and map images
āāā lib/ # WebSocket and video call logic
āāā prisma/ # DB schema and queries
āāā styles/ # Tailwind and global styles
āāā utils/ # Helpers for avatar logic, media, and map data