InnerVault

Electron App taste

Indexedprompts.chat (CC0 prompt collection), f

# Electron App taste of a desktop developer who takes security seriously - Keep `contextIsolation: true` and `nodeIntegration: false` on every `BrowserWindow`; these are non-negotiable defaults. Confidence: 0.98 -…

Open the source (opens github.com) https://github.com/f/prompts.chat

What it is

Prompts from f.

The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.

The prompt

# Electron App taste of a desktop developer who takes security seriously
- Keep `contextIsolation: true` and `nodeIntegration: false` on every `BrowserWindow`; these are non-negotiable defaults. Confidence: 0.98
- Enable `sandbox: true` for renderers and give each window the smallest preload script it needs. Confidence: 0.90
- Expose a narrow, typed API from the preload with `contextBridge.exposeInMainWorld` instead of passing `ipcRenderer` through. Confidence: 0.95
- Use `ipcMain.handle` and `ipcRenderer.invoke` for request and response calls, and validate every argument in the main process. Confidence: 0.90
- Check the sender frame on IPC messages so only your own pages can call privileged handlers. Confidence: 0.80
- Set a strict Content Security Policy and never load remote code into a window with privileged preload access. Confidence: 0.90
- Block unexpected navigation with `will-navigate` and `setWindowOpenHandler`, and open external links in the system browser with `shell.openExternal` after allowlisting the URL. Confidence: 0.90
- Serve local content through a custom protocol instead of `file://` so origin rules and CSP behave predictably. Confidence: 0.75
- Write the main, preload and renderer code in TypeScript, sharing IPC channel types from one module. Confidence: 0.85
- Use Electron Forge or electron-builder with Vite for building and packaging rather than a hand-rolled script. Confidence: 0.80
- Keep heavy work out of the main process; use utility processes or worker threads so the UI never freezes. Confidence: 0.85
- Track the latest supported Electron major and upgrade at least every quarter, since each release carries Chromium security fixes. Confidence: 0.85
- Sign and notarize macOS builds and sign Windows installers before anyone outside the team installs them. Confidence: 0.95
- Ship auto-updates through `autoUpdater` or electron-updater with signed releases and a staged rollout. Confidence: 0.80
- Enable Electron fuses to disable `RunAsNode` and Node CLI inspection in production builds. Confidence: 0.75
- Persist settings and window state in the user data directory, and store secrets with `safeStorage` or the OS keychain, never in plain JSON. Confidence: 0.85
- Restore window size and position on launch and handle multiple displays gracefully. Confidence: 0.70
- Respect platform conventions: the macOS app menu, Windows tray behavior and native keyboard shortcuts. Confidence: 0.75
- Watch bundle size and startup time, lazy-load heavy modules and avoid shipping dev dependencies in the app archive. Confidence: 0.75
- Collect crash reports with `crashReporter` or Sentry and log main-process errors to a rotating file. Confidence: 0.75
- Run end-to-end tests with Playwright's Electron support against the packaged app, not only the dev build. Confidence: 0.70

Written by the prompts.chat (CC0 prompt collection) community (f). Not tested by InnerVault.

How to get it

Setup steps: not applicable.

Related

  1. # Tauri Desktop App taste of a cross-platform desktop developer - Choose Tauri over Electron for new desktop apps when bundle size and memory use matter. Confidence: 0.80 - Build the frontend with Vite and TypeScript…

    Indexed f · via prompts.chat (CC0 prompt collection) CC0-1.0

  2. a lot of people even professional said a software product or platfrom especially which has complex rules which was fully coded by AI by a vibe coder who deosnt understand what is the arcture concept deployed, read and…

    Indexed hussen.sepa@gmail.com · via prompts.chat (CC0 prompt collection) CC0-1.0

  3. code-hacker

    Prompts

    Code Hacker - VS Code Custom Agent + Web + TUI

    Stale hackerlibs · via GitHub 55 ★MITUpdated 20 days ago

    Source for code-hacker (opens github.com) git clone https://github.com/hackerlibs/code-hacker.git
  4. Claude Code Prompt Mechanism Visualizer — Electron desktop app

    Stale kangraemin · via GitHub 132 ★MITUpdated 26 days ago

    Source for claude-inspector (opens github.com) git clone https://github.com/kangraemin/claude-inspector.git
  5. Act as an Electron Frontend Developer. You are an expert in building desktop applications using Electron, focusing on frontend development. Your task is to: - Design and implement user interfaces that are responsive…

    Indexed 1024570189 · via prompts.chat (CC0 prompt collection) CC0-1.0

  6. builder prompts which can be sent to builders like cursor, bolt.diy, bolt.new, trae, project idx, Claude code, lovable.dev, llmacoder, geminicoder, windsurf, deepseek-artifact, cline, aider etc

    Stale KingLeoJr · via GitHub 278 ★MITUpdated 2 months ago

    Source for awesome-vibe-coding-prompt-code-templates (opens github.com) git clone https://github.com/KingLeoJr/awesome-vibe-coding-prompt-code-templates.git