Privacy and usage events
Shopping Mall is built to know as little about visitors as possible.
What's stored
| What | Where | For how long |
|---|---|---|
| Your name, character and colour | Your own browser (localStorage), so you don't retype them | Until you clear site data |
| Your language, quality, volume and mute settings | Your own browser | Until you clear site data |
| Chat messages | The operator's database: the name, the message (with blocked words masked), the room and the time. People who join see the last 20 messages from the past hour in their room. | 30 days by default (CHAT_KEEP_DAYS), then deleted automatically |
| Player reports | The server log (and the operator's webhook, if set): the reported name, the reason and the last 20 chat messages | As long as the operator keeps logs |
| Rental applications | The operator's database (and the operator's webhook, if set): the unit, the name, email, phone (if given), shop name, type of shop and description the applicant typed. Only the host sees them. | Until the host deletes them |
| Shop owners | The operator's database: the owner's email, and their password as a scrypt hash (it can't be read back). Set-password links are kept only as a hash, until used or 7 days. | Until the host removes the owner or deletes the shop |
| Shops, products, uploads | The operator's database and bucket | Until the host deletes them |
There are no cookies and no visitor accounts, and nothing loads from third parties: no scripts, fonts or trackers. When the host signs in, the password is swapped for a token that's kept only in memory.
Usage events
So that an operator can tell whether the mall works (does it load quickly, which shops do people open?), the client sends a few anonymous events to the mall's own server, which writes them to its log as JSON lines:
| Event | Fields | When |
|---|---|---|
visit | locale, tier (quality), touch (true/false) | The page opens |
enter | ms: time from page load until playable | You enter the mall |
shop | shop: the shop's id | A shop panel opens |
link | shop, label: the button's text | A shop's link is clicked |
product | shop | A product is clicked |
leave | s: seconds on the page | The page closes |
Each line looks like {"t":"event","at":"2026-09-29T08:00:00.000Z","e":"shop","shop":"lumen-coffee"}. There's no identifier of any kind: no IP address, no user agent, no session or visitor id. Two events from the same person can't be linked. Nothing is sent to anyone else.
Events are off when the browser sends Do Not Track or Global Privacy Control, and when there's no server (a static build).
For operators
- Read them: filter your server logs for
"t":"event". On Railway: server service → Logs → search"t":"event". For counts, pipe the log lines throughjq, or ship logs to any log store. - Switch them off: set
EVENTS=offon the server. The client still sends them (they're tiny and batched), but the server answers 204 and logs nothing. - The code:
client/src/analytics.ts(client),server/src/events.ts(sink),shared/src/events.ts(the event list). Adding a field means adding it to the schema, so the list above stays complete.
If your mall serves visitors in a region with specific rules (for example the EU), a sentence in your own privacy notice pointing to this page is usually all these anonymous events need, but check with someone who knows your local law.