
The run ends at 8,420. The player lets go of the mouse, checks the number in the corner, then refreshes the page to see if it stayed. No account screen appears. No profile badge claims the score. For now, "personal best" means the browser has kept a number for this player on this device.

What the browser actually keeps
The simplest way to hold a score without a login is localStorage. It is a small store built into the browser, and entries placed there are preserved between visits. One public GitHub gist shows how little code this takes. Its highscore module accepts a storage name, a maximum number of entries and a sort direction. It then saves, loads and renders the scores as an HTML list. In the demo, it keeps up to 14 scores by default, sorted from highest to lowest.
That is the whole mechanism. There is no account behind it, no server call and no check on who played. The number is written under a name the game chose, and the same game reads it back the next time the page loads. When the player sees 8,420 after a refresh, the browser is simply handing back what the game stored.
Local board, global board
A local score and a global score are different things, even if they share one screen. On itch.io, one game author says the local high score is saved in the browser's local storage, while the global high score is saved on a server. That split is the useful part. Local scores stay in the player's browser. A global board needs a server to hold everyone's entries.
So before sign-in, a personal best is a private record. It answers one question: have I beaten my own number in this browser? It cannot answer whether you beat anyone else, because nobody else can see it. A player who moves to a different device or browser would, going by how these sources describe localStorage, be starting from an empty list. The sources do not test that case, so treat it as a reasonable expectation and not a guarantee.
The Godot export catch
Some games complicate this. A Godot Forum thread covers web exports, where a game saves data to user:// with FileAccess. In the browser, those writes go to IndexedDB. They persist across page refreshes and navigation, so the game itself behaves as expected. The catch is that the surrounding website's JavaScript cannot read those values directly.
The thread's workaround is JavaScriptBridge. The game calls JavaScript through JavaScriptBridge.eval() to set and get values on window.localStorage. Both the game and the page then see the same stored number. The same reply mentions a limit of about 5MB per domain. That figure comes from a single forum answer, and the sources do not say whether it holds in every browser. For a handful of scores it hardly matters, but it is worth knowing it exists.
Assuming the page can read a user:// save will fail.
Choosing a storage plan
The sources point to a clear rule of thumb. Use localStorage alone when only the browser needs to remember a personal best and no shared leaderboard is required. Use a server when scores must be compared across players or devices. If a game and its host page both need the same data, bridge to localStorage instead of relying on user:// alone.
A few questions make the choice faster:
- Does the score need to be shared with other players, or is a personal best enough?
- Which storage does the game actually write to, and can the page read it?
- How many entries should be kept, and in what sort order?
The last one is easy to skip. A list of 14 scores sorted high to low is a different design from a single number that gets overwritten. The first gives a player a ladder to climb. The second gives them one target.
What no source settles
Several things stay open. The sources do not say how a no-login personal best is verified, or whether a locally stored score can be tampered with. They also do not say what happens to stored scores when a player clears browser data. It is a common worry, but none of the three sources states it, so it should not be presented as fact here. Private browsing and differences between browsers are not covered either.
The biggest gap for a site with optional sign-in is what happens to local scores when a player signs in later. No source addresses it. This piece also makes no claim about how any specific site handles sign-in or counts a personal best across games. That detail would need to come from the site's own documentation or its developers.
What the sources do support is modest and useful. A score that survives a refresh lives in this browser, under a name the game picked. It is a real personal best for that one place. Whether it counts anywhere else depends on a server somebody has to build.


