Packbase SDK

User settings

Read current setting definitions and update supported account preferences.

pb.me.settings() reads GET /user/me/settings. The response is a flat map of setting values plus a definitions object containing the server's current setting schema. The SDK exposes this as Record<string, unknown> because the server can add settings without a client release.

const  = await ..()
const  = (, {
  : (): 'gallery' | 'list' => {
    if ( !== 'gallery' &&  !== 'list') throw new ('Invalid feed layout')
    return 
  },
  : (): 'infinite' | 'paged' => {
    if ( !== 'infinite' &&  !== 'paged') throw new ('Invalid pagination')
    return 
  },
})
await ..({ : 'list', : 'paged' })

Updates merge only the supplied keys and return { success: boolean }. Do not send definitions back as a setting. To cancel a read, use pb.me.settings(undefined, { signal }); the first argument otherwise means update data.

Current preferences

KeyValues and current defaultBehavior
home_feed_typegallery or list; galleryPresentation for non-Pack feeds; does not filter media
feed_paginationinfinite or paged; infiniteClient feed browsing preference
content.show_nsfwBoolean; falseInclude Suggestive, Mature, and Explicit ratings in feeds
content.blur_sensitiveBoolean; trueAsk before revealing sensitive content
block_tagsString array; []Personal tag exclusions, including * wildcard patterns
howl_like_emojiOne Unicode emoji or available Pack emote token; 🔥Snapshotted on new publications
allow_tag_edits_from_othersBoolean; trueOther members may edit unlocked tags, subject to normal permission checks
allow_rehowlBoolean; trueWhether other members may rehowl this account's content
packchat_profile_linkBoolean; trueShow permitted Packbase attribution for verified Fluxer authors
accentServer-defined colour name; blueClient accent colour; use the definition's values list
share_accentBoolean; falseAllow the profile's shared accent colour
disallow_ai_search_parsingBoolean; trueRequest exclusion from AI search parsing
disallow_search_engine_indexingBoolean; falseRequest exclusion from search indexing
gossip_discoveryBoolean; falseMarked not_implemented; does not enable a supported feature

Search exclusion preferences are requests to crawlers, not content access controls. Use profile and Pack visibility rules for access restrictions.

The schema also contains client onboarding state: expand_pack_nag_dismissed, first_howl_nag_dismissed, onboarding_checklist_dismissed, checklist_howled_in_basecamp, checklist_joined_non_basecamp, checklist_liked_howl, checklist_howled_outside_basecamp, and checklist_invited_friend are booleans defaulting to false. first_howl_nag_activated_at is a timestamp string defaulting to ''.

The response's definitions is authoritative for available keys, defaults, enum values, ranges, requirements, and user_modifiable. Unknown keys and invalid values are rejected. Fields marked not_implemented do not promise an active feature. Old examples using dark_mode or notifications_email do not describe the current schema.

Tag exclusions apply to mixed and Pack discovery, pins, and search. Direct profile browsing has its own context. Account maturity flags no longer select content ratings: profile_avatar_mature, profile_banner_mature, and profile_howls_mature belong to pb.me.update(), not this settings map.

pb.packs(id).settings() is a read-only list of setting definitions and values. It does not write Pack metadata. Change Pack presentation through pb.packs(id).update({ feed_type }); change account preferences through pb.me.settings().

See Pack custom emotes, Tag editing, and Visibility for the associated authorization rules.

On this page