Menu

Why I Replaced lsof with a Rust-Based "Sniper" Button
📰
0

Why I Replaced lsof with a Rust-Based "Sniper" Button

DEV Community·Arpit Sarang·about 1 month ago
#JB0JK3fh
#tauri#rust#devtool#software#system#recoil
Reading 0:00
15s threshold

Every developer has a "favorite" annoying workflow. Mine was hunting down zombie processes that refused to release my local dev ports. If you've ever typed this into your terminal for the 5th time in an hour, you know the pain: lsof -i :3000 kill -9 <PID> Enter fullscreen mode Exit fullscreen mode I decided to automate this friction away by building Recoil—a tactical system monitor for macOS that lets you "snipe" these processes directly from your system tray. The Goal: High Performance, Low Overhead When building a system utility that stays open all day, Electron was out of the question. I didn't want a 150MB helper app just to kill a process. I chose Tauri v2 because it allowed me to: Leverage the System Webview: Resulting in a ~5MB bundle. Use Rust for System Tasks: Directly interfacing with system APIs for telemetry and process management.…

Continue reading — create a free account

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

Read More