How codexeron/web-playground works
Web Playground is a client-side browser IDE: users edit project files, see the generated page in an isolated preview, and inspect runtime feedback. The main runtime logic is concentrated in js/app.js; the README documents the broader file, responsive, theme, monitoring, and persistence capabilities. The excerpts show editor autosave/preview triggers and iframe message handling, but omit much of the implementation, so uncertain wiring is not shown.
Main entry points: index Playground UI · app.js Code editor · preview Separate-tab preview
Components 15
Editing workspace
- Playground UI
index - File management
js/app.js - Code editor
js/app.js - Themes
js/app.js - Responsive views
js/app.js - Keyboard shortcuts
js/app.js
Preview runtime
- Preview builder
js/app.js - Live iframe
index - Separate-tab preview
preview
Inspection tools
- Console capture
js/app.js - Network monitor
js/app.js - Performance metrics
js/app.js - Element picker
js/app.js
Project persistence
- localStorage
Other components
- Developer
Connections 21
- Developer → Playground UI: uses
- Playground UI → File management: manages files
- Playground UI → Code editor: edits code
- Code editor → File management: saves edits
- File management → localStorage: persists project
- localStorage → File management: restores project
- Code editor → Preview builder: triggers update
- Preview builder → Live iframe: loads document
- Playground UI → Separate-tab preview: opens preview
- Playground UI → Themes: selects theme
- Playground UI → Responsive views: selects viewport
- Playground UI → Keyboard shortcuts: handles shortcuts
- Live iframe → Console capture: posts output
- Live iframe → Network monitor: posts requests
- Live iframe → Performance metrics: posts metrics
- Playground UI → Console capture: displays output
- Playground UI → Network monitor: displays requests
- Playground UI → Performance metrics: displays metrics
- Playground UI → Element picker: toggles picker
- Live iframe → Element picker: posts selection
- Element picker → Code editor: locates code