How Sample Vault syncs gigabyte-scale databases from cloud to local with Turso
Blog post from Turso
Sample Vault, developed by Wojciech Adamek, is an AI-powered sample browser for music producers that utilizes Turso's bidirectional sync capabilities to manage and query gigabyte-scale databases of indexed audio files locally and offline, without requiring custom sync code. Designed to address the needs of professional producers who typically manage extensive libraries, the application indexes over 100,000 audio files, extracting metadata through audio analysis, machine learning classification, and AI tagging, while allowing producers to search using natural language descriptions. The architecture relies on a dedicated Turso database for each premium user, enabling cloud-to-local processing and synchronization, which contrasts with traditional local-to-cloud sync models. This setup provides full offline access and eliminates the need for constant internet connectivity, overcoming previous limitations faced with platforms like Supabase and PGLite. Turso's model allows Sample Vault to scale without additional infrastructure work, focusing on core features like spectral feature extraction and natural language search, ultimately transforming the application from a passion project into a viable startup.