NightFlow/ open source

UNDER THE HOOD

Open by design.

A small native shell, a reactive interface, and a Python training engine. Follow how the pieces fit together.

The system at a glance

PreactProjects, settings, charts
Tauri + RustFiles, processes, events
AutoTimmModels, data, training

The desktop app turns project settings into an AutoTimm configuration, starts a Python process, and displays structured progress events. Training remains in the Python ecosystem.

The building blocks

LayerTechnologyRole
DesktopTauri 2 + RustNative application shell and system integration.
InterfacePreact + SignalsReactive project state, controls, and views.
BuildViteFrontend development and production assets.
TrainingAutoTimm + PyTorch LightningTask-specific data modules, model training, and tuning.
Modelstimm + task-specific architecturesBackbone and model implementations.
Terminal / viewerxterm.js + NetronInteractive shell access and model inspection.

Interface and local state

Views and components display the active project and its runs. Signals hold reactive application state. IndexedDB stores project settings and run records; it is separate from the model artifacts on disk.

CSV column mappings are shared between project creation, saved settings, preview parsing, and generated YAML.

A few small stores live outside IndexedDB: the list of SSH keys the user has added (paths and fingerprints only, never key contents), the theme, and per-machine UI preferences. Terminal tabs and the open settings section are tracked per project in memory.

Processes and files

Rust commands handle filesystem validation, environment provisioning (uv and Python 3.12), terminal sessions, log parsing, process control, model export, SSH key inspection and creation, and project export archives. Training is launched with structured arguments so paths can be passed without relying on ad-hoc command-string splitting.

Remote projects reuse the system’s OpenSSH: a project’s SSH command, optionally pinned to one key with -i … -o IdentitiesOnly=yes, is used for sync, machine health, exports, and archive streaming (tar over SSH). Each terminal tab is its own PTY session.

Full project exports are gzip-compressed tar archives (.nightflow) holding a JSON manifest followed by run files and, optionally, dataset files. Unpacking rejects absolute paths, .. components, and links.

Project directories contain configuration, logs, and model artifacts. Process metadata supports session recovery, while run status and metrics are reflected in the app.

The event loop

  1. The user saves settings and launches a run.
  2. NightFlow validates and writes the training configuration.
  3. The Rust backend starts the configured Python process.
  4. Structured progress and metrics arrive through logs and Tauri events.
  5. The interface updates the project’s training state and saved run record.

A configuration-write error stops launch. Failed evaluation is reported as failure rather than a successful training completion.

Find your way around the repository

src/
  components/     # Wizard, dialogs, SSH keys, export/import, charts
  views/          # Dashboard, settings, experiments, terminal, …
  state/          # Reactive state: projects, training, terminal tabs,
                  #   SSH keys, export/import, dialogs
  db/             # IndexedDB persistence
  utils/          # YAML builder, model catalog, paths, export format
src-tauri/src/
  training.rs     # Process supervision, log tailing, crash recovery
  env.rs          # uv + Python environment provisioning
  fs.rs           # Dataset parsing and structure validation
  exports.rs      # TorchScript / ONNX / TensorRT export
  transfer.rs     # Project export/import archives
  ssh.rs          # Remote commands, SSH key scan/inspect/create
  pty.rs          # Terminal sessions
  system.rs       # CPU, memory and GPU metrics
tests/           # Configuration and integration checks
docs/            # This static website
.github/         # Build, test, and release workflows

Build and support boundaries

The website is a static collection of HTML, CSS, and JavaScript served by GitHub Pages. The desktop app uses its own Vite and Tauri build workflow.

Desktop CI and release packaging target macOS and Linux, plus a Windows 11 beta. Windows builds are a required CI check and ship with each release. Managed SSH training is also outside the current local launcher’s capabilities.

Set up a development environment or read the source on GitHub.