How pradeeshwarrj/pamline-desktop works
pamline Desktop is a Tauri/Svelte desktop interface for taking passive-acoustic recordings through ecological analysis. The main workflow is project setup, recording preparation and checks, detection, review and calibration, then summaries and outputs; soundscape analysis is a separate branch. The UI calls a Rust command layer, which prepares the bundled analysis runtime and runs pamline jobs. The README documents product stages not visible in the sampled code; those workflow links cite the README. Unsampled implementation details and their internal calls are not inferred.
Main entry points: lib.rs Tauri command host · validation.svelte.ts Validation state and jobs · ProjectLive.svelte Project settings · ValidateLive.svelte Review samples
Components 22
Desktop interface
- Tauri frontend API
src/lib/backend/tauri.ts - Validation state and jobs
src/lib/backend/validation.svelte.ts
Project preparation
- Project settings
src/lib/screens/ProjectLive.svelte - Standardize audio
src/lib/screens/StandardizeLive.svelte - Scan recordings
src/lib/screens/ScanLive.svelte - Filter audio
src/lib/screens/FilterLive.svelte
Detection and review
- BirdNET detection
src/lib/screens/DetectLive.svelte - Process detections
src/lib/screens/ProcessLive.svelte - Review samples
src/lib/screens/ValidateLive.svelte - Calibrate thresholds
src/lib/screens/CalibrateLive.svelte
Ecological analysis
- Occupancy histories
src/lib/screens/OccupancyLive.svelte - Activity and richness
src/lib/screens/ActivityLive.svelte - Reports
src/lib/screens/ReportLive.svelte - Data export
src/lib/screens/ExportLive.svelte - Soundscape indices
src/lib/screens/SoundscapeLive.svelte
Analysis runtime
- Tauri command host
src-tauri/src/lib.rs - Job execution
src-tauri/src/jobs.rs - Validation file access
src-tauri/src/validation.rs - First-launch setup
src-tauri/src/setup.rs - Runtime discovery
src-tauri/src/runtime.rs
Other components
- Researcher
- pamline analysis package
Connections 24
- Researcher → Project settings: configures
README.md - Project settings → Standardize audio: starts workflow
README.md - Standardize audio → Scan recordings: prepares recordings
README.md - Scan recordings → Filter audio: checks recordings
README.md - Filter audio → BirdNET detection: feeds recordings
README.md - BirdNET detection → Process detections: produces detections
README.md - Process detections → Review samples: samples detections
README.md - Review samples → Calibrate thresholds: supplies verdicts
README.md - Calibrate thresholds → Occupancy histories: sets thresholds
README.md - Calibrate thresholds → Activity and richness: sets thresholds
README.md - Activity and richness → Reports: summarizes results
README.md - Occupancy histories → Reports: summarizes results
README.md - Reports → Data export: packages results
README.md - Researcher → Soundscape indices: runs workflow
README.md - Project settings → Tauri frontend API: uses commands
- Review samples → Validation state and jobs: loads and saves
src/lib/screens/ValidateLive.svelte - Validation state and jobs → Tauri frontend API: runs jobs
src/lib/backend/validation.svelte.ts - Validation state and jobs → Tauri command host: invokes commands
src/lib/backend/validation.svelte.ts - Tauri command host → Job execution: registers commands
src-tauri/src/lib.rs - Tauri command host → Validation file access: registers commands
src-tauri/src/lib.rs - Tauri command host → First-launch setup: registers commands
src-tauri/src/lib.rs - First-launch setup → Runtime discovery: locates runtime
src-tauri/src/setup.rs - Job execution → pamline analysis package: runs analysis jobs
- Validation file access → Job execution: supports validation jobs