Welcome to the NeuroKey contributor community! We are actively transitioning from a Python Flask application into a native desktop application powered by Rust and Tauri.
The new architecture is a Sidecar Pattern:
- Frontend (Tauri + React): A sleek, premium desktop UI that runs offline without needing a browser.
- Backend 1 (Rust Engine): The CPU-based Simulated Annealing algorithm is being rewritten in Rust for maximum performance (10-50x speedup over Python).
- Backend 2 (PyTorch Sidecar): The GPU-accelerated tensor layout generation runs in Python via PyTorch and is spawned as a sidecar process by the Tauri backend.
Install the Rust toolchain via rustup.rs.
Depending on your OS, install the necessary native dependencies. See the Tauri Getting Started Guide.
Install Node v18+ to run the React frontend build tools.
For the PyTorch sidecar, you need a local Python environment.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtWe use pytest for the Python backend. Run the test suite before submitting any Pull Requests:
python3 -m pytest test_neurokey.py -vPlease read our CODE_OF_CONDUCT.md before contributing to ensure a welcoming environment for everyone.