|
| Category | Device Model | Key Hardware Features | Aspect Ratio |
|---|---|---|---|
| iOS / Apple | iPhone 16 Pro | Dynamic Island, ultra-thin borders, safe-area insets | 19.5:9 |
| iPhone 16 | Dynamic Island, standard bezels | 19.5:9 | |
| iPhone 12 Pro | Classic camera notch | 19.5:9 | |
| iPhone 11 | Standard liquid-retina bezel, wide notch | 19.5:9 | |
| iPhone SE | Home button, classic top/bottom header bars | 16:9 | |
| iPad Pro | Symmetric tablet bezels, large canvas | 4:3 | |
| iPad Air | Standard tablet bezels | 4:3 | |
| iPad Mini | Compact tablet display | 4:3 | |
| Android / Google | Google Pixel 9 | Center circular punch-hole camera | 19.5:9 |
| Google Pixel Fold | Inner folding display with subtle crease overlay | 6:5 | |
| Android / Samsung | Samsung S25 Ultra | Sharp titanium squared corners, punch-hole | 19.5:9 |
| Samsung S20 Ultra | Soft rounded corners, punch-hole | 20:9 | |
| Samsung Galaxy A55 | Mid-range bezel body, punch-hole | 19.5:9 | |
| Smart Hubs & Screens | Microsoft Surface 7 | Thick hybrid computing bezels | 3:2 |
| Google Nest Hub | Desktop smart hub stand with frame bezels | 16:9 |
Installation
WebFrame Plus is fully compatible with VS Code, Antigravity, VSCodium, Eclipse Theia, and any other IDE supporting VS Code extensions.
- Open your IDE's Extensions panel (
Ctrl+Shift+XorCmd+Shift+X). - Search for
"WebFrame Plus". - Click Install.
How to Use
1. Launching the Preview
- Click the WebFrame Plus icon in your IDE's Activity Bar.
- The preview workbench launches automatically inside the side panel or editor view, scans for running development servers, and immediately renders the device viewport!
- If multiple local servers are running, choose your active port or input a public live URL from the toolbar's configuration settings.
2. Mockup Controls & Tool Bar
The top workbench control bar lets you customize your preview:
- Device Selector: Swap the physical hardware mockup instantly.
- Scale Menu: Zoom the device frame. Select Fit to make the device scale dynamically as you split or resize your editor pane.
- Refresh Trigger: Manually reload the active web frame.
- Dark/Light Mode: Toggle the status bar and browser canvas color scheme.
- Orientation Toggle: Rotate the phone between Portrait and Landscape layout.
3. Assistive Navigation Panel
Inside the preview mockup, you will see a subtle, floating cog icon at the middle-left of the screen:
- Repositioning: Click and drag the cog to move the panel vertically. Upon release, it automatically snaps to the closest horizontal screen edge (left or right) to avoid blocking content.
- Expanding: Click the cog to grow the pill vertically, revealing Go Back (←), Go Forward (→), and Reload (⟳) buttons.
- Frosted Glass Design: Dark semi-transparent frosted styling ensures high contrast and visibility on both dark and light web pages.
Under The Hood
To bypass iframe security sandboxes and keep your local dev environment running cleanly, WebFrame Plus implements a lightweight proxy architecture:
[ IDE Preview Tab ] <---> [ Local HTTP Reverse Proxy ] <---> [ Your Local Dev Server ]
| |
(Injected Script) (Cookie & Header Rewriting)
| |
[ Navigation Controls ] [ Auth Cookies Persisted ]
- Reverse Proxying: The extension runs a sandboxed local proxy server. When it loads your local web application, it rewrites request and response headers (stripping strict CSP frame block headers and modifying
set-cookiedomains). - Session Persistence: Login cookies are stored and re-mapped dynamically, meaning you stay signed in even when swapping mockups or reloading the extension.
- Script Injection: A custom runtime script is injected into the HTML document. This script sets up a communication bridge to listen to history nav triggers, and runs a
MutationObserveron the body to keep the Assistive Touch panel alive during client-side hydration or HMR.
Development
Prerequisites
- Node.js (version 18 or above)
- VS Code (version 1.90.0 or above)
Setup & Compilation
- Clone the repository.
- Install project dependencies:
npm install - Compile TypeScript sources:
npm run compile - Press
F5to launch the Extension Development Host to test your changes.
Open Source & Contributing
Thank you for choosing WebFrame Plus!
This project is completely open source and community-driven. If you encounter any bugs, have feature requests, or want to contribute to the codebase:
- Report Issues: Submit a bug report or request features on the GitHub Issues page.
- Contribute: Pull Requests (PRs) are highly encouraged! Feel free to fork the repository and submit your improvements.
Your support and contributions help make WebFrame Plus better for everyone.
Check Out My Other Extensions
If you like WebFrame Plus, check out:
- Comment Cleaner Pro - A high-performance extension powered by a Python engine to instantly find, analyze, and remove comments from your code across 33+ programming languages.
License
This project is licensed under the GPL-3.0 License.
