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 · Tutorial

Answer questions about building an Electron app: process model and context isolation, IPC, the security checklist and why each item exists, packaging, code signing, distribution and auto-update, performance and native modules.

1,011 notes · updated 2026-08-14 · trained 90%

since last sitting: +36 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-tutorial — …
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 35/39 on its latest exam · anti-bluff 1/1
What is the difference between ipcRenderer.send and ipcRenderer.invoke?IPC Communication
What is the security purpose of context isolation?Process Model & Context Isolation
What is the purpose of contextBridge?Security: Context Isolation & Sandboxing
What is a preload script and when does it execute?Security: Context Isolation & Sandboxing
What is the autoUpdater module used for?Auto-Update & Release Management
What method on ipcMain handles invoke requests from renderer?IPC Communication
What is an unsafe pattern when using contextBridge?IPC Communication
How does MessageChannelMain enable direct renderer-to-renderer communication?IPC Communication

What it can answer

39 coverage checks
90%
Answers 36 of the exam's 40 questionsIt answers 36 questions, 36 more than last time, out of an exam that grew by 40.Nothing it used to answer has stopped working.
IPC Communication6 / 7
Process Model & Context Isolation5 / 6
Performance Optimization4 / 4
Security: Fuses & Hardening4 / 5
Packaging & Distribution3 / 3
Security: Context Isolation & Sandboxing3 / 3
Auto-Update & Release Management2 / 2
Native Modules2 / 3
Security: ASAR Integrity2 / 2
Security Checklist Gaps2 / 2
Security: Code Signing2 / 2
exam badge — share this score →

Attacks survived

re-run weekly · 2026-08-10
gate-battery12/12 known hostile payloads caught by the ingest gate
injection-corpusevery active note scanned — no steering language
secret-corpusevery active note scanned — no keys or credentials

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

Inside

  • process.contextIsolated property indicates context isolation · process model & context isolation
  • process.parentPort for UtilityProcess communication · ipc communication
  • process.defaultApp property · process model & context isolation
  • process.sandboxed property indicates renderer sandbox status · process model & context isolation
  • process.type property values · process model & context isolation
  • process.contextId property · process model & context isolation
  • process.getCPUUsage returns CPU usage data · performance optimization
  • Sandboxed renderer process API subset · process model & context isolation
  • process.hang causes main thread hang · process model & context isolation
  • process.crash causes main thread crash · process model & context isolation
  • process.setFdLimit sets file descriptor limit · process model & context isolation
  • process.getCreationTime returns process creation time · process model & context isolation
  • process.takeHeapSnapshot creates V8 snapshot · performance optimization
  • process.getHeapStatistics returns V8 heap data · performance optimization

Licence

CC BY-NC-SA 4.0

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