Skip to content
gredevelopmentPublic

About

macOS SwiftUI app for switching between local dev projects with portless: start and stop servers, use stable HTTPS localhost URLs, and grab a signed DMG from Releases or build from source with XcodeGen.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Switcher

Switcher is a macOS app for running multiple local web projects through portless. It starts and stops dev servers, manages the portless HTTPS proxy, and gives each project a stable URL like https://your-slug.localhost:1355.

Features

  • Add projects with a directory path and run command
  • Start and stop dev servers from a simple project list
  • Automatic framework detection (Next.js, Nuxt, Astro, Remix, Svelte, Angular, Vite, Laravel, Mintlify, React Native, Go, Rust, Node, and more)
  • Custom project icons (SF Symbols or images)
  • Live log output per project
  • Optional sync of project data via iCloud Documents (when enabled in a signed build)
  • Clean shutdown of background processes when you quit the app

Download

Pre-built releases (.dmg) are on the Releases page. Install by opening the DMG and dragging Switcher to Applications.

You still need portless installed separately.

If macOS blocks the app (Gatekeeper)

Release builds are Developer ID–signed but may not be notarized yet. If macOS says the app cannot be checked for malicious software, use the app in Applications (after copying it out of the DMG):

  1. Right-click (or Control-click) Switcher.app: click the application, not the disk image.
  2. Choose Open from the menu (not double-clicking the icon).
  3. In the dialog, click Open again to confirm.

macOS remembers this choice for Switcher on your Mac, so you can open it normally next time.

Requirements

Build from source

Contributors and developers can build locally with:

See docs/RELEASE.md for signed release and DMG steps.

git clone https://github.com/gre-dev/Switcher.git
cd Switcher
xcodegen generate
open Switcher.xcodeproj

Build and run the Switcher scheme in Xcode.

Using Switcher

  1. Install portless if you have not already; see the portless README (npm install -g portless is the usual approach).
  2. Launch Switcher and add a project: choose the project folder and the command you normally use to start the dev server (for example npm run dev).
  3. Switcher assigns an app port in the 4000–4999 range and builds the portless command for you.
  4. Start the project; Switcher ensures the portless proxy is running on port 1355 (HTTPS) and opens the project’s https://<slug>.localhost:1355 URL when appropriate.

Project list and settings are stored locally under Application Support. iCloud sync requires the appropriate entitlements and container in a signed build.

Project layout

Path Purpose
Switcher/ SwiftUI app source
project.yml XcodeGen project definition
docs/RELEASE.md Maintainer release and DMG pipeline
ExportOptions.plist Developer ID export options for xcodebuild -exportArchive
scripts/release.sh Archive, export, and DMG helper script

Generated Switcher.xcodeproj is not committed; run xcodegen generate after cloning.

Contributing

Issues and pull requests are welcome. Please keep changes focused and match existing Swift and UI patterns in the codebase.

License

MIT. See LICENSE.

About

macOS SwiftUI app for switching between local dev projects with portless: start and stop servers, use stable HTTPS localhost URLs, and grab a signed DMG from Releases or build from source with XcodeGen.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages