Fully Functional Lightweight QuantumBrush App with Full Python Backend#42
Open
ljcamargo wants to merge 46 commits intomoth-quantum:distfrom
Open
Fully Functional Lightweight QuantumBrush App with Full Python Backend#42ljcamargo wants to merge 46 commits intomoth-quantum:distfrom
ljcamargo wants to merge 46 commits intomoth-quantum:distfrom
Conversation
Purpose: Unitary DESIGNHACK 2026 (Bring the software issues which were unsolved.)
4 tasks
…e documentation, and disable native window frameless mode.
…r 'done' status layers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello everyone, I am also submitting my proposal for the app refactoring. I preferred using pywebview as the heavy python backend is very hard to get working along with other technologies and pywebview excels in python/js interoperability so this technology allowed packing the full python backend which is working perfectly.
The UI is written in JS/React/Vue/Tailwind which allows repurposing it to deploy as a web page in the future.
QuantumBrush Refactored App
This document outlines the technical improvements and architectural changes introduced in this implementation. The primary objective was to transition the legacy Java-based stack into a modernized, high-performance ecosystem using React and Python, while ensuring robust distribution and extensibility.
Core Architectural Advantages
1. Modern Technology Stack & Interoperability
The application has migrated from a Java-based environment to a contemporary stack:
pywebviewfor native communication between the high-performance React-based UI and the core Python backend. This eliminates overhead while providing a platform-native desktop experience.Rationale: Why pywebview over Electron?
The decision to use
pywebviewinstead of Electron for this overhaul was driven by the specific requirements of a quantum-scientific application:Key Advantages:
pywebviewallows the React frontend to call Python functions directly. This is critical for high-frequency data exchange required by quantum simulations.2. Reliable Distribution & Portability
The build system has been optimized for both developer and end-user distribution:
3. Professional Backend Modernization
The backend implementation has been refactored to prioritize stability and static analysis:
scripts/collect_deps.py) parses individual effect configurations at build-time to generate consolidated requirements and PyInstaller flags.importlib.resourcesfor metadata access, ensuring compatibility across different operating systems and installation environments.Technical Specifications
Deployment & Development
Local Execution (Repository Mode)
For development and full environment access:
./install.sh./run_native.shStandalone Build
To generate a production-ready binary distribution for end-users:
The resulting distribution in the
dist/directory is portable and excludes the need for source-code access or manual environment configuration.Deployment as Web App
The frontend in
frontend/can be built and deployed to any static hosting service. EnsureVITE_BACKENDis configured to point to a reachable API endpoint for effect processing.