What is stored
This page is for you as the person who runs the site. After reading it you know what your site keeps about each viewer, message and payment, how long it stays, who can see it, what leaves your server, and how a viewer removes their data.
Your site keeps its data in one Postgres database on your server, plus the homeserver's own databases for the community rooms and direct messages. Nothing is sent to the project that makes Black Branch.
You are responsible for this data under the laws that apply to you. The site's Terms & Privacy page (/legal) describes it to your viewers, using the operator name and contact address you gave during setup. That page is written from what your install runs: it names only the payment services, AI provider and front door you set up, and the bot's memory only if memory is on. Read it once after setup, and again after you switch a service on or off.
Recommended: fill in Operator and Contact e-mail, on the setup pages or later with
sudo blackbranch set LEGAL_OPERATOR "…"andsudo blackbranch set LEGAL_CONTACT_EMAIL "…". Without them the privacy page shows "not set", and the contact address is where viewers send deletion requests the site cannot handle by itself.
What is kept
For each person who chats
Everyone who chats in your stream gets a record, whether they have an account on your site or only chat on Twitch, Kick, YouTube or Streamplace.
| What | Details |
|---|---|
| A chat identity | An internal id, the names they have used on each platform, a nickname and avatar if known, when they were first and last seen |
| Pronouns and time zone | Only if they set them, a mod set them, or (for Twitch chatters) the free alejo.io pronouns service has them. See Pronouns. |
| Chat statistics | How many messages and streams, a support tier (a band, not the exact amount), the vote score shown on their profile card, and further private scores built from them |
| Links between platforms | Which platform accounts belong to the same person, once they link them or a mod merges two identities |
For each site account
| What | Details |
|---|---|
| Profile | Matrix ID, display name, picture, banner, bio, name colour and style, and whether they are a mod or the admin. An email address only if one was given; sign-up asks for none. |
| Settings | Their site settings and saved looks, hidden users and words, dismissed tips, answers to the sign-up questions |
| Sign-in sessions | One row per signed-in browser, with that browser's Matrix sign-in tokens (encrypted) and when it was last seen |
| Linked platforms | Each linked platform account's id, name, the scopes granted, and its sign-in tokens (encrypted) |
| Points | The balance, and a ledger of every change |
| Activity | Votes on messages and forum posts, presence (online, idle, which tab), badges and styles unlocked |
| Support tickets | Questions sent through the help pop-up, with the conversation |
The password is not in the site's database. MAS, the homeserver's sign-in service, keeps it as a hash.
For each message
| Where it was written | What is kept |
|---|---|
| Site chat (typed on your site) | The text, author, time, what it replied to, emotes, where it was cross-posted, and whether it was deleted. A Supporter's hidden text is kept as typed, beside the scrambled copy everyone else sees. |
| Platform chat (Twitch, Kick, YouTube, Streamplace) | The text, the sender's platform name, their badges there (mod, VIP, member, sub tier), emotes, reply, the platform's own message id, and whether it was deleted |
| Community rooms and direct messages | Kept by the homeserver, not the site. Direct messages started on the site, and any room with encryption switched on, are stored only in locked form. Other rooms are stored readable. See Encryption. |
A deleted chat message is hidden, not erased. The text stays in the database, marked deleted, so mods can still review it. Public chat history leaves deleted messages out.
For each payment
| What | Details |
|---|---|
| Tips and donations | Amount, currency, the name and message the supporter gave (or "anonymous"), the payment service's reference, and refund status |
| Subscriptions | The Stripe or PayPal customer and subscription ids, tier, status and renewal date. Subscriptions reported by Patreon, Ko-fi, Twitch or Kick are kept the same way. |
| Gifts | Who gifted whom, and for how long |
| Payment problems | Every failed payment, refund and dispute, with the service's reason code |
| Support from platforms | Ko-fi, Patreon, Streamlabs, and platform subs, bits and gifts: who, how much, which stream |
| Payments that could not be counted | A payment in a currency the site cannot price, or one the ledger could not take: the name, message, amount and currency as they arrived, until you credit or dismiss it |
Card numbers are never stored. The card form is Stripe's, and card details go straight to Stripe. PayPal's button goes straight to PayPal.
For moderation
Bans and timeouts with their reason and who set them, the moderation log, reports (with the message reported and who resolved them), messages automod held for review (with their text), suspicious-account marks, per-person slow mode, and the result of every moderation action sent to a platform. See Moderating.
For the bot's memory
When memory is switched on, each new chat message of four words or more (you can change that number) is turned into embeddings and stored with its text, the sender's name and the time. To make the embedding, the text is sent once to the AI provider you chose. The bot can later find and quote these messages.
Memory is off on a new install. Once on, it covers everyone who chats, including platform-only chatters, except people who switched it off for themselves (see What a viewer can do about their data).
Technical records
| What | Why it exists |
|---|---|
| Browser errors | A page that crashes sends the error, the page address, the browser's user agent and, if signed in, the account. This is how you find out a page is broken for someone. |
| Device health | Every page sends a short performance report (device type, screen, memory, how smoothly the page ran, network use), with the account if signed in. This is how slow phones are found. |
| Viewer counts | How many people watched on each platform, every few minutes, as numbers only |
| AI use | Per day: how many calls each AI feature made and how many tokens it used, as counts only |
| Settings history | Every change to a setting in the Admin Panel, with who made it. Saved API keys are kept encrypted, and the history shows only their last four characters. |
The database does not keep visitors' IP addresses. Rate limits are counted in memory and forgotten. The service logs can still hold addresses: the homeserver's log records the address of each request until the log rotates away (each service keeps its last 30 MB). Like every Matrix server, the homeserver also records the addresses each signed-in device was used from, and Synapse keeps them for 28 days by default (Synapse: user_ips_max_age).
How long it is kept
"No automatic expiry" below means that nothing in this release removes that data by age. It is not a recommendation to keep it. A viewer's account deletion, a mod's purge or your own action can still remove parts of it.
| Data | Kept for |
|---|---|
| Site chat and platform chat | No automatic expiry. A deleted message is hidden, not erased. Deleting an account blanks that person's text, except while a mod has an open case about them. |
| Messages in community rooms and direct messages | The homeserver's retention policy: 180 days for any room without its own setting, including every direct message and #forum. #general is created with 30 days. A room can choose 1 day to 1 year. See What message retention removes, and what it does not. |
| Pictures and files uploaded to the homeserver | No automatic expiry. Message retention removes messages, not the files they pointed to. |
| Bot memory | 90 days by default. Change Keep memories for in Admin Panel → AI → Embeddings (1 day to 10 years, or forever). Older memories are removed once a day. A viewer who switched memory off stays switched off, whatever this setting says. |
| Payment records | No automatic expiry. The site needs some of it to keep working: the payment service's reference stops one payment being counted twice, and a refund points back at its payment. Deleting an account removes the name and message from that person's payments but keeps the amount, date and reference. |
| Messages automod held for review | Deleted 30 days after they were held, whatever their status. A suspicious mark automod placed goes when the last of its held messages is deleted. |
| Other moderation records | No automatic expiry. Bans, reports, marks placed by mods, the mod log. Some survive account deletion (see What a viewer can do about their data). |
| Browser errors | 30 days from when the error was first seen. A clean-up runs once a day. |
| Device health | About 30 days from a page's last report. The clean-up runs after every 50 reports, so on a quiet site older rows can stay longer. |
| Unclaimed gifted subscriptions | Removed once the 90-day claim period runs out, at the next hourly sweep. The payment record of the gift stays. |
| Sessions, settings, points, votes, support tickets, settings history, profiles of people who only chat on a platform | No automatic expiry. A site account's own data goes when the viewer deletes their account, or when you remove it. |
| Backups | 7 daily and 4 weekly snapshots by default (Admin Panel → Site → Site, card Backups). This is not a deadline: see Where deleted data can still be. |
| Service logs | Each service keeps its last 30 MB of log (three files of 10 MB), however old. This does not cover the server's system journal, sudo's log, Cloudflare, or any outside service. |
What message retention removes, and what it does not
The homeserver's retention works in two steps (Synapse: message retention). When a message passes its room's limit, the homeserver stops serving it to anyone. Later, a clean-up job removes it from the homeserver's database. Even then:
- State events stay: a room's name, topic, membership and similar settings.
- The most recent message of a room is kept in the database, hidden, so the room keeps working.
- Files attached to messages stay.
- Copies on people's devices are not touched. Matrix apps may keep messages they already downloaded, and people can save or screenshot anything they read.
- With federation on, other servers that took part in a room keep their own copy, under their own rules.
Where deleted data can still be
"Deleted" can mean five different things, and the site does not do all five at once:
| Where | What happens there |
|---|---|
| What the public sees | A deleted chat message leaves public chat history at once. A deleted account's messages show as "deleted". |
| Your live server | Depends on the table above: some data is erased, some only hidden, some kept on purpose |
| Your backups | Each snapshot holds the data as it was that night. Snapshots are counted per day and per week that has a backup, so a server that backed up rarely keeps older snapshots. If thinning fails (the Doctor's Backups rows say so), old snapshots stay. (restic: removing snapshots) |
| People's devices | Whatever a viewer's app or browser already downloaded |
| Other Matrix servers | Copies of federated rooms, only if federation is on |
Restoring an older backup brings back what it held: messages, accounts and choices (such as a viewer switching bot memory off) as they were that night. Anything decided since is lost, and nothing in this release applies later deletions or opt-outs again. Check with your community before you reopen a restored site.
If your local law sets a limit on how long you may keep something, keeping to it is up to you in this release: the site does not remove these records by age. Remove rows from the database yourself with care, because the site relies on payment references, refund links and active bans.
Who can see it
| Who | What they see |
|---|---|
| Anyone, signed in or not | Chat as it happens, the public chat history (deleted messages left out), forum posts, public profile cards (below), the points leaderboard |
| The viewer | Everything on their own profile, their settings, their points and their own messages |
| Supporters | Supporter-only hidden text in chat |
| Mods | The whole chat history including deleted messages, a person's names on every platform and which accounts are linked, how much they chat, when they were first seen, marks, the moderation log, held messages, reports, hidden Supporter text |
| The admin | Everything mods see, plus support tickets (Admin Panel → Site → Support tickets), payment history and every setting. Only the admin can forget a person's bot memory. |
| Whoever has root on the server | Everything in the databases and .env, except the contents of end-to-end encrypted messages |
Anyone can read a person's public profile card from the site's public profile address: their name, message and stream counts, vote score, whether they are a member and their tier, their support tier, and pronouns. Other scores stay private. Someone who may not see a person's links gets the stats of that one platform identity only, and the pronouns only under the same rule.
What each role can do is on Moderating.
Linking stays private
Linking two platform accounts does not tell the public they belong to the same person. Every chat line carries a public id that is different for each person on each platform, so a viewer's Twitch messages and Kick messages cannot be grouped together from outside. The id is made with a key only your server holds. Your server can still find the person behind it (for the profile card or a mod's lookup), but nobody else can.
A viewer's links become visible in two ways, both their own choice:
- They switch on Show my linked platforms on my profile in Linked accounts. It is off by default.
- They send a message from the site to a platform. It is posted from their linked account there, so anyone watching both chats can see it was them.
Mods always see which accounts are linked, because they need it to moderate. See Linking your platforms.
Tokens and keys at rest
Some of what the site stores would let someone act as a viewer or as you. These are encrypted in the database with keys that live only in the server's .env file:
| What | Encrypted with | Notes |
|---|---|---|
| Platform sign-in tokens (Twitch, Kick, YouTube, Streamplace) and each browser's Matrix tokens | TOKEN_ENC_KEY |
AES-256-GCM. The site refuses to store a token at all if the key is missing, rather than store it readable. |
| API keys and passwords you paste into the Admin Panel (Stripe, PayPal, AI providers, voice service and the rest) | INSTANCE_MASTER_KEY |
A separate key on purpose. Only the chat service holds it, and it refuses to start if the key is malformed. |
A copy of the database alone, without .env, does not reveal these. Both keys are in your backups' copy of .env, which is why backups are encrypted with the backup passphrase. The Doctor checks that a stored token still decrypts (A stored token decrypts with TOKEN_ENC_KEY) and that saved keys do (Saved credentials decrypt).
⚠ Never replace TOKEN_ENC_KEY or INSTANCE_MASTER_KEY with a new value. Everything encrypted with the old one becomes unreadable: every viewer would have to link their platforms again, and you would enter every key again. If one is lost, restore .env from a backup.
What leaves your server
| Goes to | What | When |
|---|---|---|
| Cloudflare (tunnel mode) | All site traffic passes through it, readable to Cloudflare. See What Cloudflare can see. | Always, in tunnel mode |
| Each streaming platform | Messages viewers send from the site into that platform's chat, and moderation actions | When someone cross-posts or a mod acts |
| Stripe, PayPal | What a checkout needs: the amount and, for a signed-in buyer, a customer record tied to their account | When someone pays |
| Your AI provider | The messages each AI feature reads. See What is sent to your provider. | Only with an AI feature switched on |
| ElevenLabs | The text of each alert read aloud on stream | Only with spoken alerts switched on |
| alejo.io | A Twitch chatter's user name, to look up their pronouns | When a Twitch chatter with no pronouns set chats |
| ntfy, or the email command you set | Your alerts as the operator: the kind of problem and counts, never a name, amount or message | Only if you set an alert topic (in the Admin Panel or BB_ALERT_NTFY_URL in .env) or an email command (BB_ALERT_EMAIL_COMMAND in .env) |
| Your backup bucket or SFTP server | The nightly backup, encrypted with your backup passphrase | Only if your backups go there |
| The project's release feed | A request for the signed list of releases, with no data about your site | Every night |
This release sends no bug reports anywhere, so the Send bug reports switch is hidden.
What a viewer can do about their data
| To | Do this |
|---|---|
| Stop the bot remembering them, and erase what it remembered | Profile card → Privacy → switch off Let the bot remember my messages. It takes effect at once, for their account and every platform account linked to it. See Your account. |
| Hide their links between platforms | Leave Show my linked platforms on my profile off, or unlink the platform |
| Unlink a platform | Linked accounts → unlink. The stored tokens are deleted, and the site asks the platform to withdraw its permission. The platform account's past messages stay part of the same person's history: unlinking does not split a merged identity. |
| Delete everything | Profile card → Privacy → Delete my account…. See Deleting your account. |
What deleting an account does
Before it runs, the site asks for a sign-in from the last 15 minutes. A subscription the site still bills through Stripe or PayPal must be cancelled first.
Removed: the profile, settings, linked accounts and their tokens, the site's copies of what their linked accounts said, their bot memory, votes, points balance, support tickets, and records of subscriptions from services the site does not bill (Patreon, Ko-fi, Twitch, Kick). Their Matrix account is deactivated.
Kept, without their name:
- Their messages stay in the conversation as "deleted", with the text removed. Every kept chat line and payment then points at one shared "(deleted)" person instead of a profile.
- Payment records: amount, date and the payment service's reference, with the name and message removed.
- The points ledger: the balance goes to zero and one more line records the forfeit, but the history stays.
- An empty account row, so the account cannot sign in again and old chat lines still point at something.
- A record of the deletion and how far it got.
- If they had switched bot memory off, their linked platform ids, so the bot keeps not remembering them on those platforms.
Moderation still applies:
- While a mod has an open case about them (a ban, a report, a held message or a mark), the text of their messages stays, visible to mods only, with no profile attached.
- Deleting an account does not lift a ban. A private record keeps which platform ids the ban covered. A new message from one of them starts a fresh chat identity that carries an open mark saying so, cannot be merged, and cannot be linked by a new account. If a timeout was all that held them, this record ends when the timeout does.
The site cannot delete a Matrix account on another server. If the homeserver step fails, the site tells the viewer you will finish it, and you get a phone alert if you set one up.
Viewers who only chat on a platform have no account to delete and no switch to press. They ask you, at your contact address. As the admin, you can forget a person's bot memory from their profile card in the mod tools.
There is no "download my data" button in this release. A viewer who asks for a copy of their data asks you, and you answer from the database.
The mod tools hide a platform-only chatter's messages one at a time, or those from the last 24 hours with a purge. Removing all of their older messages has to be done in the database.