Skip to content
All projects
Desktop ApplicationsOpen sourceMajor project

Lain Wave: Offline High-Fidelity (FLAC) Audio Player

A subscription-free, strictly local desktop digital music library built on Tauri and SvelteKit, engineered for high-fidelity (FLAC) media archiving and offline playback.

Performance & metrics

  • Prevents frontend lockups by offloading CPU-bound operations (media encoding, AI inference) to isolated Tokio thread pools
  • Utilizes hardware-accelerated, C++ GGML-based execution for Whisper model inference to minimize RAM overhead
  • Implements aggressive database indexing and connection caching to ensure low-latency library queries across thousands of FLAC files

Why I built it

Modern audio consumption is heavily centralized around cloud-based, DRM-locked, and subscription-dependent services like Spotify or Apple Music. I engineered Lain Wave as a direct countermeasure. The objective was to build a highly optimized, telemetry-free, 100% free local-first client that puts users back in control of their data, focusing strictly on high-fidelity (FLAC) archiving without requiring constant internet connectivity.

Architecture & decisions

The application bridges a SvelteKit file-based routing frontend (/playlist/[id], /artist/[name]) with a low-level Tauri Rust backend. The persistence layer utilizes rusqlite wrapped in an Arc<Mutex<Connection>> to ensure thread-safe concurrent database access. Heavy I/O operations (YouTube scraping, FFmpeg encoding) are strictly isolated within tauri::async_runtime::spawn_blocking tasks to prevent UI thread starvation. External binaries (yt-dlp, FFmpeg) are orchestrated via std::process::Command using piped stdout buffers, injecting Windows-specific creation flags (0x08000000) for headless, stealth execution. Additionally, local AI lyric generation is achieved without cloud APIs by running a C++ GGML Whisper model directly in memory via the whisper_rs bindings.

Key features

  • Asynchronous media scraping, ID3 tag injection, and lossless FLAC conversion from YouTube architectures
  • On-device, local inference via Whisper AI for automated SRT lyric generation and synchronization
  • Fast local library, artist, and playlist management via a thread-safe SQLite persistence layer
  • System-level global media hotkey integration (tauri_plugin_global_shortcut)
  • Asynchronous state management for real-time Discord Rich Presence (RPC) telemetry

Technical review

This project is a testament to resilient 'local-first' software engineering. The application executes completely offline post-download. Raw audio is transcoded on-the-fly to pcm_s16le format via the hound library and piped directly into the localized Whisper model for lyric generation. For database portability, the JSON-based backup and restore protocols utilize strict SQLite transactional boundaries (tx.execute) to guarantee ACID compliance during large bulk-insert operations.

Desktop Applications

Major project

AudioLoom Editor: A Desktop Audio Editor That Trims, Orders and Joins Recordings

A Windows desktop audio editor for interview and meeting recordings, including ones that run for hours: trim the parts, put them in order, balance their levels and save them as a single file. Built with Tauri 2 and Svelte 5; cutting, splitting, pasting, loudness matching and export run on the Rust side through an FFmpeg build that ships with the app. Designed for a non-technical user with low vision: larger text sizes, a high-contrast theme, a fully Turkish interface and a keyboard shortcut for every action.

  • Rust
  • TypeScript
  • Svelte
  • +9

Desktop Applications

Private

Watch Together Desktop: A Synced Player with Tauri 2 and Svelte 5

The Watch Together client for people watching on a computer. It joins the home's room, opens videos from YouTube, anime and the local library, and manages global rooms and Steam friend invites. If no server is running at home, it starts the bundled Rust server itself. The interface borrows from Stardew's menus: parchment panels, wooden frames, pixel headings.

  • Rust
  • TypeScript
  • Svelte
  • +7

Security & Cryptography

Lain's Vault: Encrypted Workspace

A secure, multi-user desktop vault for encrypted file management and native Markdown editing. Files and folders are encrypted with AES-256 (CBC mode) behind a double-key system — down to their very file names.

  • Rust
  • TypeScript
  • C#
  • +7

Need something similar?

I can build a system like this for you, too.

Describe your project in a few sentences, and we'll work out the right approach and an estimated scope together.