Database Management
How profiles decide which side is "you", how to delete matches, and how to back up and restore the whole database to a single file.
Your whole library — matches, notebooks, stars, notes, tags, saved presets — lives in your browser's storage on this device. The server holds no copy of it; the only traffic to it is a position you ask the engine to evaluate, or the moves of a match you choose to analyze as a whole (see Engine analysis). This page covers managing the library: setting your profile, deleting matches, and backing the lot up.
Profiles
A profile is you — the identity BackgammonDB uses to decide which side of each match is yours. It's a (name, level) pair, not just a name: the same name as a human and at a particular computer level count as distinct profiles, so your own games and your bot's never get pooled together.
- BackgammonDB auto-detects your most-frequent human profile the first time it loads a library.
- Switch profiles from the top bar. The app lists every distinct profile it found, with a match count.
Your profile drives the parts of the app that need to know which side is "you":
- The dashboard scopes to your matches.
- The positions browser is framed around your profile — its scope control (the "{profile} is…" selector: on-roll, off-roll, at the table, or not relevant) decides whether you're looking at your own decisions, your opponents', either side, or the whole library.
- The "your errors" filters and per-player PR read from your seat.
- In review, you come first: on the left of the scoreboard, first in every list and table, and in the first checker color. The board starts from your seat. You can still flip to the opponent's perspective at any time with the
Vkey.Vmoves only the board; your place in the header and your color do not change.
Meta-profiles
A meta-profile is one person with several names. You might be "Nick" in XG files, "nick_b" in Galaxy downloads, and another name on a third site. Pick a meta-profile as your profile, and every view shows the matches of all of those names together.
- Create one: open the profile picker in the top bar and choose New meta-profile… at the bottom of the list. Tick every profile that is you.
- The primary profile: the star marks the primary profile. Its name is the default name: the app shows it when you leave the display name empty. The first profile you tick is the primary; click the star on another ticked row to move it.
- The display name: type the name you want the app to show. Leave it empty to use the primary profile's name.
- Edit or delete one: while a meta-profile is your profile, click the pencil next to its name in the top bar. Delete asks for a second click to confirm. After a delete, the primary profile becomes your profile.
- One name alone: pick a single profile in the picker to see the matches of that name only, for example only your Galaxy games. Pick the meta-profile again to see them all.
The picker lists meta-profiles first, with a group icon and the number of profiles in each. A meta-profile is meant for one person. If two of the profiles you tick played each other, the modal warns you, but you can still save. In a match between two of your own profiles, the bottom seat of the file counts as you.
Notebooks in the library
Positions you build and save in Notebooks are stored alongside your matches but are not matches: they never appear in the matches list and never count toward your library statistics. They ride backups (see below), show up in the positions browser and — once starred, noted, or tagged — in Saved Positions, and open back into the editor from any of those surfaces.
Deleting matches
To delete individual matches, open a match in the matches view and use the delete button in its preview pane. It removes the match, its entry in the library index, its positions from the search index, and all stars, notes, and tags attached to it. Deletion is permanent.
Backup & restore
The Your library line at the top of the dashboard has Back up and Restore buttons that move your entire library as a single .bgdb file. On an empty dashboard, the Import a library file link under the action boxes restores a backup.
Back up writes everything that's yours:
- every match (XG and SGF) with full analysis,
- every notebook, entries and analysis included,
- stars, notes, and custom tags,
- saved presets.
What it doesn't include is device-level preferences: your settings (thresholds, theme, layout), your selected profile, and your meta-profiles stay on the machine and don't travel in a backup.
We're using a special file extension because in the future we're hoping to support a fully offline desktop app, and we could associate it with this file type to support opening these files automatically. But it's not a proprietary format: a .bgdb file is just a gzipped JSON file.
Restore replays a .bgdb file. Two things to know:
- It's a full replace, not a merge: importing wipes the current library and restores the backup in its place. Importing the same file twice leaves you with the same library.
- BackgammonDB confirms before deleting anything, offers to download a backup of your current library first, and automatically rolls back to your previous library if the import fails partway through. Older backups are upgraded to the current schema automatically on import.
Importing a backup replaces everything currently in this browser — matches, stars, notes, tags, and saved presets. Back up your current library first if you might still want it.
To move your library to a new machine: export on the old one, then import the .bgdb on the new one.