Menu

Why I Built a 337 KB Native Swift Port Manager Instead of Another 200 MB Electron App
πŸ“°

Why I Built a 337 KB Native Swift Port Manager Instead of Another 200 MB Electron App

DEV Community: swiftΒ·MD Golam RabbaniΒ·4 days ago
#CWoQSpPx
#devtoswift#devto#dev#macos#menu
Long article (452 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Every full-stack developer hits the exact same friction multiple times a day:

Error: listen EADDRINUSE: address already in use :::3000

Enter fullscreen mode

Exit fullscreen mode

You stop what you're building, open a new terminal tab, run lsof -nP -iTCP:3000 -sTCP:LISTEN , squint at the PID, run kill -9 <pid> , and lose your flow. And if you look for a macOS menu-bar utility to handle it, half the options are 200–350 MB Electron wrappers eating 300 MB of RAM just to sit in your menu bar β€” or bundled into $10/month subscriptions.

So I started Kilobyte Labs to compile tiny, native Apple Silicon Swift/AppKit menu-bar utilities with zero Electron and one-time pricing.

How PortPilot Fits in 337 KB

Instead of shipping Chromium + Node.js, PortPilot compiles directly to a stripped native ARM64 Mach-O binary ( swiftc -O -whole-module-optimization -parse-as-library -Xfrontend -disable-reflection-names -Xlinker -dead_strip -Xlinker -x + strip -u -r ):

Machine-parseable port scanning: Uses /usr/sbin/lsof -nP…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.