Developers

Developers

Kurpio's privileged services belong on the server.

The Electron client communicates with authenticated HTTPS backend services instead of shipping database credentials, service-role keys, and signing secrets inside the desktop package.

This project includes a backend starter for Kurpio. It is not a public third-party developer API.

Architecture

Kurpio Electron App → HTTPS → Supabase Edge Functions / authenticated service endpoints → Supabase Postgres

Local processing boundary

Personal music playback remains local to the desktop app. The current folder workflow indexes audio from user-selected folders without duplicating those files into Kurpio storage, while older Legacy managed imports remain compatible. RNNoise microphone cleanup is also performed locally with WebAssembly and an AudioWorklet before WebRTC sends processed audio to another caller.

Server-side authorization

Relationship restrictions, reporting validation, group administration, invite management, and other privileged operations should be checked by the backend even when the renderer also hides or disables the same action.

Security warning. Never place a Supabase service-role key, database credentials, JWT signing secrets, Cloudinary secrets, or other privileged credentials in renderer JavaScript or downloadable Electron assets.

Starter routes

  • /api/health
  • /api/auth-login
  • /api/auth-register
  • /api/auth-verify-email
  • /api/auth-resend-otp
  • /api/auth-password-reset

Account email flows

New accounts must verify their email with a short-lived code before signing in. Password reset requests return the same response whether or not a verified account exists. In account settings, username changes have a seven-day cooldown, while email and password changes require a code sent to the current email address. Email delivery and SMTP credentials remain server-side; the mail-sending function is not a public client API.

Secrets

Database URLs, service-role keys, JWT signing secrets, Cloudinary secrets, payment secrets, and other privileged keys must be configured only in trusted server environments and excluded from the downloadable renderer/client bundle.