Your own settings

A few small choices an application remembers for each user, so they follow that user to another device: the Spell review app keeps the vote a user last worked in here.


What is kept

GET /api/me/settings returns the signed-in user's settings for the application they are using; PUT /api/me/settings with { "settings": { "name": value } } merges a change (null removes a name). The application is the one the app's own frontend stamps on the request (PROCESS_APPLICATION_ID), so two applications never see each other's settings; a request from outside an application's frontend reads and writes its own set.

NamesLetters, digits, _ and -, starting with a letter, at most 64 characters
ValuesA string of at most 256 characters, a number or a boolean
SizeAt most 32 names per user and application; past that the oldest give way
WhoThe user's own browser session only: refused (403) for a personal access token and while viewing as another user

Settings are presentation only. Nothing reads them to decide what anyone may see or do, and an app must work the same when they are missing or cannot be read (a new device, a private window, the request failing).

They are kept per deployment owner: a Mongo collection user-settings-v1-… under the Mongo driver, one JSON file in the data directory under the file driver, memory under the memory driver.

In the Spell review app

  • Last-used vote (lastVote). Opening the app without a vote in the address lands on the vote the user last worked in; a vote in the address always wins; with neither, this week's spell. A remembered vote that has already gone through says so, with a link to the upcoming one.