CodeFusion is a modern, LeetCode-like collaborative coding platform where users can solve problems, run code with Judge0, get AI-powered help (powered by GPT-5), and collaborate in real-time with Liveblocks. The platform features a professional, animated UI using GSAP and Framer Motion for a world-class user experience.
This project was built for the Co-Creating with GPT-5 hackathon organized by lablab.ai.
- Code Execution: Run code with the robust Judge0 API.
- AI Assistance: Get help from GPT-5, OpenAI's most advanced model yet, for problem understanding, solution approach, and debugging.
- Real-time Collaboration: Work together live, see each other's cursors, and share sessions with Liveblocks.
- Submission History: Visualize your coding activity, just like GitHub/LeetCode.
- Professional UI: Modern, animated interface using GSAP and Framer Motion for smooth transitions and delightful effects.
- Collaboration: Share a URL and code together in real time.
- History: Track your submissions and progress over time.
- Frontend: React.js, GSAP, Framer Motion, Tailwind CSS
- Backend: Node.js, Express.js
- Database: PostgreSQL (via Prisma)
- Code Execution: Judge0 API
- AI Model: GPT-5 via OpenAI API
- Real-time Collaboration: Liveblocks API
- Authentication: Firebase
You must set up environment variables for both frontend and backend. See .env.sample files in each directory for all required variables.
VITE_API_URL=
VITE_DEV_BACKEND_URL=
VITE_JUDGE0_API_URL=
VITE_JUDGE0_API_KEY=
VITE_AIMLAPI_GPT5=
VITE_LIVEBLOCKS_PUBLIC_KEY=
VITE_FIREBASE_API_KEY=
VITE_FIREBASE_AUTH_DOMAIN=
VITE_FIREBASE_PROJECT_ID=
VITE_FIREBASE_STORAGE_BUCKET=
VITE_FIREBASE_MESSAGING_SENDER_ID=
VITE_FIREBASE_APP_ID=
VITE_FIREBASE_MEASUREMENT_ID=
DATABASE_URL=
JWT_SECRET=
FRONTEND_URL=
NODE_ENV=development
JUDGE0_API_URL=
JUDGE0_API_KEY=
FIREBASE_PROJECT_ID=
FIREBASE_PRIVATE_KEY_ID=
FIREBASE_PRIVATE_KEY=
FIREBASE_CLIENT_EMAIL=
FIREBASE_CLIENT_ID=
- Clone the repository
git clone https://github.com/sidgureja7803/CodeFusion.git cd codefusion - Install dependencies
# Frontend cd frontend npm install # Backend cd ../backend npm install
- Set up environment variables
- Copy
.env.sampleto.envin bothfrontendandbackendfolders and fill in your API keys and secrets.
- Copy
- Start the development servers
# Backend cd backend npm start # Frontend (in a new terminal) cd frontend npm start
- Open your browser
- Go to your frontend URL (e.g.,
http://localhost:3000) to use CodeFusion!
- Go to your frontend URL (e.g.,
- The landing page and all major sections use GSAP and Framer Motion for:
- Animated backgrounds and gradients
- Smooth card and section transitions
- Floating and parallax effects
- Professional, modern fonts and color schemes
- All animations are performance-optimized and responsive.
Contributions are welcome! Please fork the repo, create a feature branch, and open a pull request. See the .env.sample files for required environment variables.
This project is licensed under the MIT License.
- Thanks to all open-source contributors
- Built with love for developers, by developers
Happy Coding! 🎉