Change-My-Mind: Hybrid Architecture (Flet-Web Launcher + Desktop Sub-Apps) #5279
GroveGuard
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hybrid Architecture: Flet-Web Launcher + Desktop Sub-Apps
1. Why Hybrid?
Your existing Flet-Web launcher and Sub-Apps remain Python code talking HTTP/WebSocket.
By wrapping it in Electron or Tauri, you can spawn OS processes on button-click, each in its own window.
When a window closes, you kill its Python process, reclaiming memory and tearing down UI state completely.
2. Electron-Based Launcher
2.1 Architecture
2.2 Key Code Snippets
Main Process (main.js)
Preload Script (preload.js)
Flet Launcher Button (in Python)
3. Tauri-Based Launcher
3.1 Architecture
3.2 Lifecycle
4. Pure PWA / Service-Worker Approach
window.open
.5. Trade-Offs and Recommendations
Bottom Line
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions