{"id":50876119,"url":"https://github.com/bujosa/theport","last_synced_at":"2026-06-15T10:01:35.609Z","repository":{"id":349851529,"uuid":"1162422197","full_name":"bujosa/ThePort","owner":"bujosa","description":"Native macOS port \u0026 process monitor for developers. View active ports, identify processes, and kill operations — all from a lightweight SwiftUI app.","archived":false,"fork":false,"pushed_at":"2026-04-07T20:00:56.000Z","size":891,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-17T14:58:29.678Z","etag":null,"topics":["developer-tools","macos","macos-app","network-monitoring","port-scanner","process-monitor","swift","swiftui","tuist"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bujosa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-20T08:42:26.000Z","updated_at":"2026-04-07T20:01:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bujosa/ThePort","commit_stats":null,"previous_names":["bujosa/theport"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bujosa/ThePort","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bujosa%2FThePort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bujosa%2FThePort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bujosa%2FThePort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bujosa%2FThePort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bujosa","download_url":"https://codeload.github.com/bujosa/ThePort/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bujosa%2FThePort/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34357282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developer-tools","macos","macos-app","network-monitoring","port-scanner","process-monitor","swift","swiftui","tuist"],"created_at":"2026-06-15T10:01:33.745Z","updated_at":"2026-06-15T10:01:35.594Z","avatar_url":"https://github.com/bujosa.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"ThePort/Resources/Assets.xcassets/AppIcon.appiconset/icon_256x256.png\" width=\"128\" height=\"128\" alt=\"ThePort Icon\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eThePort\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eA native macOS port and process monitor for developers.\u003c/strong\u003e\u003cbr\u003e\n  View active ports, identify processes, kill operations, and track specific ports — all from a lightweight menubar-friendly app.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/bujosa/ThePort/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/bujosa/ThePort?style=flat-square\u0026color=blue\" alt=\"Release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/bujosa/ThePort/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/downloads/bujosa/ThePort/total?style=flat-square\u0026color=green\" alt=\"Downloads\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/platform-macOS%2014%2B-lightgrey?style=flat-square\" alt=\"Platform\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/swift-5.9-orange?style=flat-square\" alt=\"Swift\"\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/bujosa/ThePort?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## Download\n\nGrab the latest `.dmg` from [**Releases**](https://github.com/bujosa/ThePort/releases/latest), mount it, and drag **ThePort** into your Applications folder. No brew, no signing headaches — just open and go.\n\n## Why ThePort?\n\nEver run `lsof -i :3000` just to find out what's hogging a port? ThePort replaces that workflow with a real-time UI that shows every active TCP connection on your Mac, which process owns it, and lets you kill it in one click.\n\n## Features\n\n| Feature | Description |\n|---|---|\n| **Port Monitoring** | Real-time view of all active TCP ports on your system |\n| **Process Identification** | See which processes (Node, Chrome, Postgres, etc.) own each port |\n| **Kill Processes** | Terminate processes directly — graceful (SIGTERM) or force (SIGKILL) |\n| **Search \u0026 Filter** | Filter by state (Listening, Established) or search by port, process name, or address |\n| **Watchlist** | Track specific ports you care about with custom names and priority levels |\n| **Auto-Refresh** | Automatic updates every 5 seconds (configurable) |\n| **Light \u0026 Dark Theme** | Follows system appearance or toggle manually |\n| **Low Resource Usage** | ~94 MB memory, 0% CPU when idle |\n\n## Performance\n\nThePort is designed to stay out of your way. Here's what to expect:\n\n| Metric | Value |\n|--------|-------|\n| **Memory (idle)** | ~94 MB |\n| **CPU (idle)** | 0% |\n| **CPU (during refresh)** | \u003c 1% spike for ~100ms |\n| **Refresh interval** | Every 5 seconds (configurable) |\n| **App size (DMG)** | ~5 MB |\n| **Startup time** | \u003c 1 second |\n| **Background scanning** | `netstat` + `lsof` via `Process()` — no persistent daemons |\n| **Network usage** | None — all data comes from local system commands |\n| **Disk usage** | Minimal — only a small SQLite file for the watchlist |\n\n\u003e ThePort spawns short-lived `netstat` and `lsof` subprocesses on each refresh cycle. Between cycles, CPU usage drops to 0%. No background daemons, no polling threads, no wake locks.\n\n## How It Works\n\nThePort uses two macOS system commands under the hood:\n\n1. **`netstat -an -p tcp`** — lists all active TCP connections and listening ports\n2. **`lsof -i -P -n -F`** — enriches each port entry with process info (PID, name, user)\n\nThese run on a configurable timer and feed a clean, filterable SwiftUI interface.\n\n## Tech Stack\n\n| Component | Technology |\n|-----------|-----------|\n| Language | Swift 5.9+ |\n| UI | SwiftUI |\n| Database | SQLite via [GRDB.swift](https://github.com/groue/GRDB.swift) 7.x |\n| Port Scanning | `netstat` · `lsof` |\n| Build System | [Tuist](https://tuist.io) |\n| CI/CD | GitHub Actions |\n| Distribution | DMG |\n\n## Build from Source\n\n### Prerequisites\n\n- macOS 14.0 (Sonoma) or later\n- Xcode 15+\n- [Tuist](https://tuist.io) 4.x (`brew tap tuist/tuist \u0026\u0026 brew install tuist`)\n\n### Quick Start\n\n```bash\ngit clone https://github.com/bujosa/ThePort.git\ncd ThePort\n\n# Install dependencies \u0026 generate Xcode project\nmake install\nmake generate\n\n# Build and run (debug)\nmake build\nmake run\n```\n\n### All Commands\n\n| Command | Description |\n|---------|------------|\n| `make install` | Install Swift package dependencies |\n| `make generate` | Generate Xcode workspace via Tuist |\n| `make build` | Build debug configuration |\n| `make run` | Build and launch the app |\n| `make release` | Build release configuration |\n| `make dmg` | Create distributable `.dmg` |\n| `make clean` | Clean build artifacts and regenerate |\n| `make edit` | Open Tuist project for editing |\n| `make icons` | Regenerate app icons |\n\n## Project Structure\n\n```\nThePort/\n├── Project.swift                    # Tuist project definition\n├── Tuist/Package.swift              # Dependencies (GRDB.swift)\n├── Makefile                         # Build automation\n├── .github/workflows/release.yml    # CI/CD — builds DMG on tag push\n├── scripts/\n│   ├── create-dmg.sh               # DMG packaging script\n│   └── generate-icons.swift         # App icon generator\n└── ThePort/\n    ├── Sources/\n    │   ├── ThePortApp.swift         # App entry point\n    │   ├── Models/                  # Data models (PortInfo, ProcessInfo, etc.)\n    │   ├── Services/\n    │   │   ├── PortService.swift    # Port scanning via netstat/lsof\n    │   │   └── DatabaseService.swift # SQLite via GRDB (watchlist persistence)\n    │   ├── Theme/                   # Light/Dark theme system\n    │   └── Views/\n    │       ├── ContentView/         # Root navigation\n    │       ├── Sidebar/             # Navigation sidebar\n    │       ├── PortList/            # Port listing with filters\n    │       ├── Watchlist/           # Watchlist management\n    │       ├── ProcessDetail/       # Process details modal\n    │       └── Components/          # Reusable UI components\n    └── Resources/\n        └── Assets.xcassets/         # App icons \u0026 colors\n```\n\n## Data Storage\n\nWatchlist data is stored locally in a SQLite database:\n\n```\n~/Library/Application Support/ThePort/db.sqlite\n```\n\nNo cloud services, no accounts, no telemetry. Everything stays on your machine.\n\n## Contributing\n\n1. Fork the repo\n2. Create a feature branch (`git checkout -b feature/awesome-thing`)\n3. Commit your changes\n4. Push and open a Pull Request\n\n## License\n\nMIT License — see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbujosa%2Ftheport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbujosa%2Ftheport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbujosa%2Ftheport/lists"}