<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nidhaahmed on Medium]]></title>
        <description><![CDATA[Stories by Nidhaahmed on Medium]]></description>
        <link>https://medium.com/@nidhaahmed13?source=rss-0ce7b3037bcf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0vVEd65yWPGl78Et</url>
            <title>Stories by Nidhaahmed on Medium</title>
            <link>https://medium.com/@nidhaahmed13?source=rss-0ce7b3037bcf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:41:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nidhaahmed13/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why My Console Logs Weren’t Enough: Building a Desktop Environment Inspector with Neutralinojs (and…]]></title>
            <link>https://medium.com/@nidhaahmed13/why-my-console-logs-werent-enough-building-a-desktop-environment-inspector-with-neutralinojs-and-11bda0a500af?source=rss-0ce7b3037bcf------2</link>
            <guid isPermaLink="false">https://medium.com/p/11bda0a500af</guid>
            <dc:creator><![CDATA[Nidhaahmed]]></dc:creator>
            <pubDate>Thu, 15 Jan 2026 11:54:02 GMT</pubDate>
            <atom:updated>2026-01-15T11:59:01.162Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why My Console Logs Weren’t Enough: Building a Desktop Environment Inspector with Neutralinojs (and Keeping My Sanity) — GSoC 2026</h3><p>We’ve all been there. You’re deep into a project, everything is breaking, and you’re screaming at your screen:</p><blockquote><em>“WHAT IS MY PATH VARIABLE RIGHT NOW?!”</em></blockquote><p><em>My Github Code: </em><a href="https://github.com/nidhaahmed/Local-Development-Environment-Inspector"><em>Here</em></a></p><p>Standard procedure? Open a terminal, type some commands, squint at the wall of text, and repeat. But I thought, why not build a tiny, lightweight desktop app that does the heavy lifting for me? And that’s how the <strong>Local Dev Environment Inspector</strong> was born.</p><p>But wait — before you groan about another Electron app eating 2GB of RAM just to show a list of strings — let me introduce you to <strong>Neutralinojs</strong>.</p><h3>The “Anti-Electron”: Why Neutralinojs?</h3><p>If Electron is a heavy-duty semi-truck, Neutralinojs is a sleek electric scooter. It doesn’t bundle a whole Chromium engine; instead, it uses the browser already built into your OS. The result? A tiny footprint and a very happy CPU.</p><h3>Step 1: Cleaning the House (Boilerplate Purge)</h3><p>Every framework gives you a “Hello World” that includes everything and the kitchen sink. I wanted minimalism. I stripped it down to the essentials:</p><ul><li>index.html: The skeleton.</li><li>main.js: The brain.</li><li>styles.css: The “make it look like I’m a serious developer” part.</li></ul><p>I moved the CSS into its own folder because, let’s be honest, organization is half the battle.</p><h3>Step 2: The “Hands-Shake” (Wiring it Up)</h3><p>Neutralino needs to know when it’s allowed to talk to your computer. You can’t just start bark commands at the OS the millisecond the window opens.</p><pre>/**<br> * The handshake: Connects the JS code to the native OS process. <br> */<br>Neutralino.init();<br>/**<br> * Basic Hygiene: Make sure the app actually dies when you close it.<br> */<br>Neutralino.events.on(&quot;windowClose&quot;, () =&gt; {<br>    Neutralino.app.exit();<br>});</pre><h3>Step 3: Digging for Data (The “Gotchas”)</h3><p>This is where things got… interesting. I thought I could just call os.getInfo() and call it a day.</p><p><strong>Spoiler alert:</strong> I was wrong.</p><p>In the latest Neutralino versions (v6.x), names changed. os.getInfo is now computer.getOSInfo(). And os.getEnv()? It expects a specific key. To get the whole list, you need os.getEnvs().</p><p>After some debugging (and a tiny bit of swearing), I wrapped everything in a ready event to make sure the &quot;bridge&quot; was solid before cross-walking.</p><pre>async function loadOSInfo() {<br>    try {<br>        const info = await Neutralino.computer.getOSInfo();<br>        document.getElementById(&quot;os&quot;).innerText = `OS: ${info.name} ${info.version}`;<br>    } catch (err) {<br>        console.error(&quot;OS Fetch Failed:&quot;, err);<br>    }<br>}</pre><h3>Step 4: The “Aha!” Moment (Environment Variables)</h3><p>Fetching the env vars was the meat of the app. I wanted them in a nice, scrollable list with a “Copy” button because I’m lazy and I hate manually highlighting text.</p><pre>async function loadEnv() {<br>    const env = await Neutralino.os.getEnvs();<br>    // ... loop through and create rows ...<br>}</pre><h3>Step 5: UX Polish (The “I Care About You” Feature)</h3><p>I added a small visual feedback loop. When you click “Copy”, the button doesn’t just do its job silently — it changes to “Copied!” and turns green for 2 seconds. It’s the little things that make it feel like a professional tool rather than a weekend hack.</p><h3>The Final Result</h3><p>After some minimalist CSS to give it that “Dark Mode Monospace” aesthetic, here’s what we ended up with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nhoxa9fc_PE-khLbVOsm8g.jpeg" /></figure><h3>Lessons Learned</h3><ol><li><strong>Read the Docs (The v6 version, specifically):</strong> APIs evolve. Use the latest keys.</li><li><strong>Wait for the Bridge:</strong> Don’t talk to the OS until the ready event fires.</li><li><strong>Electron isn’t the only way:</strong> If you want a GUI for a simple script, Neutralino is a breath of fresh air.</li></ol><p>Build something tiny today. Your RAM will thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11bda0a500af" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>