NeoCompiler

Overview
A modern, feature-rich online code compiler and social coding platform that supports multiple programming languages. It allows users to write, execute, and share code snippets directly in the browser. Users can create personalized profiles, share their code snippets, and connect with other developers. Built with React and TypeScript, leveraging Monaco Editor and Piston API for seamless coding experience, with AI assistance using Gemini API.
Technical Implementation
Multi-Language Code Execution
Integrated Piston API for secure code execution across 9+ programming languages with real-time output display, custom input support, and error handling in browser environment.
AI-Powered Coding Assistant
Implemented Google Gemini API integration providing intelligent code suggestions, completions, explanations, optimization recommendations, and debugging assistance through floating assistant interface.
Social Coding Platform
Built comprehensive social features including user profiles, code snippet sharing, community feed, likes/views tracking, and developer networking capabilities using Firebase for authentication and real-time database.
Advanced Code Editor Experience
Integrated Monaco Editor (VS Code's editor) with custom themes, syntax highlighting, IntelliSense, and seamless TypeScript support for professional development experience.
Key Features
- Multi-language support (JavaScript, TypeScript, Python, Java, C++, C, Go, Rust, Ruby)
- Real-time code execution with Piston API integration
- Custom input support for code execution
- AI assistance with Gemini API for code generation, optimization, and debugging
- Developer community with social coding features
- User profiles with personalized developer portfolios
- Code sharing with unique shareable links and public/private visibility
- Monaco Editor with multiple themes and custom inputs
- Community feed with trending snippets and social interactions
- User authentication and saved code snippets management
- Responsive design for desktop and mobile devices
- Like system and view tracking for community engagement
Screenshots

Monaco editor with syntax highlighting and multiple themes

Gemini AI integration for code help and debugging

Social coding features and snippet sharing

Personalized developer profiles with portfolios

Personal dashboard for managing code snippets

Public code sharing with shareable links
Challenges & Solutions
Challenge: Secure code execution in browser environment with multiple languages
Solution: Leveraged Piston API for sandboxed code execution, providing secure isolation while supporting diverse programming languages with real-time output streaming and custom input handling
Challenge: Integrating AI assistance seamlessly into coding workflow
Solution: Designed floating AI assistant interface with contextual code analysis, allowing users to get help without disrupting their coding flow, with direct code application and multiple assistance modes
Challenge: Building engaging social features while maintaining code quality
Solution: Implemented community moderation, trending algorithms based on engagement metrics, user reputation system, and public/private snippet visibility to maintain high-quality code sharing environment
Challenge: Taking custom input for code execution
Solution: Developed input handling system allowing users to provide custom inputs for code execution, integrating seamlessly with Piston API to simulate real-world coding scenarios and enhance testing capabilities