<?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: MoLines Designs</title>
    <description>The latest articles on DEV Community by MoLines Designs (@molinesdesigns).</description>
    <link>https://dev.to/molinesdesigns</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%2F3892965%2Ff89f50e2-42c1-425f-a821-cdaeffeda0c4.png</url>
      <title>DEV Community: MoLines Designs</title>
      <link>https://dev.to/molinesdesigns</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/molinesdesigns"/>
    <language>en</language>
    <item>
      <title>I built a visual TUI for Homebrew with React and Ink</title>
      <dc:creator>MoLines Designs</dc:creator>
      <pubDate>Wed, 22 Apr 2026 18:17:23 +0000</pubDate>
      <link>https://dev.to/molinesdesigns/i-built-a-visual-tui-for-homebrew-with-react-and-ink-38fo</link>
      <guid>https://dev.to/molinesdesigns/i-built-a-visual-tui-for-homebrew-with-react-and-ink-38fo</guid>
      <description>&lt;h2&gt;
  
  
  Why I built Brew-TUI
&lt;/h2&gt;

&lt;p&gt;If you're a macOS developer, you probably use &lt;a href="https://brew.sh" rel="noopener noreferrer"&gt;Homebrew&lt;/a&gt; every day. But memorizing all the &lt;code&gt;brew&lt;/code&gt; commands gets old — especially when you just want to see what's outdated, upgrade a few packages, or check if a service is running.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Brew-TUI&lt;/strong&gt;: a full visual terminal UI for Homebrew.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it looks like
&lt;/h2&gt;

&lt;p&gt;It's a keyboard-driven TUI built with &lt;strong&gt;React 18 + Ink 5&lt;/strong&gt; (terminal renderer) and &lt;strong&gt;Zustand&lt;/strong&gt; for state management. You get:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dashboard&lt;/strong&gt; — package stats, outdated counts, services, system info at a glance&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Installed&lt;/strong&gt; — browse and filter all formulae and casks with version info&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search&lt;/strong&gt; — find and install packages without leaving the TUI&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Outdated&lt;/strong&gt; — see version diffs, upgrade one by one or all at once&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Services&lt;/strong&gt; — start/stop/restart Homebrew services&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Doctor&lt;/strong&gt; — run &lt;code&gt;brew doctor&lt;/code&gt; and see warnings&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Package Info&lt;/strong&gt; — dependencies, caveats, quick actions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Navigate with &lt;code&gt;1-0&lt;/code&gt; to jump to views, &lt;code&gt;j/k&lt;/code&gt; to scroll, &lt;code&gt;/&lt;/code&gt; to search, &lt;code&gt;Tab&lt;/code&gt; to cycle. Press &lt;code&gt;L&lt;/code&gt; to switch between English and Spanish.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tech stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;TypeScript&lt;/strong&gt; (strict mode, ESM-only)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;React 18&lt;/strong&gt; for the component tree&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ink 5&lt;/strong&gt; as the terminal renderer (&lt;code&gt;&amp;lt;Box&amp;gt;&lt;/code&gt; = flexbox, &lt;code&gt;&amp;lt;Text&amp;gt;&lt;/code&gt; = styled output)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zustand&lt;/strong&gt; for state management&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;tsup&lt;/strong&gt; for building&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The data flow is: Views → Zustand stores → brew-api → Parsers → brew CLI (spawn). Streaming operations (install, upgrade) use an AsyncGenerator that yields lines in real time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pro features
&lt;/h2&gt;

&lt;p&gt;There's also a freemium tier with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Profiles&lt;/strong&gt; — export/import your Homebrew setup across machines&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smart Cleanup&lt;/strong&gt; — find orphan packages and reclaim disk space&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;History&lt;/strong&gt; — track every install/uninstall/upgrade&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security Audit&lt;/strong&gt; — scan packages against the OSV vulnerability database&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BrewBar&lt;/strong&gt; — a macOS menu bar companion app (Swift 6 / SwiftUI) that shows outdated counts and lets you upgrade from the menu bar&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# npm&lt;/span&gt;
npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; brew-tui

&lt;span class="c"&gt;# Homebrew&lt;/span&gt;
brew tap MoLinesGitHub/tap
brew &lt;span class="nb"&gt;install &lt;/span&gt;brew-tui

&lt;span class="c"&gt;# Run without installing&lt;/span&gt;
npx brew-tui
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/MoLinesGitHub/Brew-TUI" rel="noopener noreferrer"&gt;MoLinesGitHub/Brew-TUI&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;npm:&lt;/strong&gt; &lt;a href="https://www.npmjs.com/package/brew-tui" rel="noopener noreferrer"&gt;brew-tui&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Feedback, issues, and stars welcome! 🍺&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>terminal</category>
      <category>react</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
