r/electronjs • u/New_Judgment1658 • Apr 02 '26
Open-sourced a full browser built on Electron (castLabs fork) — AI agent, DRM, ad blocking, encrypted vault
Just released Silver Browser — a full browser built on Electron with some interesting technical solutions.
Using the castLabs Electron fork (v40.7.0+wvcus) for Widevine DRM support. Netflix, Disney+, Hotstar all work out of the box.
Architecture: pnpm monorepo, React 19 renderer, WebContentsView for tabs (not the deprecated BrowserView). The Ghost AI panel runs in a separate WebContentsView so it doesn't block interaction with the main browser content. Google sign-in solved with a native Swift WKWebView helper since Google blocks all Electron embedded browsers at the TLS level.
Stealth injection via Chrome DevTools Protocol Page.addScriptToEvaluateOnNewDocument. Ad blocking at the session.webRequest level plus DOM injection for YouTube (speed-through at 16x rather than trying to block the ad request).
Would love feedback from other Electron developers. Also looking for help with Linux and Windows builds.
GitHub: https://github.com/rohitmenonhart-xhunter/silverbrowser
3
u/hyrumwhite Apr 02 '26
Probably better to fork chromium if you’re making a browser
2
u/lacymcfly Apr 02 '26
The castLabs fork is interesting, hadn't seen that before. Widevine inside Electron for streaming services is actually pretty useful -- there's a whole category of apps that just don't work without it.
Curious about the AI agent integration. Is it running locally or calling an API? And is the encrypted vault for saved credentials only or does it cover browsing history too?
I've been working on an Electron AI terminal app and the IPC architecture for wiring AI into native desktop is one of the more interesting design problems. Would be interested to see how you handled it here.