setSettings((s) => ({ ...s, name: v }))}
placeholder="Your name"
maxLength={50}
/>
Shown on your profile and leaderboard
{/* Daily Goal */}
} title="Daily XP Goal">
{DAILY_GOAL_OPTIONS.map((opt) => {
const active = settings.dailyGoalXp === opt.value;
return (
setSettings((s) => ({ ...s, dailyGoalXp: opt.value }))}
className="flex items-center justify-between px-4 py-3 rounded-xl text-sm transition-all text-left"
style={{
background: active ? `color-mix(in srgb, ${ACCENT} 15%, transparent)` : "rgba(255,255,255,0.04)",
border: `1px solid ${active ? ACCENT : "rgba(255,255,255,0.08)"}`,
color: active ? "var(--text-primary)" : "var(--text-secondary)",
}}
>
{opt.label}
{opt.description}
{active && }
);
})}
{/* Connected Accounts */}
} title="Connected Accounts">
Lichess Username
setSettings((s) => ({ ...s, lichessUsername: v }))}
placeholder="e.g. DrNykterstein"
maxLength={30}
/>
Used to fetch Lichess puzzles with your auth token
Chess.com Username
setSettings((s) => ({ ...s, chesscomUsername: v }))}
placeholder="e.g. MagnusCarlsen"
maxLength={30}
/>
Used to display your Chess.com ratings on the profile
{/* Hugging Face (AI provider) */}
} title="Hugging Face (AI)">
Power the AI features (Feynman, Debate, Critical Thinking, coding written
grading, …) with your own free Hugging Face token. Create a read token at{" "}
huggingface.co/settings/tokens
.
Access Token
Model (optional)
Defaults to DeepSeek-V4-Flash. Enter any Hugging Face model id to
override (e.g. deepseek-ai/DeepSeek-V4-Flash,{" "}
meta-llama/Llama-3.3-70B-Instruct).
{hfSaveState === "saved" ? : null}
{hfSaveState === "saved" ? "Saved!" : "Save Token"}
{hfTestState === "testing" && }
{hfTestState === "ok" && }
{hfTestState === "error" && }
{hfTestState === "idle" && }
{hfTestState === "testing" ? "Testing…" : "Test connection"}
{hfTestMsg && (
{hfTestMsg}
)}
🔒 Your token stays in this browser (localStorage) and is sent only with
your own requests over HTTPS. It is never logged or stored on the server.
{/* Data & Privacy */}
} title="Data & Privacy">
Download a complete JSON export of all your RotNot data — XP history, activities,
skill trees, spaced repetition queue, and daily logs.
{exportState === "exporting" && }
{exportState === "done" && }
{exportState === "error" && }
{exportState === "idle" && }
{exportState === "exporting"
? "Exporting…"
: exportState === "done"
? "Downloaded!"
: exportState === "error"
? "Export failed"
: "Download your data"}
{/* Save button + feedback */}
{saveState === "saving" && }
{saveState === "saved" && }
{saveState === "error" && }
{saveState === "saving"
? "Saving…"
: saveState === "saved"
? "Saved!"
: saveState === "error"
? "Error"
: "Save Settings"}
{errorMsg && (
{errorMsg}
)}