Main process
Ce contenu n’est pas encore disponible dans votre langue.
The main process starts Electron, opens the database, registers IPC, creates the window, and schedules feed refreshes. It owns Node.js APIs. Put network requests, filesystem work, and SQLite access here; the renderer reaches them through the IPC API.
Follow a feed refresh
Section titled “Follow a feed refresh”The scheduler reads the stored refresh settings and arms a timer. Each cycle fetches feeds through their adapters, saves new items, removes expired ones, and reports a summary. Image enrichment can continue after the feed list returns. See Feed sources for the adapter path.
When the reader requests an article body through items:get-content, main extracts and stores it for later reads.
Keep network and window boundaries
Section titled “Keep network and window boundaries”The network helpers accept HTTP and HTTPS URLs and check redirects. Window security keeps app windows on the app document, denies web permissions, and opens external links in the system browser.
The private-network check has two known limits:
- It resolves a name before the request, and Chromium resolves it again when it connects. A server that changes its answer between the two (DNS rebinding) can pass the check.
- It applies to addresses that content chose: item links, image enrichment, article fetches, icons, and feed links found on a page. A link the user types is allowed to reach a local or LAN feed, so a redirect from such a link can reach a private address too.
The renderer’s Vite config supplies the Content Security Policy. Run the window security tests when you change URL handling or window behavior.