# app.studynext.settings

> The user's app settings/preferences. Single record per user, rkey='self'. Pushed as a whole-record overwrite (last-write-wins by `updatedAt`, with per-field timestamps in `fieldUpdatedAt` so an unrelated push from one device doesn't clobber a not-yet-pushed edit from another). A few fields are intentionally device-local and never leave the client: syncPaused, lastTasksDate, lastPulledSettingsUpdatedAt, devTimeOffsetMinutes.

- Kind: record
- Record key: literal:self
- Authority: studynext.app
- Lexicon: 1
- Published by [studynext.app](https://lexicon.garden/identity/did:plc:nstib2qjcu3tyun7cxz4dxcm), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.settings)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.settings/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.settings/analytics)

## Record (`app.studynext.settings`)

Type: record · key literal:self

### Properties

- `advancedMode` (boolean): Advanced mode: shows advanced/experimental features such as drills. Old clients ignore this field.
- `aiAutoQuota` (boolean, required)
- `aiBurnoutWarning` (boolean, required)
- `aiReviewSchedule` (boolean, required)
- `analysisWidgetHidden` (array, required)
  - Constraints: maxLength: 30
  - `items` (string)
    - Constraints: maxLength: 50
- `analysisWidgetOrder` (array, required)
  - Constraints: maxLength: 30
  - `items` (string)
    - Constraints: maxLength: 50
- `celebratedThemeUnlocks` (array)
  - `items` (string)
- `collapsedDeckIds` (array): Deck ids whose children are folded in the deck list. Old clients ignore this field.
  - Constraints: maxLength: 500
  - `items` (string)
    - Constraints: maxLength: 100
- `fieldUpdatedAt` (unknown, required): Map of field name to ISO timestamp of its last local update. Used for per-field last-write-wins on pull, since the whole record is pushed/pulled as one unit.
- `flashcardAutoPlayAudio` (boolean)
- `fontFamily` (string, required)
  - Constraints: knownValues: default | rounded | zenKaku | serif | yomogi | pop | rock | dot | train | rampart | reggae | kiwiMaru | stick | kaiseiDecol | wdxlLubrifont | zenKurenaido
- `fsrsRetention` (string): FSRS desired retention 0.7-0.99, stringified — AT Protocol's data model has no float type. Old clients ignore this field.
- `goalDate` (string): Legacy/read compatibility only; goal calendar date in YYYY-MM-DD format, not a timestamp. New writers must store this in private settings, not this public record.
- `goalName` (string): Legacy/read compatibility only; new writers must store this in private settings, not this public record.
  - Constraints: maxLength: 200
- `goalSetDate` (string): Legacy/read compatibility only; date set in YYYY-MM-DD format, not a timestamp. New writers must store this in private settings, not this public record.
- `goals` (array): Legacy/read compatibility only; new writers must store this in private settings, not this public record.
  - Constraints: maxLength: 50
  - `items` (ref)
    - Reference: `#goal`
- `groupBySubject` (boolean, required)
- `hapticsEnabled` (boolean)
- `homeLayout` (string, required)
  - Constraints: knownValues: cards | list | minimal
- `language` (string, required)
  - Constraints: knownValues: system | ja | en | zh | ko
- `lastPlansFilter` (string, required)
  - Constraints: knownValues: active | paused | completed | all
- `lastPlansTab` (string, required)
  - Constraints: knownValues: tasks | plans | cards
- `leechAction` (string): Leech handling. Old clients ignore this field.
  - Constraints: knownValues: suspend | tag
- `likeNotificationsEnabled` (boolean, required)
- `materialColors` (array, required)
  - Constraints: maxLength: 50
  - `items` (string)
    - Constraints: maxLength: 20
- `mockExamSubjects` (array)
  - Constraints: maxLength: 200
  - `items` (ref)
    - Reference: `#subject`
- `mockExamSubjectsShared` (boolean)
- `mockExamSubjectsUpdatedAt` (string · datetime)
- `planListLayout` (string, required)
  - Constraints: knownValues: standard | list | grid | icons
- `pomodoroBreakMin` (integer, required)
  - Constraints: minimum: 1, maximum: 1440
- `pomodoroEndSound` (string, required)
  - Constraints: knownValues: hato1 | hato2 | door1 | entrance | chopstick | silent
- `pomodoroKeepAwake` (boolean)
- `pomodoroLongBreakMin` (integer, required)
  - Constraints: minimum: 1, maximum: 1440
- `pomodoroVibration` (boolean, required)
- `pomodoroWorkMin` (integer, required)
  - Constraints: minimum: 1, maximum: 1440
- `postStudyRecordToBluesky` (boolean, required)
- `progressStyle` (string, required)
  - Constraints: knownValues: ring | bar | heatmap
- `pushNotificationsEnabled` (boolean, required)
- `reminderEnabled` (boolean, required)
- `reminderTime` (string, required): HH:MM, 24-hour.
  - Constraints: maxLength: 5
- `reviewAlgorithm` (string)
  - Constraints: knownValues: sm2 | fsrs
- `screenshotMode` (boolean): Legacy/read compatibility only; device-local and must never be written to the public record.
- `shareStudying` (boolean, required)
- `studyDayWeights` (array): Default per-weekday study allocation, scaled to integers (AT Protocol's data model has no float type).
  - Constraints: minLength: 7, maxLength: 7
  - `items` (integer)
- `studyingOpenTo` (string, required)
  - Constraints: knownValues: public | friends | private
- `subjects` (array, required)
  - Constraints: maxLength: 200
  - `items` (ref)
    - Reference: `#subject`
- `syncTimetable` (boolean)
- `targetSchoolId` (string): Legacy/read compatibility only; new writers must store this in private settings, not this public record.
  - Constraints: maxLength: 100
- `targetSchoolName` (string): Legacy/read compatibility only; new writers must store this in private settings, not this public record.
  - Constraints: maxLength: 200
- `taskResetHour` (integer, required)
  - Constraints: minimum: 0, maximum: 23
- `themeCustomHex` (string)
  - Constraints: maxLength: 20
- `themeDarkMode` (boolean)
- `themeMode` (string, required)
  - Constraints: knownValues: system | light | dark | forest | sakura | ocean | amber | plum | stone | catppuccinMocha | catppuccinLatte | custom | note | neumorphism | neobrutalism | nightSky | pro | spark | photo | legacy
- `themePhotoAutoContrast` (boolean)
- `themePhotoBlur` (string): Neo theme photo blur, stringified float (AT Protocol has no float type).
- `themePhotoColor` (string)
  - Constraints: knownValues: system | light | dark | forest | sakura | ocean | amber | plum | stone | catppuccinMocha | catppuccinLatte | custom | note | neumorphism | neobrutalism | nightSky | pro | spark | photo | legacy
- `themePhotoContrast` (string): Neo theme photo contrast, stringified float (AT Protocol has no float type).
- `themePhotoImage` (blob): Neo theme background photo blob.
  - Constraints: accept: image/*
- `themePhotoImageBrightness` (string): Neo theme photo image brightness, stringified float (AT Protocol has no float type).
- `themePhotoImageRemoved` (boolean)
- `themePhotoTextBrightness` (string): Neo theme text brightness, stringified float (AT Protocol has no float type).
- `themePhotoTextColor` (string)
  - Constraints: maxLength: 20
- `units` (array, required)
  - Constraints: maxLength: 50
  - `items` (string)
    - Constraints: maxLength: 20
- `updatedAt` (string · datetime, required)
- `weekStartsOn` (integer, required): 0=Sunday, 1=Monday, 6=Saturday.
  - Constraints: enum: 0 | 1 | 6
- `weekdayTimeCapMinutes` (array)
  - Constraints: minLength: 7, maxLength: 7
  - `items` (integer)
    - Constraints: minimum: 0, maximum: 1440

## #goal (`app.studynext.settings#goal`)

Type: object

### Properties

- `color` (string)
  - Constraints: maxLength: 20
- `createdAt` (string · datetime)
- `date` (string, required): Goal calendar date in YYYY-MM-DD format; not a timestamp.
- `id` (string, required)
  - Constraints: maxLength: 100
- `name` (string, required)
  - Constraints: maxLength: 200

## #subject (`app.studynext.settings#subject`)

Type: object

### Properties

- `color` (string, required)
  - Constraints: maxLength: 20
- `createdAt` (string, required): Subject creation date in YYYY-MM-DD format; not a timestamp.
- `id` (string, required)
  - Constraints: maxLength: 100
- `name` (string, required)
  - Constraints: maxLength: 100

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "goal": {
      "properties": {
        "color": {
          "maxLength": 20,
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "date": {
          "description": "Goal calendar date in YYYY-MM-DD format; not a timestamp.",
          "type": "string"
        },
        "id": {
          "maxLength": 100,
          "type": "string"
        },
        "name": {
          "maxLength": 200,
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "date"
      ],
      "type": "object"
    },
    "main": {
      "description": "The user's app settings/preferences. Single record per user, rkey='self'. Pushed as a whole-record overwrite (last-write-wins by `updatedAt`, with per-field timestamps in `fieldUpdatedAt` so an unrelated push from one device doesn't clobber a not-yet-pushed edit from another). A few fields are intentionally device-local and never leave the client: syncPaused, lastTasksDate, lastPulledSettingsUpdatedAt, devTimeOffsetMinutes.",
      "key": "literal:self",
      "record": {
        "properties": {
          "advancedMode": {
            "description": "Advanced mode: shows advanced/experimental features such as drills. Old clients ignore this field.",
            "type": "boolean"
          },
          "aiAutoQuota": {
            "type": "boolean"
          },
          "aiBurnoutWarning": {
            "type": "boolean"
          },
          "aiReviewSchedule": {
            "type": "boolean"
          },
          "analysisWidgetHidden": {
            "items": {
              "maxLength": 50,
              "type": "string"
            },
            "maxLength": 30,
            "type": "array"
          },
          "analysisWidgetOrder": {
            "items": {
              "maxLength": 50,
              "type": "string"
            },
            "maxLength": 30,
            "type": "array"
          },
          "celebratedThemeUnlocks": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "collapsedDeckIds": {
            "description": "Deck ids whose children are folded in the deck list. Old clients ignore this field.",
            "items": {
              "maxLength": 100,
              "type": "string"
            },
            "maxLength": 500,
            "type": "array"
          },
          "fieldUpdatedAt": {
            "description": "Map of field name to ISO timestamp of its last local update. Used for per-field last-write-wins on pull, since the whole record is pushed/pulled as one unit.",
            "type": "unknown"
          },
          "flashcardAutoPlayAudio": {
            "type": "boolean"
          },
          "fontFamily": {
            "knownValues": [
              "default",
              "rounded",
              "zenKaku",
              "serif",
              "yomogi",
              "pop",
              "rock",
              "dot",
              "train",
              "rampart",
              "reggae",
              "kiwiMaru",
              "stick",
              "kaiseiDecol",
              "wdxlLubrifont",
              "zenKurenaido"
            ],
            "type": "string"
          },
          "fsrsRetention": {
            "description": "FSRS desired retention 0.7-0.99, stringified — AT Protocol's data model has no float type. Old clients ignore this field.",
            "type": "string"
          },
          "goalDate": {
            "description": "Legacy/read compatibility only; goal calendar date in YYYY-MM-DD format, not a timestamp. New writers must store this in private settings, not this public record.",
            "type": "string"
          },
          "goalName": {
            "description": "Legacy/read compatibility only; new writers must store this in private settings, not this public record.",
            "maxLength": 200,
            "type": "string"
          },
          "goalSetDate": {
            "description": "Legacy/read compatibility only; date set in YYYY-MM-DD format, not a timestamp. New writers must store this in private settings, not this public record.",
            "type": "string"
          },
          "goals": {
            "description": "Legacy/read compatibility only; new writers must store this in private settings, not this public record.",
            "items": {
              "ref": "#goal",
              "type": "ref"
            },
            "maxLength": 50,
            "type": "array"
          },
          "groupBySubject": {
            "type": "boolean"
          },
          "hapticsEnabled": {
            "type": "boolean"
          },
          "homeLayout": {
            "knownValues": [
              "cards",
              "list",
              "minimal"
            ],
            "type": "string"
          },
          "language": {
            "knownValues": [
              "system",
              "ja",
              "en",
              "zh",
              "ko"
            ],
            "type": "string"
          },
          "lastPlansFilter": {
            "knownValues": [
              "active",
              "paused",
              "completed",
              "all"
            ],
            "type": "string"
          },
          "lastPlansTab": {
            "knownValues": [
              "tasks",
              "plans",
              "cards"
            ],
            "type": "string"
          },
          "leechAction": {
            "description": "Leech handling. Old clients ignore this field.",
            "knownValues": [
              "suspend",
              "tag"
            ],
            "type": "string"
          },
          "likeNotificationsEnabled": {
            "type": "boolean"
          },
          "materialColors": {
            "items": {
              "maxLength": 20,
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "mockExamSubjects": {
            "items": {
              "ref": "#subject",
              "type": "ref"
            },
            "maxLength": 200,
            "type": "array"
          },
          "mockExamSubjectsShared": {
            "type": "boolean"
          },
          "mockExamSubjectsUpdatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "planListLayout": {
            "knownValues": [
              "standard",
              "list",
              "grid",
              "icons"
            ],
            "type": "string"
          },
          "pomodoroBreakMin": {
            "maximum": 1440,
            "minimum": 1,
            "type": "integer"
          },
          "pomodoroEndSound": {
            "knownValues": [
              "hato1",
              "hato2",
              "door1",
              "entrance",
              "chopstick",
              "silent"
            ],
            "type": "string"
          },
          "pomodoroKeepAwake": {
            "type": "boolean"
          },
          "pomodoroLongBreakMin": {
            "maximum": 1440,
            "minimum": 1,
            "type": "integer"
          },
          "pomodoroVibration": {
            "type": "boolean"
          },
          "pomodoroWorkMin": {
            "maximum": 1440,
            "minimum": 1,
            "type": "integer"
          },
          "postStudyRecordToBluesky": {
            "type": "boolean"
          },
          "progressStyle": {
            "knownValues": [
              "ring",
              "bar",
              "heatmap"
            ],
            "type": "string"
          },
          "pushNotificationsEnabled": {
            "type": "boolean"
          },
          "reminderEnabled": {
            "type": "boolean"
          },
          "reminderTime": {
            "description": "HH:MM, 24-hour.",
            "maxLength": 5,
            "type": "string"
          },
          "reviewAlgorithm": {
            "knownValues": [
              "sm2",
              "fsrs"
            ],
            "type": "string"
          },
          "screenshotMode": {
            "description": "Legacy/read compatibility only; device-local and must never be written to the public record.",
            "type": "boolean"
          },
          "shareStudying": {
            "type": "boolean"
          },
          "studyDayWeights": {
            "description": "Default per-weekday study allocation, scaled to integers (AT Protocol's data model has no float type).",
            "items": {
              "type": "integer"
            },
            "maxLength": 7,
            "minLength": 7,
            "type": "array"
          },
          "studyingOpenTo": {
            "knownValues": [
              "public",
              "friends",
              "private"
            ],
            "type": "string"
          },
          "subjects": {
            "items": {
              "ref": "#subject",
              "type": "ref"
            },
            "maxLength": 200,
            "type": "array"
          },
          "syncTimetable": {
            "type": "boolean"
          },
          "targetSchoolId": {
            "description": "Legacy/read compatibility only; new writers must store this in private settings, not this public record.",
            "maxLength": 100,
            "type": "string"
          },
          "targetSchoolName": {
            "description": "Legacy/read compatibility only; new writers must store this in private settings, not this public record.",
            "maxLength": 200,
            "type": "string"
          },
          "taskResetHour": {
            "maximum": 23,
            "minimum": 0,
            "type": "integer"
          },
          "themeCustomHex": {
            "maxLength": 20,
            "type": "string"
          },
          "themeDarkMode": {
            "type": "boolean"
          },
          "themeMode": {
            "knownValues": [
              "system",
              "light",
              "dark",
              "forest",
              "sakura",
              "ocean",
              "amber",
              "plum",
              "stone",
              "catppuccinMocha",
              "catppuccinLatte",
              "custom",
              "note",
              "neumorphism",
              "neobrutalism",
              "nightSky",
              "pro",
              "spark",
              "photo",
              "legacy"
            ],
            "type": "string"
          },
          "themePhotoAutoContrast": {
            "type": "boolean"
          },
          "themePhotoBlur": {
            "description": "Neo theme photo blur, stringified float (AT Protocol has no float type).",
            "type": "string"
          },
          "themePhotoColor": {
            "knownValues": [
              "system",
              "light",
              "dark",
              "forest",
              "sakura",
              "ocean",
              "amber",
              "plum",
              "stone",
              "catppuccinMocha",
              "catppuccinLatte",
              "custom",
              "note",
              "neumorphism",
              "neobrutalism",
              "nightSky",
              "pro",
              "spark",
              "photo",
              "legacy"
            ],
            "type": "string"
          },
          "themePhotoContrast": {
            "description": "Neo theme photo contrast, stringified float (AT Protocol has no float type).",
            "type": "string"
          },
          "themePhotoImage": {
            "accept": [
              "image/*"
            ],
            "description": "Neo theme background photo blob.",
            "type": "blob"
          },
          "themePhotoImageBrightness": {
            "description": "Neo theme photo image brightness, stringified float (AT Protocol has no float type).",
            "type": "string"
          },
          "themePhotoImageRemoved": {
            "type": "boolean"
          },
          "themePhotoTextBrightness": {
            "description": "Neo theme text brightness, stringified float (AT Protocol has no float type).",
            "type": "string"
          },
          "themePhotoTextColor": {
            "maxLength": 20,
            "type": "string"
          },
          "units": {
            "items": {
              "maxLength": 20,
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "weekStartsOn": {
            "description": "0=Sunday, 1=Monday, 6=Saturday.",
            "enum": [
              0,
              1,
              6
            ],
            "type": "integer"
          },
          "weekdayTimeCapMinutes": {
            "items": {
              "maximum": 1440,
              "minimum": 0,
              "type": "integer"
            },
            "maxLength": 7,
            "minLength": 7,
            "type": "array"
          }
        },
        "required": [
          "themeMode",
          "language",
          "pomodoroWorkMin",
          "pomodoroBreakMin",
          "pomodoroLongBreakMin",
          "pomodoroVibration",
          "pomodoroEndSound",
          "reminderEnabled",
          "pushNotificationsEnabled",
          "aiAutoQuota",
          "aiReviewSchedule",
          "aiBurnoutWarning",
          "homeLayout",
          "planListLayout",
          "progressStyle",
          "reminderTime",
          "shareStudying",
          "studyingOpenTo",
          "postStudyRecordToBluesky",
          "likeNotificationsEnabled",
          "analysisWidgetOrder",
          "analysisWidgetHidden",
          "taskResetHour",
          "units",
          "materialColors",
          "subjects",
          "lastPlansTab",
          "lastPlansFilter",
          "groupBySubject",
          "weekStartsOn",
          "fontFamily",
          "fieldUpdatedAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "subject": {
      "properties": {
        "color": {
          "maxLength": 20,
          "type": "string"
        },
        "createdAt": {
          "description": "Subject creation date in YYYY-MM-DD format; not a timestamp.",
          "type": "string"
        },
        "id": {
          "maxLength": 100,
          "type": "string"
        },
        "name": {
          "maxLength": 100,
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "color",
        "createdAt"
      ],
      "type": "object"
    }
  },
  "id": "app.studynext.settings",
  "lexicon": 1
}
```
