# 💻 CoderPoint — Advanced Online Code Editor
Welcome to **CoderPoint**, a free and open-source web-based code editor built for modern developers.
It supports **HTML, CSS, JavaScript, PHP, and Python**, all inside your browser — no installation needed.
## 🎨 Project Structure
online_code_editor/ ├── src/ │ ├── api/ # API integration │ ├── components/ # React components │ │ ├── ModernOutput.jsx # Console and output panel │ │ ├── PreviewMode.jsx # Live preview component │ │ ├── ProjectEditor.jsx # Main editor component │ │ └── StackBlitzExplorer.jsx # File explorer │ ├── hooks/ # Custom React hooks │ ├── styles/ # CSS and styling │ ├── theme/ # Chakra UI theme configuration │ ├── utils/ # Utility functions │ │ ├── fileSystem.js # Virtual file system │ │ └── storage.js # Local storage management │ ├── App.jsx # Main app component │ └── main.jsx # App entry point ├── public/ # Static assets ├── package.json # Dependencies and scripts └── vite.config.js # Vite configuration
### Core Features
- **Monaco Editor Integration**: Full-featured code editor with IntelliSense, syntax highlighting, and auto-completion
- **Multi-File Support**: Create and manage multiple files and folders in a project structure
- **File Explorer**: VS Code-style file tree with drag-and-drop support
- **Tab Management**: Work with multiple files simultaneously using tabs
- **Auto-Save**: Automatic saving of files and project state to local storage
- **Theme Support**: Light and dark mode themes
### Code Execution
- **Real-Time Preview**: Live HTML/CSS/JS preview in an isolated iframe
- **Console Output**: Integrated console for viewing JavaScript logs and errors
- **Developer Tools**: Built-in developer tools with console, output, and terminal views
- **Rocket Mode**: Turbo execution mode for faster code processing
### File Management
- **Project Templates**: Pre-built HTML and JavaScript project templates
- **Import/Export**: Import existing projects or export your work
- **File Operations**: Create, rename, delete files and folders
- **Smart Language Detection**: Automatic programming language detection based on file extension
### Preview Modes
- **Developer Tools Mode**: Bundle and preview code locally using blob URLs
- **Console/Preview Toggle**: Switch between console output and live preview
- **Responsive Preview**: Test your web apps in different device sizes
- **Fullscreen Mode**: Distraction-free coding experience
## 🛠️ Tech Stack
- **Frontend Framework**: React 19+
- **UI Library**: Chakra UI v2
- **Code Editor**: Monaco Editor (VS Code's editor)
- **Icons**: React Icons
- **Animations**: Framer Motion
- **Build Tool**: Vite
- **Package Manager**: Yarn
- **State Management**: React Hooks
- **File System**: Custom virtual file system implementation
## 🛠️ Getting Started
## 📦 Installation
1. Clone the repository:
```bash
git clone https://github.com/smshagor-dev/
cd online_code_editor
- Install dependencies using Yarn:
yarn install- Start the development server:
yarn dev- Open your browser and navigate to:
http://localhost:5173
yarn dev- Start development serveryarn build- Build for productionyarn preview- Preview production buildyarn lint- Run ESLint
- Use DevTools Console to inspect and debug scripts
- You can easily add themes or syntax modes
- Extend backend execution using APIs for sandboxed environments
- Save and share your projects directly from the browser
- Click on the file explorer
- Right-click to create new files/folders
- Start coding in the editor
- Click "HTML Template" for a basic HTML/CSS/JS project
- Click "JavaScript" for JavaScript snippets
- Click "Run Code" to execute JavaScript
- Use "Preview" mode for HTML/CSS/JS projects
- Toggle between Console and Preview views
Ctrl/Cmd + S- Save file (auto-save is enabled)Ctrl/Cmd + Enter- Run codeCtrl/Cmd + /- Toggle commentCtrl/Cmd + F- FindCtrl/Cmd + H- Replace
- Add dark/light mode toggle
- Integrate user authentication
- Support multiple file tabs
- Implement collaborative (real-time) coding
- Add code auto-completion or AI suggestions
We welcome contributions! If you’d like to improve CoderPoint, submit a pull request or open an issue.
CoderPoint is completely free and open-source. You can use, modify, and distribute it for personal or commercial projects.
Happy coding with CoderPoint! ⚡