LARC Playground - Quick Start
Launch
Server Running: Yes (port 8080) URL: http://localhost:8080/playground/Just open the URL in your browser!
30-Second Test
That's it! The playground is working if all 6 steps succeed.
Quick Feature Tour
๐ What's New in This Version
- Live Markup Editor: Edit HTML directly with syntax validation
- Bidirectional Sync: Changes flow visual โ code seamlessly
- Better Component Rendering: Components look more realistic
- Visual Badges: Floating badges show component names
- 21 Pre-built Examples: Load and learn from curated examples
- Improved UX: Smoother animations and better visual feedback
Add Components
- Browse 49 components in 10 categories
- Search: type "router", "store", "table", etc.
- Click any component to add to canvas
- Components appear with floating badges
Edit Properties
- Click a component on canvas to select it
- Properties panel shows on right
- Change any attribute - updates live!
- Click "Delete Component" to remove
Generate & Edit Code โจ NEW!
- Click "View Code" button
- See clean HTML with syntax highlighting
- Click "โ๏ธ Edit" to enter edit mode
- Modify markup directly in the editor
- Click "โ Apply" to sync changes to canvas
- Click "Copy" to copy code
- Click "Download" to save file
Monitor Messages
- Click "PAN Monitor" button
- See PAN bus messages in real-time
- Filter by topic
- Clear log when needed
Load Examples โจ NEW!
- 21 pre-built examples in the header dropdown
- Examples include: Router, Forms, Tables, Auth, Real-time, etc.
- Click "Load Example..." and select one
- Perfect for learning and starting projects
Responsive Views
- Dropdown: Desktop / Tablet / Mobile
- Watch canvas resize
- Test responsive components
Component Categories
- ๐งญ Routing: pan-router, pan-link
- ๐พ State: pan-store, pan-idb
- ๐ Forms: pan-form, pan-dropdown, pan-date-picker
- ๐ Data: pan-fetch, pan-websocket, pan-graphql-connector
- ๐จ UI: pan-card, pan-modal, pan-tabs, pan-table
- ๐ Content: pan-markdown-editor, pan-files
- ๐ Auth: pan-jwt, pan-auth, pan-security
- ๐ญ Theme: pan-theme-provider, pan-theme-toggle
- ๐ง DevTools: pan-inspector, pan-forwarder
- โ๏ธ Advanced: pan-worker, pan-schema
Keyboard Tips
- Click component = Select
- Click background = Deselect
- Search box = Filter components
- Enter in search = First result
- Tab in code editor = Insert spaces
- Ctrl/Cmd + A in code editor = Select all
Troubleshooting
Nothing Loads
- Check console for errors (F12)
- Verify server running on port 8080
- Check URL is http://localhost:8080/playground/
Component Won't Add
- May not be implemented yet
- Check console for import errors
- Try a different component
Properties Not Showing
- Click component again to select
- Some components have no attributes
- Check properties panel on right
Code Export Empty
- Add components to canvas first
- Components must be on canvas to export
Code Changes Not Applying โจ NEW!
- Check status message for errors
- Ensure HTML is well-formed (no unclosed tags)
- Look for parser errors in red status bar
- Try "View" mode first to see current code
Component Badges Not Showing
- Badges appear on hover and selection
- Check if component is properly added
- Try clicking component to select it
What's Next?
After testing:
Files
index.html- Main pageplayground.mjs- Entry pointcomponent-registry.json- Component metadatacomponents/- Playground components (5)styles/playground.css- All styling
Architecture
- Zero Build: No compilation needed
- ES Modules: Native browser imports
- Web Components: Custom elements
- PAN Bus: Message-based communication
- Bidirectional Sync: Visual โ Code in real-time
- Live Editing: Edit mode with instant feedback
- Syntax Highlighting: GitHub-style code display
Learn More
- TESTING.md - Full testing checklist
- PLAYGROUND-IMPLEMENTATION.md - Technical details
- PLAYGROUND-STATUS.md - Current status
Status: ๐ข Ready to Test Build: Complete Server: Running Just open http://localhost:8080/playground/ and start clicking!