Cookie Policy

Last updated : November 30, 2025

1. Introduction

This cookie policy explains how KeysBattle uses cookies and similar technologies to recognize your visits to our website. It explains what these technologies are, why we use them, and your rights to control their use.

2. What is a cookie?

A cookie is a small text file stored on your device (computer, tablet, or mobile) when you visit a website. Cookies allow the site to remember your actions and preferences for a given period.

3. Cookies we use

Essential Cookies

Required

These cookies are strictly necessary for our site to function. They cannot be disabled as they enable basic features such as:

  • Authentication: Maintain your login session (via Supabase Auth)
  • Security: Protect your account and prevent attacks
  • Cookie preferences: Remember your choice regarding this banner

Storage used:

  • supabase.auth.token - Authentication token
  • keysbattle_cookie_consent - Your cookie choices

Performance Cookies

Optional

These cookies help us improve site performance by temporarily storing data to reduce loading times:

  • Song cache: Remembers the song list to avoid reloading
  • Filter cache: Remembers your recent searches
  • Lifetime: 5 minutes by default

Storage used:

  • keysbattle_cache_* - Temporary cached data

Preference Cookies

Optional

These cookies remember your preferences to personalize your experience:

  • Audio profile: Your piano sound choice (Grand Piano, Electric Piano, etc.)
  • Volume: Your preferred volume level
  • Lifetime: Permanent (until manual deletion)

Storage used:

  • pianoSoundfontProfile - Selected sound profile
  • pianoVolume - Volume level

4. LocalStorage vs Cookies

KeysBattle primarily uses LocalStorage rather than traditional cookies. LocalStorage is a local storage technology that:

  • Never sent to the server (more secure)
  • Remains on your device only
  • Can store more data (up to 5-10 MB)
  • Doesn't affect network performance

5. Your rights and control

You have full control over the cookies we use:

Via our consent banner

You can accept or refuse optional cookies via the banner that appears on your first visit. You can change your choice at any time.

Via your browser settings

You can configure your browser to block or delete cookies:

  • Chrome: Settings → Privacy and security → Cookies
  • Firefox: Options → Privacy and security → Cookies
  • Safari: Preferences → Privacy → Cookies
  • Edge: Settings → Cookies and site permissions

Manual deletion

You can manually delete LocalStorage by opening your browser's developer console (F12) and running: localStorage.clear()

⚠️ Note: If you disable essential cookies, some site features won't work properly (login, score saving, etc.).

6. Third-party services

KeysBattle uses the following services that may set their own cookies:

Supabase (Authentication and Database)

We use Supabase to manage authentication and data storage. Supabase may use cookies to maintain your session.

Privacy policy: https://supabase.com/privacy

7. Updates to this policy

We may update this cookie policy from time to time to reflect changes in our practices or for other operational, legal, or regulatory reasons. We encourage you to review this page regularly.

8. Contact us

If you have questions about our use of cookies, you can contact us:

  • Email: contact@keysbattle.com
  • Contact page: /contact