<?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: Swanand Hirve</title>
    <description>The latest articles on DEV Community by Swanand Hirve (@swanandhirve).</description>
    <link>https://dev.to/swanandhirve</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4186980%2F1d8c3fe0-1130-4276-bd3a-d7feba1bebad.png</url>
      <title>DEV Community: Swanand Hirve</title>
      <link>https://dev.to/swanandhirve</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/swanandhirve"/>
    <language>en</language>
    <item>
      <title>Day 1: I'm building a secure text editor with Electron in public</title>
      <dc:creator>Swanand Hirve</dc:creator>
      <pubDate>Thu, 15 Oct 2026 18:07:28 +0000</pubDate>
      <link>https://dev.to/swanandhirve/day-1-im-building-a-secure-text-editor-with-electron-in-public-3888</link>
      <guid>https://dev.to/swanandhirve/day-1-im-building-a-secure-text-editor-with-electron-in-public-3888</guid>
      <description>&lt;p&gt;I often feel like everyone around me is ahead, so I’m doing something about it: &lt;strong&gt;30 days, one project, built in public&lt;/strong&gt;. I’m learning &lt;strong&gt;Node.js, Express and Electron&lt;/strong&gt; by making simple projects, for starters a simple mini text editor.&lt;/p&gt;

&lt;p&gt;Day 1: a window that opens.&lt;/p&gt;

&lt;p&gt;It’s an empty dark window right now, but it’s mine. I customized the background, edited index.html.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg3qqu212wiifunvfzu4f.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg3qqu212wiifunvfzu4f.png" alt=" " width="800" height="426"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What I learned: Electron has two sides. main.js runs in Node and creates the window. index.html is just a web page that the window displays. I didn’t understand this split until I saw it work.&lt;/p&gt;

&lt;p&gt;What confused me: I didn’t understand how index.html connects to everything else and how it all works together. Here’s how I understand it now: main.js creates the window and loads index.html with win.loadFile('index.html'). index.html is just a normal web page. That’s the whole connection. This is called through &lt;em&gt;"app"&lt;/em&gt; module which controls the whole application's lifecycle&lt;/p&gt;

&lt;p&gt;Next: I want the page to be able to open and save files, and remove the the toolbar which is currently viewable&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/swanandhirve/mini-editor" rel="noopener noreferrer"&gt;Repo Link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>electron</category>
      <category>node</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
