Privacy policy
How XiangqiHub handles your data. Last updated 7 November 2026.
We collect as little as possible. This page describes what XiangqiHub stores, why, and what you can do about it. It applies to xiangqihub.com. You can use the lessons, openings, puzzles, analysis board and the computer opponent without an account.
What we collect
- Reading the site. Like any web server, ours and our hosting providers process technical details of each request (IP address, page, browser type, time) to deliver the page, keep the site secure and fix faults.
- Your account. If you sign in we store your email address, a display name, and the sign-in methods linked to your account (an email code, or the identifier Google gives us if you use Google sign-in). We do not store passwords. For each active session we also store when it started, when it was last used and your browser type.
- Your profile. A public player number, your display name and your settings (board theme, piece set, sound, coordinates and similar).
- Your games. Games you save are stored with their moves, players, result and date. Saved games have public pages that anyone with the link can open, and may be listed on the site. If you save a game while signed out, it is kept in your browser until you sign in and choose to save it.
- Game reviews. When a saved game is reviewed we store the engine evaluation of each move and the summary on the game page.
- Puzzles. Your puzzle rating and its history, each puzzle you attempted (solved or not, time) and your bookmarks.
- Security records. We keep an audit log of security-relevant account actions, such as sign-in changes and API key use, with the time and the account involved.
- API keys and AI clients. If you create an API key or connect an AI client to XiangqiHub, we store its name, permissions, last use and a hash of the key (never the key itself).
- Email. We send you email only to deliver sign-in codes. We keep the code only as a hash, for a few minutes.
Cookies and browser storage
We use only strictly necessary cookies and browser storage, the minimum the site needs to work. When you sign in we set a session cookie named __Host-session: it is HttpOnly, Secure and SameSite=Lax, and it identifies your session only. Short-lived cookies are used during sign-in (__Host-login and __Host-idnonce). Your browser also keeps a few items in local storage: a saved-for-later game when you are not signed in, and display preferences such as the theme. We use no advertising cookies and no analytics or third-party trackers, and we show no ads.
How we use data
- To run the site: sign you in, show your games and puzzle progress, compute ratings.
- To keep it safe: prevent abuse, rate-limit requests, fix faults.
- To contact you about your account, for example a sign-in code. We do not sell your data and we do not send marketing email.
Who else handles data
- Cloudflare delivers the site and protects it from attacks, so requests pass through its network.
- Google, only if you choose Google sign-in: it tells us your email address and name, and learns that you signed in to XiangqiHub.
- An email delivery provider sends the sign-in codes and sees your email address.
- Our hosting provider runs the servers and database.
We share data with these providers only so they can run the site for us, and with authorities when the law requires it. The public parts of your profile (display name, public number and saved games) can be seen by anyone.
How long we keep data
Account data is kept while your account exists. Sessions expire after 30 days, or after 7 days without use. Server logs are kept for a short period. We take daily database backups and keep the 14 newest, so data you delete can remain in a backup for up to about two weeks. If you delete your account we delete your personal data, although games stay without your name (see how deletion works).
Your rights
You can see, correct and download your data in Settings: edit your profile and display name, and use Download my data for a JSON file with your profile, up to 1000 recent games and up to 5000 recent puzzle attempts. You can delete your account there too. For anything else, or if you cannot sign in, write to [email protected] from the email address on your account. See how deletion works.
Children
XiangqiHub is not directed at children under 13, and we do not knowingly collect their personal data.
Changes
If we change this policy we will update the date above and, for significant changes, tell signed-in users.