A powerful Laravel-based web application that allows you to visually edit any website using AI. Load any website, select elements with your mouse, describe changes in natural language, and watch Claude AI transform your design in real-time.
Think faster. Test faster. Iterate faster.
Stop spending hours in design tools or waiting for developers. With AI UI Live Editor, you can:
- Test ideas instantly - See your design changes in seconds, not days
- Steal from the best - Copy any element from competitor sites and test it on yours immediately
- Communicate visually - Show stakeholders exactly what you mean instead of explaining
- Validate before building - Test UI concepts on real websites before writing a single line of code
- A/B Test Concepts - Quickly create visual variations to test with users
- Competitive Analysis - Load competitor websites, copy their best UI patterns, and see how they'd look on your product
- User Interview Props - Generate quick mockups during user research sessions
- Document Findings - Screenshot specific elements for research reports
- Rapid Prototyping - Test design ideas directly on production websites
- Client Presentations - Show clients proposed changes on their actual website
- Design Exploration - Try dozens of variations in minutes, not hours
- Handoff Made Easy - Copy the exact HTML/CSS to share with developers
- Sprint Planning - Visualize feature ideas before committing to development
- Stakeholder Buy-in - Show executives proposed changes on real products
- Quick Fixes - Test copy changes, color updates, layout tweaks instantly
- Competitor Intelligence - Analyze and borrow UI patterns from market leaders
- Frontend Prototyping - Test CSS changes without touching codebase
- Bug Recreation - Modify UI to demonstrate issues
- Code Extraction - Copy clean, formatted HTML from any website
- Learning Tool - Understand how other websites structure their HTML
1. Load competitor's website (e.g., stripe.com)
2. Right-click on their pricing section β Copy HTML
3. Load your website
4. Paste and adapt the section
5. Screenshot for team presentation
1. Load your production website
2. Select the hero section
3. Type: "Make it more modern with a gradient background and larger text"
4. Apply β See instant results
5. Iterate until perfect
6. Screenshot or copy code for developers
1. Load your website
2. Create 3 different button variations
3. Screenshot each variation
4. Use in user preference testing
5. Share findings with team
- Load Any Website - Enter any URL and load it through a secure proxy
- Visual Element Selection - Click on any element to select it with visual highlighting
- AI-Powered Editing - Describe changes in natural language and let Claude AI modify the HTML
- Copy HTML - Right-click any element to copy its formatted HTML code
- Screenshot Elements - Capture screenshots of individual elements as PNG
- Modern UI - Clean, responsive interface with modals, toast notifications
- API Key Management - Set your Anthropic API key directly in the UI (stored locally in browser)
- Real-Time Preview - See changes applied instantly without page refresh
- Clean navbar with URL input and settings
- Full-width website preview
- Status bar showing selected element path
- Blue highlight on hover
- Green highlight on selection
- Right-click toolbar for copy/screenshot
- HTML preview of selected element
- Natural language prompt input
- Quick suggestion chips
- PHP 8.1 or higher
- Composer
- Anthropic API Key (Get one here)
git clone https://github.com/sina-nasiri/ai-ui-live-editor.git
cd ai-ui-live-editorcomposer installcp .env.example .env
php artisan key:generateEdit .env file:
APP_URL=http://localhost:8000
SESSION_DRIVER=file
CACHE_STORE=filephp artisan serveVisit http://localhost:8000 in your browser.
- Set API Key - Click the Settings icon (βοΈ) in the top navigation and enter your Anthropic API key
- Load a Website - Enter any URL in the input field and click "Load"
- Select an Element - Click on any element in the preview (highlighted in green when selected)
- Describe Changes - In the modal that appears, describe what changes you want in natural language
- Apply Changes - Click "Apply Changes" and watch the AI transform your selection
Right-click on any element to open the toolbar:
- Copy HTML - Copies the element's formatted HTML to your clipboard
- Screenshot - Downloads the element as a PNG image
| Shortcut | Action |
|---|---|
Esc |
Close modal |
Ctrl + Enter |
Apply changes (when modal is open) |
"Make this larger and add a blue gradient background"
"Change the font to be more modern and increase padding"
"Add rounded corners and a subtle shadow"
"Make this section responsive with flexbox"
"Change the color scheme to dark mode"
"Add a hover effect with smooth transition"
"Make the text bold and center it"
"Add a border and change background to light gray"
Click on any suggestion chip for common modifications:
- Make larger
- Blue background
- Round corners
- Modernize
- Add shadow
- Center content
- Upload all files to your hosting directory
- Point your domain to the
/publicfolder - Update
.envwith your production URL:
APP_URL=https://yourdomain.com/ai-ui-live-editor/public- Ensure proper permissions:
chmod -R 755 storage bootstrap/cacheEnsure mod_rewrite is enabled. The .htaccess file in /public handles URL rewriting.
server {
listen 80;
server_name yourdomain.com;
root /path/to/ai-ui-live-editor/public;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
}ai-ui-live-editor/
βββ app/
β βββ Http/
β βββ Controllers/
β βββ WebsiteEditorController.php # Main controller (proxy & AI)
βββ resources/
β βββ views/
β βββ editor.blade.php # Main frontend view
βββ routes/
β βββ web.php # Route definitions
βββ public/
β βββ index.php # Application entry point
βββ storage/
β βββ logs/ # Application logs
βββ .env # Environment configuration
| Method | Endpoint | Description |
|---|---|---|
GET |
/ |
Main editor interface |
POST |
/proxy |
Fetch and proxy external websites |
POST |
/edit-section |
Process AI edit requests |
When you enter a URL, the app fetches the website content server-side, converts relative URLs to absolute, and injects custom CSS/JS for the editor functionality.
Custom JavaScript makes all visible elements selectable with:
- Blue border on hover
- Green border on selection
- Right-click context menu for tools
Your prompt and the selected HTML are sent to Claude AI (Sonnet 4.5), which returns modified HTML with inline styles for immediate compatibility.
The modified HTML replaces the original element in the preview, giving you instant visual feedback without page refresh.
The default model is claude-sonnet-4-5-20250929. To change it, edit WebsiteEditorController.php:
'model' => 'claude-sonnet-4-5-20250929',The AI prompt can be customized in WebsiteEditorController.php in the editSection method:
'content' => "You are a UI/UX expert. Modify the HTML below based on the user's request.
RULES:
1. Use INLINE STYLES (style=\"...\") for all CSS - NO <style> tags
2. Keep existing class names, add inline styles to override
3. Return ONLY raw HTML - NO markdown, NO code blocks, NO explanation
4. Preserve original structure and attributes
HTML:
{$html}
Request: {$prompt}
Output the modified HTML only:"- Check if the target website allows proxying
- Some websites block server requests
- Try a different website to test
- Check
storage/logs/laravel.logfor details
- Wait for the page to fully load (3-5 seconds)
- Some dynamic content takes time to become selectable
- The editor re-initializes multiple times to catch late-loading content
- Try scrolling to make elements visible
- Ensure your key starts with
sk-ant- - Verify key is valid at console.anthropic.com
- Check you have available API credits
- Key is stored in browser localStorage
- The AI uses inline styles which override most CSS
- Some websites have aggressive
!importantdeclarations - Try being more specific in your prompt
- Check browser console for JavaScript errors
- Right-click on the element to show the toolbar
- Ensure you're clicking inside the preview iframe
- Check browser permissions for clipboard access
- API Keys: Stored in browser localStorage, only sent to Anthropic API
- Proxy: Only fetches content, doesn't execute target website server code
- CSRF: Protection enabled on all POST endpoints
- No Storage: Website content is not stored on server
- Backend: Laravel 10.x (PHP 8.1+)
- AI: Claude Sonnet 4.5 (Anthropic API)
- Frontend: Vanilla JavaScript, CSS3
- HTTP Client: Guzzle (via Laravel HTTP facade)
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Export modified HTML/CSS
- Save/load editing sessions
- Multiple element selection
- Undo/redo functionality
- Template library
- Collaborative editing
Want to run AI UI Live Editor on your own server? MonoVM provides reliable, high-performance VPS hosting perfect for self-hosting this application.
| Feature | Benefit |
|---|---|
| Global Locations | 15+ data centers worldwide for low latency |
| High Performance | NVMe SSD storage for fast page loads |
| Full Root Access | Complete control over your server |
| 24/7 Support | Expert assistance whenever you need it |
| Instant Setup | Deploy your VPS in minutes |
| Affordable Plans | Starting from just $4.99/month |
Deploy AI UI Live Editor on MonoVM VPS in 5 minutes:
# 1. Connect to your MonoVM VPS
ssh root@your-vps-ip
# 2. Install requirements
apt update && apt install -y php8.2 php8.2-curl php8.2-xml php8.2-mbstring composer nginx
# 3. Clone and setup
cd /var/www
git clone https://github.com/sina-nasiri/ai-ui-live-editor.git
cd ai-ui-live-editor
composer install --no-dev
cp .env.example .env
php artisan key:generate
# 4. Configure Nginx and you're live!| Plan | Specs | Best For |
|---|---|---|
| Basic | 1 CPU, 2GB RAM | Personal use, testing |
| Standard | 2 CPU, 4GB RAM | Small teams, regular use |
| Professional | 4 CPU, 8GB RAM | Agencies, heavy usage |
π Get Your MonoVM VPS Today π
Use code AIUIEDITOR for 10% off your first month!
- Privacy - Your API keys and data stay on your server
- Speed - No shared resources, dedicated performance
- Customization - Modify the code to fit your workflow
- No Limits - No usage restrictions or rate limits
- Team Access - Share with your entire team on one server
- White Label - Brand it as your own tool
This project is open-sourced software licensed under the MIT license.
- Laravel - The PHP framework for web artisans
- Anthropic Claude - AI that powers the intelligent editing
- MonoVM - VPS hosting sponsor
- Inter Font - Beautiful UI typography