{"id":29792198,"url":"https://github.com/subhranil002/codefusion-frontend","last_synced_at":"2025-07-28T01:05:25.058Z","repository":{"id":305555428,"uuid":"1016934883","full_name":"subhranil002/CodeFusion-Frontend","owner":"subhranil002","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-20T18:09:06.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-20T20:23:35.746Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://codefusion.subhranilchakraborty.in","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subhranil002.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-09T18:53:48.000Z","updated_at":"2025-07-20T18:09:09.000Z","dependencies_parsed_at":"2025-07-20T20:35:49.699Z","dependency_job_id":null,"html_url":"https://github.com/subhranil002/CodeFusion-Frontend","commit_stats":null,"previous_names":["subhranil002/codefusion-frontend"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/subhranil002/CodeFusion-Frontend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhranil002%2FCodeFusion-Frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhranil002%2FCodeFusion-Frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhranil002%2FCodeFusion-Frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhranil002%2FCodeFusion-Frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subhranil002","download_url":"https://codeload.github.com/subhranil002/CodeFusion-Frontend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhranil002%2FCodeFusion-Frontend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267447428,"owners_count":24088595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"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":[],"created_at":"2025-07-28T01:05:24.122Z","updated_at":"2025-07-28T01:05:25.051Z","avatar_url":"https://github.com/subhranil002.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeFusion Frontend\n\nA collaborative, real-time code editor web application. CodeFusion enables multiple users to join a room and edit code together, with live updates, language switching, user presence indicators, and code execution—all in a modern, responsive UI.\n\n## Features\n\n- **Real-time collaborative code editing** (Socket.IO, Monaco Editor)\n- **Room-based sessions**: Join or create a room with a unique ID\n- **Live user presence**: See who is in the room and who is typing\n- **Typing indicators**: Know when others are editing\n- **Language selection**: Switch between supported languages (e.g., JavaScript, Python, Java)\n- **Font size adjustment** for the code editor\n- **User input modal**: Provide stdin for code execution\n- **Terminal output**: View stdout, stderr, status, and execution time\n- **Copy room ID** to clipboard for easy sharing\n- **Responsive, modern UI** (Tailwind CSS, DaisyUI)\n- **Toast notifications** for user actions and errors\n\n## Tech Stack\n\n- [React 19](https://react.dev/) + [TypeScript](https://www.typescriptlang.org/)\n- [Vite](https://vitejs.dev/) for fast development\n- [Redux Toolkit](https://redux-toolkit.js.org/) for state management\n- [Socket.IO Client](https://socket.io/) for real-time communication\n- [Monaco Editor](https://microsoft.github.io/monaco-editor/) for code editing\n- [Tailwind CSS](https://tailwindcss.com/) + [DaisyUI](https://daisyui.com/) for styling\n- [React Hook Form](https://react-hook-form.com/) for forms\n- [React Router v7](https://reactrouter.com/)\n- [Axios](https://axios-http.com/) for API requests\n\n## Getting Started\n\n### Prerequisites\n- Node.js (v18+ recommended)\n- A running backend server that exposes:\n  - REST API endpoints: `/api/v1/code/run`, `/api/v1/code/languages`\n  - Socket.IO endpoint: `/editor`\n- Backend must support CORS.\n\n### Installation\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/subhranil002/CodeFusion-Frontend.git\n   cd CodeFusion-Frontend\n   ```\n2. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n3. **Set environment variables:**\n   - Create a `.env` file in the root directory.\n   - Add your backend URL:\n     ```env\n     VITE_BACKEND_URL=http://localhost:5000\n     ```\n\n### Running the App\n\n- **Development mode:**\n  ```bash\n  npm run dev\n  ```\n  The app will be available at [http://localhost:5173](http://localhost:5173) by default.\n\n- **Production build:**\n  ```bash\n  npm run build\n  npm run preview\n  ```\n\n### Linting\n```bash\nnpm run lint\n```\n\n## Usage\n\n1. **Join a Room:** Enter your name and a 4-character room ID to join or create a session.\n2. **Collaborate:** Edit code in real-time with others. See who is present and who is typing.\n3. **Switch Language:** Use the header to change the programming language for the session.\n4. **Run Code:** Click \"Run Code\" to execute. Provide user input if needed via the modal.\n5. **View Output:** See results, errors, and execution time in the terminal panel.\n6. **Share Room:** Copy the room ID and invite others to join.\n\n## Project Structure\n\n```\nsrc/\n  apis/CodePlayground/        # API modules for code execution and language fetching\n  components/CodePlayground/  # Editor, Sidebar, Header, Terminal, UserInput UI\n  configs/                    # Axios and Socket.IO config\n  pages/                      # JoinRoom, CodePlayground pages\n  redux/                      # Redux store and slices\n  router/                     # React Router setup\n  types/                      # TypeScript type definitions\n  index.css                   # Tailwind \u0026 DaisyUI imports\n  App.tsx, main.tsx           # App entry points\n```\n\n## Contributing\n\nContributions are welcome! Please open issues or submit pull requests for improvements and bug fixes.\n\n## License\n\nThis project is licensed under the terms of the GNU General Public License v3.0. See the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhranil002%2Fcodefusion-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubhranil002%2Fcodefusion-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhranil002%2Fcodefusion-frontend/lists"}