Architecture Overview

Trufos is an Electron application, which means it’s fundamentally composed of two types of processes: a Main process and one or more Renderer processes. This architecture allows Trufos to leverage web technologies (HTML, CSS, JavaScript/TypeScript via React) for its user interface while still being able to access native operating system capabilities.

This section delves into the key architectural aspects of Trufos:

  1. Main Process: The backbone of the application, managing windows, application lifecycle, and native interactions.
  2. Renderer Process: Responsible for rendering the user interface within browser windows.
  3. IPC Communication: How the Main and Renderer processes communicate with each other.
  4. State Management: How application state is managed, primarily in the Renderer process.
  5. Persistence: How data like collections, requests, and settings are stored and retrieved.
  6. Error Handling: Strategies for managing and displaying errors.
  7. Logging: How application events and errors are logged for debugging.

Understanding these components is essential for developing and maintaining Trufos effectively.


Table of contents