{"id":31274066,"url":"https://github.com/ghoshsurya/rapidcompiler","last_synced_at":"2026-04-02T03:04:19.749Z","repository":{"id":315489909,"uuid":"1059714813","full_name":"ghoshsurya/rapidcompiler","owner":"ghoshsurya","description":"Professional online code editor \u0026 compiler with 14+ language support. Monaco Editor, real-time execution, project sharing. Open source alternative to Replit.","archived":false,"fork":false,"pushed_at":"2025-10-31T03:54:57.000Z","size":392,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-31T05:36:55.208Z","etag":null,"topics":["code-editor-online","golang","ide","javascript","monaco-editor","multi-language","online-compiler","python","react","replit-alternative-open-source","rust"],"latest_commit_sha":null,"homepage":"https://rapidcompiler.netlify.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghoshsurya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["ghoshsurya"],"patreon":"codesplex","ko_fi":"codesplex","buy_me_a_coffee":"codesplex","custom":["https://codesplex.com/sponsor","https://paypal.me/codesplex"]}},"created_at":"2025-09-18T20:48:27.000Z","updated_at":"2025-10-31T03:55:00.000Z","dependencies_parsed_at":"2025-09-21T21:21:03.678Z","dependency_job_id":null,"html_url":"https://github.com/ghoshsurya/rapidcompiler","commit_stats":null,"previous_names":["ghoshsurya/codesplex","ghoshsurya/rapidcompiler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ghoshsurya/rapidcompiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghoshsurya%2Frapidcompiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghoshsurya%2Frapidcompiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghoshsurya%2Frapidcompiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghoshsurya%2Frapidcompiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghoshsurya","download_url":"https://codeload.github.com/ghoshsurya/rapidcompiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghoshsurya%2Frapidcompiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-editor-online","golang","ide","javascript","monaco-editor","multi-language","online-compiler","python","react","replit-alternative-open-source","rust"],"created_at":"2025-09-23T22:31:34.697Z","updated_at":"2026-04-02T03:04:19.735Z","avatar_url":"https://github.com/ghoshsurya.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ghoshsurya","https://patreon.com/codesplex","https://ko-fi.com/codesplex","https://buymeacoffee.com/codesplex","https://codesplex.com/sponsor","https://paypal.me/codesplex"],"categories":[],"sub_categories":[],"readme":"# 🚀 RapidCompiler - Professional Online Code Editor \u0026 Compiler\n\n[![Live Demo](https://img.shields.io/badge/Live-Demo-brightgreen)](https://rapidcompiler.netlify.app)\n[![GitHub](https://img.shields.io/badge/GitHub-Repository-blue)](https://github.com/ghoshsurya/rapidcompiler)\n[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\nA production-ready, enterprise-grade online code editor and compiler platform with advanced features, security, and multi-language support. Built with modern technologies and optimized for performance.\n\n## ✨ Key Features\n\n### 🎨 **Advanced Code Editor**\n- **Monaco Editor** (VS Code engine) with syntax highlighting\n- **Intelligent IntelliSense** for all supported languages\n- **Custom code snippets** and autocomplete\n- **Resizable panels** with drag-and-drop functionality\n- **Dark/Light theme** with persistent preferences\n\n### 💻 **Multi-Language Support**\n- **Python** 3.9+ with full library support\n- **JavaScript** (Node.js 16) with ES6+ features\n- **C/C++** with GCC compiler\n- **Java** with OpenJDK 11\n- **C#** with .NET runtime\n- **PHP** with latest interpreter\n- **SQL** with query execution\n- **HTML/CSS/JS** with live preview\n\n### 🔐 **Enterprise Security**\n- **Docker containerization** for isolated execution\n- **Resource limits**: 128MB RAM, CPU quotas\n- **Network isolation** and timeout protection (10s)\n- **JWT authentication** with secure token management\n- **Input sanitization** and XSS protection\n\n### 👥 **User Management**\n- **Supabase authentication** integration\n- **User profiles** with project history\n- **Admin dashboard** for platform management\n- **Project sharing** with unique URLs\n- **Real-time collaboration** ready\n\n### 📦 **NPM Package Available**\n- **React Component**: `npm install https://github.com/ghoshsurya/rapidcompiler/raw/main/ghoshsurya-rapidcompiler-react-1.0.0.tgz`\n- **Easy Integration**: Drop-in Monaco Editor component\n- **TypeScript Support**: Full type definitions included\n- **GitHub Releases**: Available at [releases page](https://github.com/ghoshsurya/rapidcompiler/releases)\n\n### 🌐 **Production Features**\n- **SEO optimized** with meta tags and structured data\n- **PWA ready** with offline capabilities\n- **Responsive design** for all devices\n- **Performance optimized** with code splitting\n- **Error tracking** and logging\n\n## 🏗️ Architecture\n\n### **Frontend Stack**\n```\nReact 18 + TypeScript\n├── Monaco Editor (VS Code)\n├── Tailwind CSS + PostCSS\n├── React Router v6\n├── Axios for API calls\n├── Lucide React icons\n└── Supabase client\n```\n\n### **Backend Stack**\n```\nPython Flask + PostgreSQL\n├── Flask-JWT-Extended\n├── Flask-SQLAlchemy\n├── Docker Python SDK\n├── bcrypt encryption\n├── CORS middleware\n└── Gunicorn WSGI\n```\n\n### **Infrastructure**\n```\nDocker + Docker Compose\n├── PostgreSQL 15 database\n├── Nginx reverse proxy\n├── Multi-stage builds\n├── Health checks\n└── Volume persistence\n```\n\n## 🚀 Quick Start\n\n### Prerequisites\n- **Docker** \u0026 **Docker Compose**\n- **Node.js** 16+ and **npm**\n- **Python** 3.9+ and **pip**\n- **Git** for version control\n\n### 1. Clone Repository\n```bash\ngit clone https://github.com/ghoshsurya/rapidcompiler.git\ncd rapidcompiler\n```\n\n### 2. Environment Setup\n```bash\n# Backend environment\ncp backend/.env.example backend/.env\n\n# Frontend environment\ncp frontend/.env.example frontend/.env\n```\n\n### 3. Docker Deployment (Recommended)\n```bash\n# Start all services\ndocker-compose up --build\n\n# Run in background\ndocker-compose up -d --build\n```\n\n### 4. Manual Development Setup\n```bash\n# Backend setup\ncd backend\npip install -r requirements.txt\npython app.py\n\n# Frontend setup (new terminal)\ncd frontend\nnpm install\nnpm start\n```\n\n### 5. Access Application\n- **Frontend**: http://localhost:3000\n- **Backend API**: http://localhost:5000\n- **Database**: PostgreSQL on port 5432\n\n## 📁 Project Structure\n\n```\nrapidcompiler/\n├── 📁 frontend/                 # React application\n│   ├── 📁 public/              # Static assets\n│   ├── 📁 src/\n│   │   ├── 📁 components/      # React components\n│   │   ├── 📁 pages/          # Route pages\n│   │   ├── 📁 hooks/          # Custom hooks\n│   │   ├── 📁 lib/            # Utilities\n│   │   └── 📁 utils/          # Helper functions\n│   ├── 📄 package.json\n│   └── 📄 tailwind.config.js\n├── 📁 backend/                  # Flask API server\n│   ├── 📄 app.py              # Main application\n│   ├── 📄 requirements.txt    # Python dependencies\n│   └── 📄 Dockerfile          # Backend container\n├── 📁 database/                # Database schemas\n│   └── 📄 schema.sql          # PostgreSQL schema\n├── 📁 docker/                  # Docker configurations\n│   └── 📄 nginx.conf          # Nginx config\n├── 📁 netlify/                 # Serverless functions\n│   └── 📁 functions/          # API functions\n├── 📄 docker-compose.yml       # Multi-container setup\n├── 📄 netlify.toml            # Netlify deployment\n└── 📄 README.md               # Documentation\n```\n\n## 🔌 API Documentation\n\n### Authentication Endpoints\n```http\nPOST /api/auth/register    # User registration\nPOST /api/auth/login       # User login\nGET  /api/auth/profile     # Get user profile\n```\n\n### Code Execution\n```http\nPOST /api/run              # Execute code\n{\n  \"language\": \"python\",\n  \"code\": \"print('Hello World')\",\n  \"input\": \"optional input\"\n}\n```\n\n### Project Management\n```http\nGET    /api/projects           # List user projects\nPOST   /api/projects           # Create new project\nGET    /api/projects/:id       # Get project details\nPUT    /api/projects/:id       # Update project\nDELETE /api/projects/:id       # Delete project\nPOST   /api/projects/:id/share # Share project\n```\n\n### Public Endpoints\n```http\nGET /api/share/:shareId        # Get shared project\nGET /api/health               # Health check\n```\n\n## 🛡️ Security Implementation\n\n### Code Execution Security\n- **Docker isolation** with restricted containers\n- **Resource limits**: Memory (128MB), CPU quotas\n- **Network disabled** during execution\n- **Timeout protection** (10 seconds max)\n- **Temporary file cleanup**\n\n### Authentication Security\n- **JWT tokens** with expiration\n- **bcrypt password hashing**\n- **CORS protection**\n- **Input validation** and sanitization\n- **SQL injection prevention**\n\n### Infrastructure Security\n- **Environment variables** for secrets\n- **Database connection pooling**\n- **Rate limiting** ready\n- **HTTPS enforcement** in production\n\n## 🌐 SEO \u0026 Performance\n\n### SEO Features\n- **Meta tags** (Open Graph, Twitter Cards)\n- **Structured data** (JSON-LD)\n- **XML sitemap** generation\n- **Robots.txt** optimization\n- **Canonical URLs**\n- **Semantic HTML5** structure\n\n### Performance Optimizations\n- **Code splitting** and lazy loading\n- **Bundle optimization** with Webpack\n- **Image optimization** and compression\n- **CDN ready** for static assets\n- **Caching strategies** implemented\n\n## 🚀 Deployment Options\n\n### 1. Netlify (Frontend) + Railway (Backend)\n```bash\n# Frontend deployment\nnpm run build\nnetlify deploy --prod --dir=build\n\n# Backend deployment\ngit push railway main\n```\n\n### 2. Docker Production\n```bash\n# Production build\ndocker-compose -f docker-compose.prod.yml up -d\n```\n\n### 3. AWS/GCP/Azure\n- **Container deployment** with ECS/Cloud Run\n- **Database**: RDS/Cloud SQL\n- **Storage**: S3/Cloud Storage\n- **CDN**: CloudFront/Cloud CDN\n\n## 🧪 Testing\n\n```bash\n# Frontend tests\ncd frontend\nnpm test\n\n# Backend tests\ncd backend\npython -m pytest\n\n# Integration tests\npython test-api.py\npython test-compilers.py\n```\n\n## 📊 Monitoring \u0026 Analytics\n\n- **Error tracking** with Sentry integration ready\n- **Performance monitoring** with Web Vitals\n- **User analytics** with Google Analytics\n- **API monitoring** with health checks\n- **Database monitoring** with connection pooling\n\n## 🤝 Contributing\n\n1. **Fork** the repository\n2. **Create** feature branch (`git checkout -b feature/amazing-feature`)\n3. **Commit** changes (`git commit -m 'Add amazing feature'`)\n4. **Push** to branch (`git push origin feature/amazing-feature`)\n5. **Open** Pull Request\n\n## 📄 License\n\nThis project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.\n\n## 👨💻 Author\n\n**Suryakanta Ghosh** - [@ghoshsurya](https://github.com/ghoshsurya)\n\n## 💰 Support the Project\n\n**RapidCompiler is free and open source!** Support development:\n\n- ⭐ **Star** this repository\n- 💖 **Sponsor** on [GitHub Sponsors](https://github.com/sponsors/ghoshsurya)\n- ☁️ **Use** [RapidCompiler Cloud](https://rapidcompiler.com) (coming soon)\n- 🐛 **Report** bugs and suggest features\n- 🤝 **Contribute** code and documentation\n\n## 🚀 RapidCompiler Cloud (SaaS)\n\n**Coming Soon**: Hosted version with premium features:\n- Real-time collaboration\n- Private projects\n- Advanced analytics\n- Priority support\n- Team workspaces\n\n[Join Waitlist](https://rapidcompiler.com/waitlist) for early access!\n\n## 🙏 Acknowledgments\n\n- **Monaco Editor** team for the excellent code editor\n- **Docker** for containerization technology\n- **React** and **Flask** communities\n- **Open source** contributors\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003e⭐ Star this repository • 💖 Sponsor the project • ☁️ Try RapidCompiler Cloud\u003c/strong\u003e\n\u003c/div\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghoshsurya%2Frapidcompiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghoshsurya%2Frapidcompiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghoshsurya%2Frapidcompiler/lists"}