Karbon is a desktop app that uses AI to generate and iteratively refine HTML/CSS/JS websites from simple prompts. Built with Python and Tkinter, it provides a live preview and export functionality.
- 🔤 Prompt-based website generation using AI
- 🛠️ Iterative prompt-based updates to the code
- 🖼️ Live preview in a browser window
- 📤 Export final code to HTML/CSS/JS files
- 🎛️ Simple and intuitive Tkinter GUI
git clone https://github.com/prakhardoneria/karbon.git
cd karbonpip install -r requirements.txtpython ui.pyThe app window will launch, allowing you to enter a prompt to generate your first website layout.
Use PyInstaller to create a standalone .exe:
pyinstaller ui.py --onefile --noconsole --name Karbon --icon=icon.icoThe built executable will appear in the dist/ folder.
On push to the main branch, GitHub Actions will:
- Build
Karbon.exeusing PyInstaller - Create a GitHub release with the
.exeattached
See .github/workflows/build-karbon.yml for details.
karbon/
├── ui.py # Main UI launcher
├── ai_engine.py # Handles AI code generation
├── exporter.py # Exports final code to files
├── preview.py # Opens code in browser preview
├── ui_items/ # Modularized UI components
│ ├── __init__.py
│ ├── prompt_view.py
│ ├── editor_view.py
│ └── karbon_ui.py
├── requirements.txt
├── .gitignore
└── README.md
Here are some example prompts you can try in Karbon, along with typical outputs:
Output: Generates a login page which takes user's Username and Password as input for Login.
Output: Generates HTML/CSS with an About Me, My projects and Get in Touch.
Output: Renders a landing page layout with Pricing Plans, and What Our Users Say.
Output: Creates a dark-themed homepage with navbar having Home, About, Contact and features articles with images.
Output: Creates a form with labeled input fields and a submit button, styled using CSS.
Pull requests are welcome! To contribute:
- Fork the repo
- Create a feature branch (
git checkout -b feature/new-feature) - Commit your changes (
git commit -m 'Add feature') - Push to the branch (
git push origin feature/new-feature) - Open a pull request
GNU General Public License v3.0. See LICENSE file for details.







.jpg)
.jpg)

