Skip to content

Architecture

Debanjan Dutta edited this page Apr 30, 2026 · 1 revision

Architecture

Wallpaper Sync follows a modular architecture:

Components

Electron App

  • Handles UI and local storage
  • Manages slideshow and wallpaper changes

Next.js API (Vercel)

  • Handles uploads
  • Generates hash for duplicate detection

Supabase

  • Database: stores metadata + hash
  • Storage: stores actual images

Data Flow

Upload → API → Hash → DB Check → Storage

Duplicate Prevention

  • SHA256 hash generated for each image
  • Stored in database with UNIQUE constraint
  • Duplicate uploads are rejected automatically

Clone this wiki locally