explaingit

mayur-25-cd/strays

Analysis updated 2026-05-18

3SwiftAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

A macOS menu-bar app that shows every listening network port grouped by project, plus which AI coding sessions spawned them, so you can safely clean up leftovers.

Mindmap

mindmap
  root((Strays))
    What it does
      Lists open ports
      Groups by project
      Shows AI sessions
    Tech stack
      Swift
      macOS
    Use cases
      Clean up dev servers
      Spot exposed ports
      Track AI session cost
    Audience
      Mac developers
      AI agent users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

See every open network port on your Mac grouped by the project that started it.

USE CASE 2

Safely stop forgotten dev servers with an undo option before the kill happens.

USE CASE 3

Spot ports exposed beyond localhost that might be a security risk.

USE CASE 4

Track which AI coding sessions like Claude Code are running and their rough cost.

What is it built with?

Swift

How does it compare?

mayur-25-cd/straysabdullahselek/swiftpusherbartosk97/dead-process-mate
Stars333
LanguageSwiftSwiftSwift
Last pushed2026-06-24
MaintenanceActive
Setup difficultyeasymoderateeasy
Complexity2/52/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Install via Homebrew cask or download the notarized .dmg, no configuration needed.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Strays is a small Mac app that lives in your menu bar and shows you every network port your computer is currently listening on, grouped by the project folder that started it. If you write code, you probably run local servers all the time, and now AI coding assistants like Claude Code or Codex spin up even more of them in the background. After a while you end up with a pile of leftover processes you cannot account for, and Strays exists to make that mess visible again. The app recognizes common tools such as Vite, Next.js, Node, Flask, Postgres, Redis, and Docker, and labels each port with what it thinks is running there. It also shows whether a port is only reachable from your own machine or exposed more widely on your network, using color coded icons so you can spot a risky open port quickly. Stopping a server is a single click, and ordinary dev servers get a short grace period with an undo option before they are actually shut down, while databases or exposed ports need a confirmation first. Servers that have sat idle for a while are flagged so you can clean them up in one batch. Beyond ports, Strays also shows the AI coding sessions currently running on your machine, grouped by project alongside the ports they created, including which model was used and roughly how much it has cost so far. All of this information is read locally from files already on your computer such as session logs, and nothing is sent anywhere over the network. The app is written in Swift for macOS and works by running simple, unprivileged system commands like lsof and ps rather than needing a background daemon or elevated permissions. It can be installed through Homebrew or as a downloadable app, and it is released under the MIT license.

Copy-paste prompts

Prompt 1
Install Strays with Homebrew and show me how to find what's running on port 3000.
Prompt 2
Explain how Strays decides whether a port is safe to kill or needs confirmation.
Prompt 3
Show me how Strays detects AI coding sessions from Claude Code or Copilot.
Prompt 4
Help me build Strays from source using Xcode and Swift 6.

Frequently asked questions

What is strays?

A macOS menu-bar app that shows every listening network port grouped by project, plus which AI coding sessions spawned them, so you can safely clean up leftovers.

What language is strays written in?

Mainly Swift. The stack also includes Swift.

What license does strays use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is strays to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is strays for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.