Skip to content

Repository files navigation

Portview

A focused macOS window for previewing local websites at iPhone viewport sizes.

The current build opens the preview as a flush, full-size iPhone canvas without extra app chrome. The toolbar is being redesigned separately. The app uses SwiftUI and the system WKWebView; it does not bundle Chromium.

Features

  • Localhost, LAN, and HTTPS URL support
  • Portrait iPhone 13 through iPhone 17 viewport presets
  • Full-size 402 x 874 iPhone 17 canvas by default
  • URL entry directly beneath the viewport
  • Fit-to-window scaling when the window is resized
  • Blank canvas on launch

Requirements

  • macOS 14 or newer
  • Xcode Command Line Tools with Swift 6

Run

./script/build_and_run.sh

To launch with a specific URL:

PORTBROWSER_URL=http://localhost:3000 ./script/build_and_run.sh

The app bundle is generated at dist/Portview.app.

About

Portview — a focused macOS window for previewing local websites at iPhone viewport sizes.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages