How seoheejung/what-the-port-win works
What the Port for Windows is a local Windows tray app for finding development servers, monitoring their process-tree resources, and safely reviewing or stopping idle servers. The principal flow is tray launch → periodic scan and aggregation → panel views, history and alerts → optional cleanup or user-triggered project actions; a companion CLI lists servers and registers project links. The README documents cleanup, settings, alerts, localization, session/preview links and CLI capabilities. Edges are limited to calls shown in excerpts or relationships explicit in the README; unsampled storage and some UI routes are represented without speculative links.
Main entry points: Panel.cs Panel and workflows · Scanner.cs Server scanner · App/Program.cs App startup · Cli/Program.cs Command-line interface
Components 18
App runtime
- Windows tray
src/App/TrayIcon.cs - Instance activation
src/App/InstanceActivation.cs - App startup
src/App/Program.cs
Server detection
- Server scanner
src/Core/Scanner.cs - Windows process APIs
src/Core/Native.cs - Safety and warnings
src/Core/Policy.cs - Server models
src/Core/Models.cs
Panel experience
- Panel and workflows
src/App/Panel.cs - Resource charts
src/App/Chart.cs - Panel placement
src/App/PanelPlacement.cs - Localization
src/App/Strings.cs - Tooltip conversion
src/App/ToolTipTextConverter.cs
User actions
- Local settings and links
src/Core/Storage.cs - Project launch actions
src/Core/Launchers.cs - Windows shell
User interfaces
- Command-line interface
src/Cli/Program.cs - Demo snapshots
src/App/Demo.cs
Other components
- User
Connections 22
- User → Windows tray: clicks or invokes
README.md - Windows tray → App startup: signals activation
- App startup → Instance activation: checks instance
src/App/Program.cs - App startup → Panel and workflows: creates and starts
src/App/Program.cs - App startup → Demo snapshots: creates demo data
src/App/Program.cs - Panel and workflows → Windows tray: uses tray controls
src/App/Panel.cs - Panel and workflows → Server scanner: scans servers
src/App/Panel.cs - Server scanner → Windows process APIs: reads process data
src/Core/Scanner.cs - Server scanner → Safety and warnings: applies process rules
src/Core/Scanner.cs - Server scanner → Server models: produces snapshots
- Panel and workflows → Safety and warnings: selects cleanup targets
src/App/Panel.cs - Panel and workflows → Local settings and links: loads and saves
- Panel and workflows → Resource charts: shows resource history
src/App/Panel.cs - Panel and workflows → Panel placement: positions window
src/App/Panel.cs - Panel and workflows → Localization: translates interface
src/App/Panel.cs - Panel and workflows → Tooltip conversion: formats tooltips
src/App/Panel.cs - Panel and workflows → Project launch actions: invokes project actions
src/App/Panel.cs - Project launch actions → Windows shell: opens URL or terminal
src/Core/Launchers.cs - User → Command-line interface: runs commands
README.md - Command-line interface → Server scanner: scans for list
src/Cli/Program.cs - Command-line interface → Local settings and links: reads settings and saves links
src/Cli/Program.cs - Command-line interface → Windows shell: opens app
src/Cli/Program.cs