Data Sovereignty Specificationlib/storage.ts
How Player Statistics & JSON Export Work
Editorial Commitment & Unique Value: Complete schema documentation for localStorage player records and client-side JSON export/import mechanics in lib/storage.ts.
Published: 2026-01-15Last reviewed: 2026-10-28Next review: 2027-01-28
Local Storage Architecture
Most modern casual gaming platforms require you to create an account, log in through social media, and submit every keystroke or move to a centralized analytics server. Atelier Games is engineered on a strictly zero-tracking, client-authoritative model.
All your win counts, completion streaks, best times, and game histories are stored directly in your browser's standard localStorage API under the key atelier_stats. The server has zero visibility into your solving habits, skill level, or playtime.
JSON Export Data Schema
When you click "Export Player Data (.JSON)" on the /stats page, the client serializes your records into standard JSON with the following structure:
{
"version": 1,
"exportedAt": "2026-11-02T15:00:00.000Z",
"stats": {
"sudoku": {
"easy": {
"played": 14,
"won": 14,
"bestTimeSeconds": 218,
"currentStreak": 5,
"bestStreak": 14
}
},
"dailyCompletedDates": ["2026-10-31", "2026-11-01", "2026-11-02"]
}
}Storage Limits & Browser Isolation
Cross-Device Isolation: Because data is stored in your local browser, records on your laptop do not automatically synchronize to your phone. To move your progress across devices, download your JSON file and import it on your second device.
Private / Incognito Browsing: In Incognito mode, modern browsers discard
localStorage when the private window is closed. Always export your backup if you wish to retain your statistics across sessions.