<?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: MZP</title>
    <description>The latest articles on DEV Community by MZP (@splyy).</description>
    <link>https://dev.to/splyy</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%2F3806152%2Faf8f5625-bf62-418c-bbcd-9ae83cc3eda4.jpg</url>
      <title>DEV Community: MZP</title>
      <link>https://dev.to/splyy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/splyy"/>
    <language>en</language>
    <item>
      <title>I Built a macOS Menu Bar App to Track My Freelance Time — Here's How</title>
      <dc:creator>MZP</dc:creator>
      <pubDate>Wed, 04 Mar 2026 16:27:27 +0000</pubDate>
      <link>https://dev.to/splyy/i-built-a-macos-menu-bar-app-to-track-my-freelance-time-heres-how-4bil</link>
      <guid>https://dev.to/splyy/i-built-a-macos-menu-bar-app-to-track-my-freelance-time-heres-how-4bil</guid>
      <description>&lt;p&gt;As a freelance developer juggling multiple clients, I had one recurring problem: &lt;strong&gt;I never really knew where my time was going.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I tried spreadsheets. I tried Toggl. I tried telling myself "I'll write it down later." You know how that ends.&lt;/p&gt;

&lt;p&gt;So I did what any developer does when they can't find the perfect tool — I built my own. Meet &lt;strong&gt;KronoBar&lt;/strong&gt; 👋&lt;/p&gt;




&lt;h2&gt;
  
  
  What is KronoBar?
&lt;/h2&gt;

&lt;p&gt;KronoBar is a lightweight &lt;strong&gt;macOS menu bar app&lt;/strong&gt; that lets you log time entries per client and project, without ever leaving your workflow. It lives quietly in your tray, one click away.&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%2F7jxhq6c0b71187azivn7.png" 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%2F7jxhq6c0b71187azivn7.png" alt="KronoBar screenshot showing today's entries with time split across clients" width="800" height="1245"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No account. No cloud. No subscription. Just a clean local app that minds its own business.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why not just use an existing tool?
&lt;/h2&gt;

&lt;p&gt;Honestly? Most time trackers are either too heavy, too expensive, or require you to live inside a browser tab. I wanted something that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Doesn't interrupt my flow&lt;/strong&gt; — a quick &lt;code&gt;Cmd + Shift + T&lt;/code&gt; is all it takes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stays local&lt;/strong&gt; — all data lives on my machine (SQLite, no sync, no tracking)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shows me the right info fast&lt;/strong&gt; — today's breakdown, weekly stats, nothing more&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Features (the good stuff)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🎨 &lt;strong&gt;Color-coded clients&lt;/strong&gt; — see at a glance where your day went&lt;/li&gt;
&lt;li&gt;📅 &lt;strong&gt;Today / History / Stats views&lt;/strong&gt; — browse by day, week, month, or year&lt;/li&gt;
&lt;li&gt;📤 &lt;strong&gt;CSV export&lt;/strong&gt; — for invoicing or just your own records&lt;/li&gt;
&lt;li&gt;⌨️ &lt;strong&gt;Global shortcut&lt;/strong&gt; — &lt;code&gt;Cmd + Shift + T&lt;/code&gt; toggles the window from anywhere&lt;/li&gt;
&lt;li&gt;🌙 &lt;strong&gt;Dark mode&lt;/strong&gt; — obviously&lt;/li&gt;
&lt;li&gt;🔒 &lt;strong&gt;100% local&lt;/strong&gt; — your data never leaves your machine&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Tech stack
&lt;/h2&gt;

&lt;p&gt;I used this project as an opportunity to experiment with a stack I don't usually touch in my day-to-day (I'm mainly a PHP/Symfony dev):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Tech&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Desktop shell&lt;/td&gt;
&lt;td&gt;Electron + Electron Forge&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;UI&lt;/td&gt;
&lt;td&gt;React + TypeScript&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build&lt;/td&gt;
&lt;td&gt;Vite&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Database&lt;/td&gt;
&lt;td&gt;SQLite via &lt;code&gt;sql.js&lt;/code&gt; (WASM — zero native deps!)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Styling&lt;/td&gt;
&lt;td&gt;CSS Modules&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The most interesting decision was using &lt;strong&gt;sql.js&lt;/strong&gt; instead of a native SQLite binding. It runs SQLite compiled to WebAssembly, which means no native Node modules to deal with — packaging and distribution become &lt;em&gt;much&lt;/em&gt; simpler.&lt;/p&gt;




&lt;h2&gt;
  
  
  The WASM SQLite trick
&lt;/h2&gt;

&lt;p&gt;If you've ever tried bundling a native Node addon in an Electron app, you know the pain. Platform-specific builds, &lt;code&gt;node-gyp&lt;/code&gt; nightmares, ARM vs x64 headaches.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sql.js&lt;/code&gt; sidesteps all of that. The database runs entirely in WASM inside the renderer process. The tradeoff: you manage persistence yourself (serialize to disk on save). For a single-user desktop app with small datasets, it's a perfect fit.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Persisting the DB is just:&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;export&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="nx"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writeFileSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;dbPath&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;data&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Simple. Clean. No native deps.&lt;/p&gt;




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

&lt;p&gt;This started as a weekend experiment and has become my daily driver. Here's what's coming:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] &lt;strong&gt;Invoicing tool integration&lt;/strong&gt; — connect KronoBar directly to your billing workflow&lt;/li&gt;
&lt;li&gt;[ ] &lt;strong&gt;External app sync&lt;/strong&gt; — an open interface to push your data to third-party tools (Notion, Airtable, you name it)&lt;/li&gt;
&lt;li&gt;[ ] &lt;strong&gt;Weekly reports&lt;/strong&gt; — get a proper summary of your week, ready to share or archive&lt;/li&gt;
&lt;li&gt;[ ] &lt;strong&gt;Windows&lt;/strong&gt; - maybe conversion for Windows&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Try it / contribute
&lt;/h2&gt;

&lt;p&gt;The project is open source under MIT. If you're a freelancer or consultant dealing with multi-client time tracking, give it a spin — and feel free to open an issue if something doesn't work or if you have ideas.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://github.com/splyy/KronoBar" rel="noopener noreferrer"&gt;github.com/splyy/KronoBar&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/splyy/KronoBar.git
&lt;span class="nb"&gt;cd &lt;/span&gt;KronoBar
&lt;span class="nb"&gt;chmod&lt;/span&gt; +x install.sh
./install.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;⚠️ macOS may block the app on first launch since it's not signed with an Apple Developer cert. The install script handles this automatically with &lt;code&gt;xattr&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;&lt;em&gt;Built with ☕ and mild frustration at existing time trackers.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;code&gt;#electron&lt;/code&gt; &lt;code&gt;#react&lt;/code&gt; &lt;code&gt;#typescript&lt;/code&gt; &lt;code&gt;#macos&lt;/code&gt; &lt;code&gt;#opensource&lt;/code&gt; &lt;code&gt;#freelance&lt;/code&gt; &lt;code&gt;#sqlite&lt;/code&gt; &lt;code&gt;#sideproject&lt;/code&gt;&lt;/p&gt;

</description>
      <category>electron</category>
      <category>react</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
