Electron desktop apps: how an app like yoji is built

11 steps · about 5 h 35 min · Intermediate

  1. Process Model (doc, Electron official docs, 15 min)

    Start with the main, renderer and preload split, because every other Electron idea builds on it.

  2. Electron Architecture - Process Model & IPC (guide, Emad Ibrahim, 15 min)

    It explains why Electron uses several processes and treats IPC as a trust boundary, which makes the official docs easier to follow.

  3. Electron JS Full Tutorial For Beginners (video, YouTube, 2 h)

    A hands-on build with React and TypeScript, the same kind of stack yoji uses.

  4. Inter-Process Communication (doc, Electron official docs, 25 min)

    Learn the official IPC patterns and how a preload script exposes them through contextBridge.

  5. Mastering Electron's Process Model: A Practical Guide to Secure, Maintainable IPC (article, DEV Community, 20 min)

    It covers the common IPC traps, such as passthrough helpers and heavy work in the main process, after you know the basics.

  6. Security (doc, Electron official docs, 25 min)

    This is the official checklist for context isolation, sandboxing and validating IPC senders.

  7. firecrawl/yoji (repo, GitHub (Firecrawl), 40 min)

    Now read a real open-source app and trace how src/preload connects the main process to the renderer.

  8. safeStorage (doc, Electron official docs, 15 min)

    Apps like yoji keep sign-in data encrypted with the OS secret store, and this is the API that does it.

  9. Why isEncryptionAvailable() Wasn't Enough to Ship Our Password Vault on Linux (article, DEV Community, 10 min)

    It shows where safeStorage protection is weaker than it looks, especially on Linux.

  10. electron-builder (doc, electron-builder docs, 30 min)

    Package the app into installers for macOS, Windows and Linux, as yoji's build targets do.

  11. Auto Update (doc, electron-builder docs, 20 min)

    Finish with how installed apps receive updates safely over HTTPS and with signed manifests.