main process vs renderer
Desktop shells such as Electron separate privileged application work from the renderer.
Use this when A desktop UI needs filesystem or operating-system access.
without the term
“My Electron app's page code needs to read and write files. Should I just turn on Node in the renderer? What's the safe way to do it?”
with the term · How do you ask a model for main process vs renderer?
Keep this privileged operation in the desktop main process. Expose a narrow IPC method and test rejection of invalid or unauthorized arguments.
What is main process vs renderer?
Electron's main process has Node and operating-system access. Renderer processes show web pages and should ask the main process for privileged work through narrow messages.
Why does main process vs renderer matter when vibe coding?
Importing privileged APIs into page code widens the impact of a renderer compromise.
How do you do main process vs renderer?
Keep privileged operations behind narrow validated messages and trusted process boundaries.
What goes wrong with main process vs renderer?
Exposing the entire filesystem or shell API through a convenience bridge.