A modern, elegant online compiler supporting C, C++, Java, Python, and JavaScript. Powered by the Judge0 API, CodeFlow lets you write, run, and test code instantly in your browser with a beautiful, theme-adaptive interface.
Visit Now
- Monaco Editor with syntax highlighting
- Language selection: C, C++, Java, Python, JavaScript
- Input/output and execution status panels
- Light/Dark/High Contrast themes
- Responsive, professional UI (Tailwind CSS + custom CSS)
- Judge0 API integration for real code execution
Provide developers with a hassle-free online coding environment—no local IDE or setup required. Instantly test code, learn new languages, or prototype ideas directly in your browser.
- Select your language and theme.
- Write or paste your code in the editor.
- (Optional) Enter program input above the output panel.
- Click Run Code to execute and see output instantly.
- Clone or download this repository.
- Open
index.html
in your browser. - (Optional) Add your Judge0 API key in
script.js
for full functionality.
index.html
— Main UI and layoutstyle.css
— All theming, layout, and responsive rulesscript.js
— Editor setup, API integration, and logic
CodeFlow — Built for developers who love clean code.
Then open http://localhost:8000
in your browser.
Online Compiler/
├── index.html # Main HTML file with responsive layout
├── style.css # Modern CSS with dark/light theme support
├── script.js # JavaScript with Judge0 API integration
└── README.md # This file
- Update Language IDs in
script.js
:
this.languageIds = {
'python': 71,
'javascript': 63,
'java': 62,
'cpp': 54,
'c': 50,
'your_language': ID_HERE // Add new language
};
- Add Language Template:
this.templates = {
// ... existing templates
'your_language': `// Your language template code here`
};
- Update HTML Select Options:
<select id="language">
<!-- existing options -->
<option value="your_language">Your Language</option>
</select>
The application supports extensive theming through CSS variables in style.css
. You can customize:
- Colors and gradients
- Typography and fonts
- Spacing and layout
- Animations and transitions
-
Keyboard Shortcuts:
Ctrl + Enter
: Run codeCtrl + L
: Clear outputCtrl + /
: Comment/uncomment lines (in editor)
-
Editor Features:
- Mouse wheel zoom
- Bracket pair colorization
- Code folding
- Auto-indentation
-
Mobile Usage:
- Landscape orientation recommended
- Touch-friendly interface
- Responsive layout adapts to screen size
- All code execution happens in Judge0's sandboxed environment
- No code is stored on the client
- API keys should be secured on production deployments
- Input sanitization and validation
Feel free to contribute to this project by:
- Adding support for more programming languages
- Improving the UI/UX design
- Adding new features (syntax highlighting themes, etc.)
- Optimizing performance
- Fixing bugs and issues
This project is open source and available under the MIT License.
- Monaco Editor: Microsoft's excellent code editor
- Judge0: Robust code execution API
- Tailwind CSS: Utility-first CSS framework
- Font Awesome: Beautiful icons
- Inter & JetBrains Mono: Great typography
If you encounter any issues or have questions:
- Check the browser console for errors
- Verify your Judge0 API key is correct
- Ensure you have a stable internet connection
- Try refreshing the page
Happy Coding! 🎯