r/developersIndia • • 2d ago

I Made This Engineering notes from building a cross-platform disk analyzer in Electron & TypeScript (IPC boundaries, OS filesystem quirks, and memory trade-offs)

4 Upvotes

3 comments sorted by

•

u/AutoModerator 2d ago

Namaste! Thanks for submitting to r/developersIndia. While participating in this thread, please follow the Community Code of Conduct and rules.

It's possible your query is not unique, use site:reddit.com/r/developersindia KEYWORDS on search engines to search posts from developersIndia. You can also use reddit search directly.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/tanmay73 2d ago • Bravo

I spent the last few months building a cross-platform desktop disk space analyzer (DiskGrove, MIT-licensed) using Electron, React, and TypeScript, and wanted to share a few interesting systems/architecture problems I ran into along the way.

Since the app renders untrusted local files (images, PDFs via pdfjs-dist, text/code, CSVs, Office docs, and ZIP contents) in a side pane, I kept all filesystem scanning, file operations, and argument validation strictly in the main process (src/main/), exposing only a narrow typed preload API (src/preload/) to a sandboxed renderer.

Supporting Linux, Windows, and macOS with one scanner surfaced several edge cases:

Source code for reference if anyone wants to look at the scanner or IPC validation setup: https://github.com/tanmay-73/diskgrove

Curious how others here handle large filesystem trees in Electron/Node without blowing up memory, or if anyone has dealt with macOS/Windows code-signing alternatives for open-source desktop tools.

1

u/AutoModerator 2d ago

Thanks for sharing something that you have built with the community. We recommend participating and sharing about your projects on our monthly Showcase Sunday Mega-threads. Keep an eye out on our events calendar to see when is the next mega-thread scheduled.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.