Make an html visual editor with a roblox studio-like format, and all toolbox attributes…
- User
Make an html visual editor with a roblox studio-like format, and all toolbox attributes for html like button, break, div, and more, and also being able to drag the parts in place and also live test it. Make it so user can create an html site or thing just by using drag and drop mechanics like scratch, f.e. dragging a block part, and being able to add gradient in it or set properties for its CSS, with visual block coding too for the JS. Make it so its downloadable and it autosaves to storage so user never loses it. Make in very detailed visuals. Make it contain BUNCH of attributes, be easy to use, and have some template projects, and when project is unsaved and changed while trying to close tab or open new template, it shows confirmation. Again, make it so user can drag to set the position of an attribute, and there will be handles on 4 sides so user can resize, and for the scripts to be like in a visual editor that can be opened up when selecting a script attribute, also include things like functions and more. Also for image importing, make it so user can also import files and for this to have many features. Make it so it is ran as a python that run as an APP.
Assistant
I'll build this ambitious HTML Visual Editor - a Roblox Studio-like drag-and-drop web builder. Let me start by planning the architecture and then build it systematically.
This is a large project, so let me organize it into key components:
- Python desktop app (Electron-like using Python with webview)
- React frontend with the visual editor
- Core systems: Canvas, Toolbox, Properties Panel, Script Editor, Asset Manager
Let me start building:
Now let me install additional packages and build this massive application. I'll need packages for the visual editor functionality.
Now let me build the entire application. This is a massive project, so I'll create all the files. Let me start with the core architecture:
Now let me create the store - the heart of the application:
Let me fix that minor unused variable:
Now let me create the main App with all the UI components. I'll build this in parts:
Those are expected - I'm creating the components now. Let me create all the component files. I'll create them in rapid succession:
Let me fix Toolbar.tsx to clean up unused imports and the require issue:
Now let me remove the unused exportJSON:
Good. Now let me create all the remaining components. I'll create them efficiently:
Now let me create the Canvas component - the core of the visual editor:
Good. Now let me create the Properties Panel:
Now let me create the Script Editor, LivePreview, AssetManager, ProjectPanel, ConfirmModal, and StatusBar. Let me batch these:
Now let's fix the App.tsx to not destructure
currentProjectsince it's unused there:Now let's fix the StatusBar to not use require:
Now let's try building:
The project builds. Now let me create the Python desktop app wrapper. Let me also fix a few things and improve the app further. Let me create the Python runner:
Now let me also create a requirements.txt and a README:
Let me also create a proper package.json build script for the python integration and add an icon to the app. Let me also add some missing functionality - the
generateHTMLfunction circular dependency needs fixing. Let me move it to a utility:Now update App.tsx to import from utils:
Now let me update Toolbar and StatusBar to import from the utils:
The build succeeds cleanly. Now let me verify it runs properly and add the final polish. Let me make sure the Python runner has the right permissions and test it:
Good. All files are in place. Let me now make the Python script executable and test it:
The Python server approach is correct. Let me now verify everything builds clean one more time and also ensure the dist output is properly formatted:
The build is successful! Let me now verify the dist exists and confirm the Python runner can find it:
Everything is in place. Let me do a final test by running the Python runner:
The complete application is now built. Let me provide a summary of everything that was created:
✅ WebForge Studio - HTML Visual Editor
The application has been built successfully. Here's what was created:
🏗️ Architecture
React Frontend (17 source files):
src/App.tsx- Main app with keyboard shortcuts, download, duplicate, unsaved changes detectionsrc/store/editorStore.ts- Zustand store with full project management:
Core Components:
Component Features Toolbar Tools (Select/Pan), Zoom, Undo/Redo, Download HTML, Import/Export, Panel toggles, Live Preview Toolbox 7 categories, 50+ HTML elements (div, section, h1-h3, p, button, img, input, table, form, etc.), Search, Gradient presets Canvas Drag-and-drop positioning, 8 resize handles (N/S/E/W + corners), Selection box, Pan/Zoom, Grid background, Element labels Properties Panel Content editing, Position (X/Y/Z), Dimensions, Typography, Background (color + gradient), Border, Effects (shadow/filter), Flex/Grid layout, Image import, Script management Script Editor Visual JS coding, 11 action templates (event, function, variable, condition, loop, style change, animation, DOM manipulation, API call, timer, console), Code editor with syntax, Live test button Live Preview Real-time iframe rendering, Device presets (Desktop/Tablet/Mobile/Fit), Refresh Asset Manager Image/file import, Grid gallery, Apply to elements, Copy data URL, Local storage Project Panel Element tree hierarchy, Global CSS/JS/Head editor, Canvas size controls, Template loader Confirm Modal Unsaved changes warning on tab close/template switch Status Bar Tool indicator, Element counts, Save status, Zoom, Canvas size, Quick download Templates: Blank Canvas, Landing Page, Dashboard, Portfolio
Python Runner (
run_app.py):- Local HTTP server with CORS
- Desktop mode via PyWebView (optional)
- Browser mode (default)
🚀 How to Run
# Already built! Just run: python run_app.py # For desktop app mode: pip install pywebview python run_app.py --desktop # To rebuild after changes: npm run build🎯 Key Features
- Drag & Drop elements from toolbox onto canvas
- 8-point resize handles on all selected elements
- Visual JS scripting with templates and live test
- Auto-save to localStorage (never lose work)
- Download as HTML - exports fully functional HTML files
- Image import via file picker or Asset Manager
- 50+ CSS properties editable via Properties Panel
- Gradient presets with quick copy
- Undo/Redo (Ctrl+Z / Ctrl+Shift+Z)
- Unsaved changes detection with confirmation dialogs
- Live Preview with device size presets
- Keyboard shortcuts throughout
Files built:
index.html,src/index.css,src/store/editorStore.ts,src/App.tsx,src/components/Toolbar.tsx,src/components/Toolbox.tsx,src/components/Canvas.tsx,src/components/PropertiesPanel.tsx,src/components/ScriptEditor.tsx,src/components/LivePreview.tsx,src/components/AssetManager.tsx,src/components/ProjectPanel.tsx,src/components/ConfirmModal.tsx,src/components/StatusBar.tsx,run_app.py,requirements.txt,src/utils/htmlGenerator.ts
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.