CodeLab is a lightweight browser-based code editor for practicing front-end development. Write HTML, CSS, and JavaScript in separate editors, see the output instantly, and save your work—all without installing anything.
CodeLab is a web-based coding playground built with HTML, CSS, and JavaScript using the Ace Editor. It provides an interactive environment where users can experiment with front-end code and instantly preview the results.
The project is completely client-side, making it easy to run locally or host on any static hosting platform. Whether you're learning web development or demonstrating concepts in a classroom, CodeLab offers a simple and efficient coding experience.
- 🎨 Separate editors for HTML, CSS, and JavaScript
- ⚡ Instant live preview inside a sandboxed iframe
- 📝 Ace Editor with syntax highlighting and auto-indentation
- 💾 Save projects as JSON files
- 📂 Load previously saved projects
- 🔄 Automatic project recovery using
localStorage - ⌨️ Keyboard shortcuts
- Ctrl/Cmd + Enter → Run code
- Ctrl/Cmd + S → Save project
- ✅ Built-in JavaScript validation panel
- ♿ Responsive and keyboard-accessible interface
- 🌐 Fully client-side application (No backend required)
- 📦 Works offline after loading dependencies
This project is suitable for:
- Students learning HTML, CSS, and JavaScript
- Beginners practicing front-end development
- Teachers conducting coding demonstrations
- Coding bootcamps and workshops
- Anyone looking for a lightweight online playground
- HTML5
- CSS3
- JavaScript (ES6)
- Ace Editor
- Local Storage API
- JSON File Handling
Working on or exploring this project helps you understand:
- Building a multi-tab code editor
- Integrating the Ace Editor
- Rendering live previews securely using iframes
- Managing browser storage with Local Storage
- Exporting and importing project files
- Implementing keyboard shortcuts
- Creating responsive and accessible web interfaces
CodeLab/
├── index.html
├── style.css
├── script.js
└── README.md
git clone https://github.com/Vader-codes/CodeLab.gitcd CodeLabSimply open index.html in your browser.
No installation or backend setup is required.
| Shortcut | Action |
|---|---|
| Ctrl / Cmd + Enter | Run the code |
| Ctrl / Cmd + S | Save project |
- Dark/Light theme toggle
- Multiple file support
- Console output panel
- Auto-format code
- Search and replace
- Project templates
- Additional language support
This project is licensed under the MIT License.
Contributions are welcome!
If you have ideas for improvements or discover a bug, feel free to open an issue or submit a pull request.
If you found this project helpful, consider giving it a ⭐ on GitHub.
It helps others discover the project and motivates future improvements.