u/Deep-Traffic1449

Building an experimental AI-native browser with Electron + native OS integrations — looking for architecture feedback

Building an experimental AI-native browser with Electron + native OS integrations — looking for architecture feedback

https://reddit.com/link/1tgkgny/video/umcnoomjlw1h1/player

Built an experimental open-source AI browser/desktop assistant with Electron + native integrations and wanted to share some architecture decisions + get feedback from people more experienced with Electron.

Project started as a simple AI sidebar, but slowly evolved into a browser with:

  • native Swift bridges on macOS
  • Windows automation integrations
  • Linux desktop hooks
  • OCR/screenshot-based page understanding
  • local + cloud LLM support
  • deep-link automation system

One thing I spent a lot of time on recently was reducing resource usage and moving more things into lightweight/native modules where possible.

A few things I learned while building:

  • Electron becomes much more manageable when BrowserViews are virtualized aggressively
  • native bridges help a lot for OS-level UX
  • keeping automation secure is harder than building the automation itself
  • AI agents break in surprisingly weird edge cases
  • packaging/signing across platforms is painful 😭

Still lots of bugs and unfinished parts, especially around Apple integrations, but the project has been a massive learning experience.

Would genuinely appreciate feedback from Electron devs on:

  • performance architecture
  • native module strategy
  • security model for automation
  • reducing idle memory further
  • cross-platform release workflows

Repo: https://github.com/Preet3627/Comet-AI

reddit.com
u/Deep-Traffic1449 — 6 days ago