device-frame-pro
v1.0.9
Published
π Ultimate realistic device emulator with native-like frames for React, Vue, Angular, Next.js and all web frameworks
Maintainers
Readme
π DeviceFrame Pro
The ultimate realistic device emulator with native-like frames for all frontend frameworks.
β¨ Features
- π± 30+ Realistic Device Frames - iOS, Android, Tablets with accurate bezels, notches, and home indicators
- π¨ Native-Like UI - Authentic iOS and Android styling
- β‘ High Performance - Optimized rendering with GPU acceleration
- π Live Reload - Auto-sync across all devices
- π Universal Support - Angular, Next.js, Nuxt, Svelte, Ionic, and more
- π Chrome DevTools-Style Zoom - Perfect responsive scaling with zoom controls
- πΈ Screenshot Capture - One-click screenshots with auto-download
π¦ Installation
Global (Recommended)
npm install -g device-frame-proProject
npm install --save-dev device-frame-proNPX (No installation)
npx device-frame-proπ Quick Start
# Start your app
npm start
# In another terminal
npx device-frame-proπ± Supported Devices
iOS (13 devices)
- iPhone 15 Pro Max / Pro / Plus / Standard
- iPhone 14 Pro Max / Pro
- iPhone 13 / 12
- iPhone SE (2022)
- iPad Pro 12.9" / 11"
- iPad Air
- iPad Mini
Android (46 devices)
Samsung Galaxy
- S24 Ultra / S24+ / S24
- S23 Ultra / S23
- S22 Ultra
- S21 Ultra
- A54 / A34 / A24 / A14 (Budget series)
- Z Fold 5 / Z Flip 5 (Foldables)
Google Pixel
- Pixel 8 Pro / Pixel 8
- Pixel 7 Pro / Pixel 7
- Pixel 6a
Xiaomi / Redmi / POCO
- Xiaomi 14 Pro / 13 Pro / 12
- Redmi Note 13 Pro / 12 Pro / 11
- POCO X5 Pro
OnePlus
- OnePlus 12 / 11 / 10 Pro
- Nord 3
Huawei
- P60 Pro / P50 Pro
- Mate 50 Pro
- Nova 11
Oppo
- Find X6 Pro
- Reno 10 Pro
- A98
Vivo
- X90 Pro
- V29 / Y100
Realme
- 11 Pro+ / 10 Pro
Tablets (8 devices)
- iPad Pro 12.9" / 11"
- iPad Air / Mini
- Samsung Galaxy Tab S9 Ultra / S9
- Xiaomi Pad 6
- Huawei MatePad Pro
Total: 63+ devices
π οΈ CLI Options
npx deviceframe-pro [options]
Options:
-p, --port <number> Preview server port (default: 4300)
-t, --target <url> Target app URL (auto-detected)
-f, --framework <name> Framework type
--qr Generate QR code for mobile testing
--perf Enable performance monitoring
--screenshots Enable screenshot capture (requires Puppeteer)
-d, --devices <list> Filter specific devices
--no-open Don't auto-open browserπ Examples
Basic Usage
npx device-frame-proWith Performance Monitoring
npx device-frame-pro --perf --qrSpecific Devices Only
npx device-frame-pro --devices iphone-15-pro-max,ipad-pro-12,galaxy-s24-ultraCustom Port & Target
npx device-frame-pro --port 5000 --target http://localhost:8080Enable Screenshots
npm install puppeteer
npx deviceframe-pro --screenshotsβ¨οΈ Keyboard Shortcuts
- Cmd/Ctrl + R - Reload all devices
- Arrow Up/Down - Navigate between devices
- + - Zoom in
- β - Zoom out
- 0 - Fit to screen (auto-zoom)
π Zoom Controls
DeviceFrame Pro includes Chrome DevTools-style zoom controls:
- Auto-Fit - Automatically scales devices to fit your viewport
- Manual Zoom - 25% to 200% zoom range
- Zoom Controls - Visual controls (bottom-right corner):
- β Zoom out
- + Zoom in
- Fit Auto-fit to screen
- Zoom % Current zoom level
No scrolling required! All devices fit perfectly in your viewport.
π― Framework Examples
Angular
ng serve
npx deviceframe-pro --framework angularIonic
ionic serve
npx device-frame-pro --framework ionicRequirements
npm install puppeteerUsage
- Select any device from the list
- Click the πΈ button above the device
π Key Features Explained
Realistic Device Frames
- Accurate screen dimensions and pixel ratios
- Real device bezels and rounded corners
- Notches and Dynamic Islands (iPhone 14/15 Pro)
- Home indicators (iOS)
- Status bars with realistic icons
Live Preview
- Real-time iframe rendering
- WebSocket-based auto-reload
- Instant URL updates
- Multiple devices simultaneously
Performance Optimized
- GPU-accelerated rendering
- Efficient iframe management
- Smart zoom calculations
- Container-based responsive scaling
Device too large/small?
- Use the Fit button (bottom-right) to auto-adjust
- Manually zoom with + / β buttons
- Zoom range: 25% - 200%
Port already in use?
npx device-frame-pro --port 5000Auto-detection not working?
npx device-frame-pro --target http://localhost:3000π€ Contributing
Contributions welcome! Please open an issue or PR.
π License
MIT Β© 2026
π Star on GitHub
If you find this useful, please star the repo!
Made with β€οΈ for developers who love pixel-perfect device testing
