pearcord-settings

P2P user appearance and UX preferences for Pearcord. Syncs across devices on pearcord:userprefs:{userId} via USER_PREFS_UPDATE gossip.

Defaults

Key Values Default
theme dark, light, amoled dark
density cozy, compact cozy
showLinkPreviews boolean true
showSecondsInTimestamps boolean false
blurSpoilers boolean true
composeDrafts { [channelId]: { text } } {}
companionLastGuildId guild id or null null — last server opened (desktop + companion); P2P sync via USER_PREFS
guildPresenceCache { [guildId]: { online, at } } {} — companion rail presence; synced on settings mesh (v0.8.95)

API

  • getPrefs() / setPrefs(patch, { gossip })
  • joinMesh(swarm, { deviceId })
  • simulateGossip(method, payload) — tests

Test

From apps/pearcord: npm run test:user-prefs

S
Description
Pearcord module: pearcord-settings — P2P user appearance prefs sync
Readme
260 KiB
Languages
JavaScript 100%