Code
A modern online code editor with Python, JavaScript, and C++ support, real-time output, and data visualization.
Install / Use
/learn @dan10ish/CodeREADME
Interactive Code Editor 🚀
A modern, feature-rich online code editor that supports Python, JavaScript, and C++ with real-time output, data visualization, and interactive input capabilities.
Play around with it here.
✨ Features
Multi-Language Support
-
🐍 Python (≥ 3.9)
- Matplotlib integration for data visualization
- NumPy for numerical computations
- Real-time output display
- Dark-themed plots
- Supported Libraries:
- numpy
- matplotlib
- pandas
- scipy
- plotly
- scikit_learn
- sympy
- networkx
-
📜 JavaScript (≥ ES2017)
- Interactive input via
prompt() - Console output capture
- Async/await support
- Modern APIs
- Promises
- Real-time execution
- Interactive input via
-
⚡ C++ (≥ C++17)
- Standard Template Library (STL)
- Standard I/O streams
- Interactive input via
std::cin - File streams support
- Modern language features
- Remote compilation
Editor Features
- 🎨 Syntax highlighting
- 📏 Auto-formatting
- ↩️ Undo/Redo functionality
- 📋 Code copying
- 💾 Code download
- 🔍 Adjustable font size
- 🎯 Bracket pair colorization
- 📱 Mobile-responsive design
User Interface
- 🌙 Dark mode interface
- 💻 Monaco Editor integration
- 🖼️ Modal plot viewer
- 📊 Interactive console
- ⌨️ Custom toolbar
- 🎮 Input/Output handling
🛠️ Tech Stack
- React + Vite
- Monaco Editor
- Pyodide for Python execution
- Matplotlib & NumPy
- Lucide Icons
🚀 Getting Started
- Clone the repository
git clone https://github.com/dan10ish/code.git
cd code
- Install dependencies
npm install
- Run the development server
npm run dev
- Build for production
npm run build
🌟 Usage
- Select your preferred programming language (Python, JavaScript, or C++)
- Write or paste your code in the editor
- Click the "Run" button or use the keyboard shortcut to execute
- View output in the console panel
- For Python plots, click to view in full-screen mode
🛠️ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
👨💻 Author
Danish
- Website: dan10ish.github.io
- GitHub: @dan10ish
🤝 Acknowledgments
- Monaco Editor for the powerful code editing capabilities
- Pyodide for enabling Python execution in the browser
- Wandbox for C++ compilation services
⭐️ Star this repo if you find it helpful!
Related Skills
claude-opus-4-5-migration
96.8kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
344.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
openhue
344.1kControl Philips Hue lights and scenes via the OpenHue CLI.
sag
344.1kElevenLabs text-to-speech with mac-style say UX.
