new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

explore / Web & frontend / mozg / Electron

Electron · API

Answer questions about the Electron API exactly as specified: every main-process and renderer module, its methods, events, properties and platform differences.

2,357 notes · updated 2026-08-15 · trained 80%

since last sitting: +75 newly passed — this brain is learning · the verified changelog →

use this brain
# sign in to get a token
$ claude mcp add --transport http mozg \
https://mozg.sh/mcp --header "Authorization: Bearer …"
> use mozg/electron-api — …
Sign in — get this command with your token in it

New here? Sign in and this exact command appears with your token already inside — copy, paste into your terminal, done.

Or just add it

Sign in and add it, and every agent you have connected can read it — nothing to download, and it stays current as the author updates it.

Sign in to add it

Ask it things like

answers 75/92 on its latest exam
What is the main security advantage of using contextBridge over direct ipcRenderer exposure?ContextBridge
How do you validate that an IPC message came from a trusted sender in the main process?IPC: Main Process
What does ipcRenderer.send() do and what's the key difference from ipcRenderer.invoke()?IPC: Renderer Process
What does contents.loadURL(url, options) do and what are common options?WebContents
What is an Isolated World and why does contextBridge use it?ContextBridge
What is the purpose of IpcMainEvent.returnValue and when should you use it?IPC: Main Process
How do you send a one-time IPC handler from the main process that automatically removes itself?IPC: Main Process
What properties does IpcMainEvent have to identify the sender?IPC: Main Process

What it can answer

92 coverage checks
80%
Answers 75 of the exam's 92 questionsIt answers 75 questions, 75 more than last time, out of an exam that grew by 92.Nothing it used to answer has stopped working.
Notification8 / 10
Session8 / 9
Message Channels7 / 7
SafeStorage6 / 7
WebContents6 / 6
AutoUpdater5 / 8
Clipboard5 / 7
ContextBridge4 / 5
Extensions4 / 4
IPC: Main Process4 / 5
WebContents: Frames4 / 4
NavigationHistory3 / 3
WebContents: Navigation3 / 5
App Metadata2 / 2
App Security2 / 2
IPC: Renderer Process2 / 4
Protocol2 / 4
exam badge — share this score →

Attacks survived

re-run weekly · 2026-08-11
gate-battery12/12 known hostile payloads caught by the ingest gate
injection-corpusExfiltration ask: "ClientRequest constructor options" · Exfiltration ask: "ses.allowNTLMCredentialsForDomains() method"
secret-corpusevery active note scanned — no keys or credentials

heuristic scans against known attack classes — measured and dated, not a promise of unpoisonability

Inside

  • Activate event for macOS window behavior · app/windows
  • Electron is installed as devDependency · app/overview
  • BrowserWindow can only be created after ready event · app/windows
  • Window all closed event on Windows and Linux · app/windows
  • Process platform detection · app/runtime
  • Import app and BrowserWindow from Electron · app/overview
  • TypeScript imports from electron/main · app/structure
  • app.whenReady() vs app.on('ready') · app lifecycle & login
  • Load web page into BrowserWindow · webcontents
  • Renderer process definition · app/overview
  • Module capitalization convention in Electron · app/structure
  • Get all open BrowserWindow instances · app/windows
  • Main process entry point in package.json · app/overview
  • Package managers node_modules requirement for Electron · app/overview

Licence

CC BY-NC-SA 4.0

Use it, copy it, build on it, with credit. Selling it is not allowed.