CodeDuet is a dual-language compiler that allows you to write and execute Python and SQL code directly in your browser. It's fast, clean, and built entirely with React.js. Perfect for learning, experimenting, or quickly testing ideas with Python and SQL side by side.
- ⚡ Run Python and SQL code without a backend
- ✍️ Syntax highlighting using Monaco Editor (VSCode engine)
- 📄 Dual-panel layout for writing both languages independently
- 🧾 Output display for each language
- 💾 Code persists in LocalStorage (no accidental loss)
- 🔁 Clear/reset buttons for individual editors
- React.js — Frontend framework for building interactive user interfaces with components and hooks.
- Tailwind CSS — Utility-first CSS framework for rapid and responsive styling.
- lucide-react — Modern SVG icon library for clean, customizable icons.
- Clipboard API — Browser API used to copy SQL queries directly to the clipboard.
- Blob API & URL.createObjectURL — Used to generate downloadable CSV files from query results.
git clone git@github.com:stackmasteraliza/CodeDuet.git
cd CodeDuetnpm installnpm startVisit http://localhost:5173 in your browser.
src/
│
├── screens/
│ ├── python-compiler.jsx # Python editor component
│ ├── sql-compiler.jsx # SQL editor component
│
├── App.tsx # Main layout
├── index.tsx # App entry
Runs directly in the browser using Skulpt (or Pyodide). No server required.
Executes using sql.js, an in-browser SQLite engine compiled to WebAssembly.
- Shareable code snippets via URL
- User authentication + saved sessions
- Export output to CSV
- Light/dark theme toggle
- Mobile-friendly layout
Contributions, issues and feature requests are welcome! Feel free to open an issue or submit a pull request.
To contribute:
# Fork the repo and clone your fork
git clone https://github.com/stackmasteraliza/CodeDuet
# Create a new branch
git checkout -b feature/my-new-feature
# Commit your changes
git commit -m "Add my new feature"
# Push and open a pull request
git push origin feature/my-new-featureThis project is licensed under the MIT License.
Made with ❤️ by Aliza Ali
---
Let me know if you'd like to:
- Add badges (build status, license, etc.)
- Include deploy instructions (e.g., Netlify or Vercel)
- Automatically generate code snippets or database examples
Happy coding!


