<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abdullah Tarakji</title>
    <description>The latest articles on DEV Community by Abdullah Tarakji (@abdullahtarakji).</description>
    <link>https://dev.to/abdullahtarakji</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3781803%2F6374e7ed-dc09-4073-95ae-ca2c3dfdd279.png</url>
      <title>DEV Community: Abdullah Tarakji</title>
      <link>https://dev.to/abdullahtarakji</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdullahtarakji"/>
    <language>en</language>
    <item>
      <title>Building PortPilot: A Modern TUI for Port Management</title>
      <dc:creator>Abdullah Tarakji</dc:creator>
      <pubDate>Fri, 20 Feb 2026 15:49:32 +0000</pubDate>
      <link>https://dev.to/abdullahtarakji/building-portpilot-a-modern-tui-for-port-management-2p18</link>
      <guid>https://dev.to/abdullahtarakji/building-portpilot-a-modern-tui-for-port-management-2p18</guid>
      <description>&lt;h1&gt;
  
  
  Building PortPilot: A Modern TUI for Port Management
&lt;/h1&gt;

&lt;p&gt;Ever typed &lt;code&gt;lsof -i :3000 | grep LISTEN&lt;/code&gt; for the hundredth time today? Yeah, me too.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;PortPilot&lt;/strong&gt; – a terminal UI that shows all listening ports on your machine, lets you kill processes with one key, and detects port conflicts.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7wgfl7jl32ggfardlfaw.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7wgfl7jl32ggfardlfaw.gif" alt="Demo" width="800" height="445"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;As a developer juggling multiple services (frontend servers, databases, Redis, Docker containers), I was constantly typing &lt;code&gt;lsof -i&lt;/code&gt; to figure out what was running where. The workflow was painful:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Type &lt;code&gt;lsof -i :3000 | grep LISTEN&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Find the PID&lt;/li&gt;
&lt;li&gt;Type &lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Repeat for the next port&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I needed something &lt;strong&gt;visual but terminal-native&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution
&lt;/h2&gt;

&lt;p&gt;PortPilot is a Go-based TUI built with &lt;a href="https://github.com/charmbracelet/bubbletea" rel="noopener noreferrer"&gt;Bubble Tea&lt;/a&gt; that gives you a real-time dashboard of all listening ports.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;📊 Interactive TUI&lt;/strong&gt; with real-time updates&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;⚡ One-key process killing&lt;/strong&gt; (select, press &lt;code&gt;k&lt;/code&gt;, confirm, done)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🔍 Search/filter&lt;/strong&gt; by port or process name&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🚨 Conflict detection&lt;/strong&gt; (highlights when multiple processes fight for the same port)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;📋 CLI mode&lt;/strong&gt; for scripting (&lt;code&gt;portpilot list --json | jq ...&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;🏷️ Service groups&lt;/strong&gt; (tag ports as "frontend", "backend", "database")&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Tech Stack
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Go&lt;/strong&gt; (fast, single binary, cross-platform)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bubble Tea&lt;/strong&gt; (Elm-architecture TUI framework)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cobra&lt;/strong&gt; (CLI commands)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lip Gloss&lt;/strong&gt; (styling)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No root required – uses &lt;code&gt;lsof&lt;/code&gt; (macOS) or &lt;code&gt;ss&lt;/code&gt; (Linux) under the hood.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;go &lt;span class="nb"&gt;install &lt;/span&gt;github.com/AbdullahTarakji/portpilot/cmd/portpilot@latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then just run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;portpilot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;

&lt;h3&gt;
  
  
  TUI Mode
&lt;/h3&gt;

&lt;p&gt;Launch the interactive UI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;portpilot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Navigate with arrow keys&lt;/li&gt;
&lt;li&gt;Press &lt;code&gt;k&lt;/code&gt; to kill a process&lt;/li&gt;
&lt;li&gt;Press &lt;code&gt;/&lt;/code&gt; to search&lt;/li&gt;
&lt;li&gt;Press &lt;code&gt;q&lt;/code&gt; to quit&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  CLI Mode
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# List all listening ports&lt;/span&gt;
portpilot list

&lt;span class="c"&gt;# Check a specific port&lt;/span&gt;
portpilot check 3000

&lt;span class="c"&gt;# Kill a process on a port&lt;/span&gt;
portpilot &lt;span class="nb"&gt;kill &lt;/span&gt;8080

&lt;span class="c"&gt;# JSON output for scripting&lt;/span&gt;
portpilot list &lt;span class="nt"&gt;--json&lt;/span&gt; | jq &lt;span class="s1"&gt;'.[] | select(.port == 3000)'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Windows support (using &lt;code&gt;netstat&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Docker container detection&lt;/li&gt;
&lt;li&gt;Custom port groups&lt;/li&gt;
&lt;li&gt;Export/import configurations&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It Out
&lt;/h2&gt;

&lt;p&gt;⭐ Star it on GitHub: &lt;a href="https://github.com/AbdullahTarakji/portpilot" rel="noopener noreferrer"&gt;github.com/AbdullahTarakji/portpilot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback and PRs welcome!&lt;/p&gt;

&lt;h1&gt;
  
  
  golang #opensource #devtools #cli
&lt;/h1&gt;

</description>
      <category>devtools</category>
    </item>
  </channel>
</rss>
