{"id":24147517,"url":"https://github.com/tanishraj/online_code_editor","last_synced_at":"2026-05-09T22:03:28.833Z","repository":{"id":240315094,"uuid":"802298310","full_name":"tanishraj/online_code_editor","owner":"tanishraj","description":"A HTML + CSS + Javascript online code editor using react.","archived":false,"fork":false,"pushed_at":"2024-05-30T18:37:46.000Z","size":8057,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-01-12T07:14:54.621Z","etag":null,"topics":["code-editor","code-editor-online","online-code-compiler","online-code-editor","online-editor"],"latest_commit_sha":null,"homepage":"https://js-editor-nine.vercel.app","language":"JavaScript","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/tanishraj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-05-17T23:38:30.000Z","updated_at":"2024-06-30T18:37:17.000Z","dependencies_parsed_at":"2024-05-18T00:34:09.762Z","dependency_job_id":"4bfe1ed8-9fd5-4730-b637-4c0f080ac17f","html_url":"https://github.com/tanishraj/online_code_editor","commit_stats":null,"previous_names":["tanishraj/online_code_editor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanishraj%2Fonline_code_editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanishraj%2Fonline_code_editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanishraj%2Fonline_code_editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanishraj%2Fonline_code_editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanishraj","download_url":"https://codeload.github.com/tanishraj/online_code_editor/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241389167,"owners_count":19955107,"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","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","code-editor-online","online-code-compiler","online-code-editor","online-editor"],"created_at":"2025-01-12T07:15:22.029Z","updated_at":"2026-05-09T22:03:28.828Z","avatar_url":"https://github.com/tanishraj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeCraft Pro - Online Code Editor\n\nA modern, feature-rich online code editor built with React, Chakra UI, and Monaco Editor. Write, edit, and preview code directly in your browser with a VS Code-like experience.\n\n## 🚀 Live Demo\n\nVisit the live application: [CodeCraft Pro](https://my-js-editor.vercel.app/)\n\n## ✨ Features\n\n### Core Features\n- **Monaco Editor Integration**: Full-featured code editor with IntelliSense, syntax highlighting, and auto-completion\n- **Multi-File Support**: Create and manage multiple files and folders in a project structure\n- **File Explorer**: VS Code-style file tree with drag-and-drop support\n- **Tab Management**: Work with multiple files simultaneously using tabs\n- **Auto-Save**: Automatic saving of files and project state to local storage\n- **Theme Support**: Light and dark mode themes\n\n### Code Execution\n- **Real-Time Preview**: Live HTML/CSS/JS preview in an isolated iframe\n- **Console Output**: Integrated console for viewing JavaScript logs and errors\n- **Developer Tools**: Built-in developer tools with console, output, and terminal views\n- **Rocket Mode**: Turbo execution mode for faster code processing\n\n### File Management\n- **Project Templates**: Pre-built HTML and JavaScript project templates\n- **Import/Export**: Import existing projects or export your work\n- **File Operations**: Create, rename, delete files and folders\n- **Smart Language Detection**: Automatic programming language detection based on file extension\n\n### Preview Modes\n- **Developer Tools Mode**: Bundle and preview code locally using blob URLs\n- **Console/Preview Toggle**: Switch between console output and live preview\n- **Responsive Preview**: Test your web apps in different device sizes\n- **Fullscreen Mode**: Distraction-free coding experience\n\n## 🛠️ Tech Stack\n\n- **Frontend Framework**: React 19\n- **UI Library**: Chakra UI v2\n- **Code Editor**: Monaco Editor (VS Code's editor)\n- **Icons**: React Icons\n- **Animations**: Framer Motion\n- **Build Tool**: Vite\n- **Package Manager**: Yarn\n- **State Management**: React Hooks\n- **File System**: Custom virtual file system implementation\n\n## 📦 Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/tanishraj/online_code_editor.git\ncd online_code_editor\n```\n\n2. Install dependencies using Yarn:\n```bash\nyarn install\n```\n\n3. Start the development server:\n```bash\nyarn dev\n```\n\n4. Open your browser and navigate to:\n```\nhttp://localhost:5173\n```\n\n## 📝 Available Scripts\n\n- `yarn dev` - Start development server\n- `yarn build` - Build for production\n- `yarn preview` - Preview production build\n- `yarn lint` - Run ESLint\n\n## 🎨 Project Structure\n\n```\nonline_code_editor/\n├── src/\n│   ├── api/              # API integration\n│   ├── components/       # React components\n│   │   ├── ModernOutput.jsx       # Console and output panel\n│   │   ├── PreviewMode.jsx        # Live preview component\n│   │   ├── ProjectEditor.jsx      # Main editor component\n│   │   └── StackBlitzExplorer.jsx # File explorer\n│   ├── hooks/           # Custom React hooks\n│   ├── styles/          # CSS and styling\n│   ├── theme/           # Chakra UI theme configuration\n│   ├── utils/           # Utility functions\n│   │   ├── fileSystem.js  # Virtual file system\n│   │   └── storage.js     # Local storage management\n│   ├── App.jsx          # Main app component\n│   └── main.jsx         # App entry point\n├── public/              # Static assets\n├── package.json         # Dependencies and scripts\n└── vite.config.js      # Vite configuration\n```\n\n## 🔧 Configuration\n\n### Environment Variables\nCreate a `.env` file in the root directory:\n\n```env\nVITE_API_URL=your_api_url_here\n```\n\n### VS Code Integration\nFor the best development experience, install these VS Code extensions:\n- ESLint\n- Prettier\n- ES7+ React/Redux/React-Native snippets\n\n## 🎯 Usage\n\n### Creating a New Project\n1. Click on the file explorer\n2. Right-click to create new files/folders\n3. Start coding in the editor\n\n### Loading Templates\n- Click \"HTML Template\" for a basic HTML/CSS/JS project\n- Click \"JavaScript\" for JavaScript snippets\n\n### Running Code\n- Click \"Run Code\" to execute JavaScript\n- Use \"Preview\" mode for HTML/CSS/JS projects\n- Toggle between Console and Preview views\n\n### Keyboard Shortcuts\n- `Ctrl/Cmd + S` - Save file (auto-save is enabled)\n- `Ctrl/Cmd + Enter` - Run code\n- `Ctrl/Cmd + /` - Toggle comment\n- `Ctrl/Cmd + F` - Find\n- `Ctrl/Cmd + H` - Replace\n\n## 🤝 Contributing\n\nContributions are welcome! Please follow these steps:\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 🐛 Known Issues\n\n- Large bundle size (739KB) - consider implementing code splitting\n- Preview mode requires HTML files in the project\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 👨‍💻 Author\n\n**Tanish Raj**\n- GitHub: [@tanishraj](https://github.com/tanishraj)\n\n## 🙏 Acknowledgments\n\n- Monaco Editor team for the amazing code editor\n- Chakra UI team for the beautiful component library\n- React team for the powerful framework\n- All contributors and users of this project\n\n## 📊 Project Status\n\n- ✅ Core editor functionality\n- ✅ File management system\n- ✅ Live preview\n- ✅ Console integration\n- ✅ Theme support\n- ✅ Auto-save\n- 🔄 Code execution API integration (in progress)\n- 📋 Collaborative editing (planned)\n- 📋 Cloud storage (planned)\n\n---\n\nMade with ❤️ by Tanish Raj","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanishraj%2Fonline_code_editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanishraj%2Fonline_code_editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanishraj%2Fonline_code_editor/lists"}