kernl API
    Preparing search index...

    Function createHandlerDefaults

    • Handler defaults over local storage and the account's kind-31129 events.

      Local defaults are kept at kernl:intent-defaults:v1 and always win, as the spec allows a shell's own preferences to select without prompting. Published preferences are read for the signed-in account and used to rank and pre-select handlers. Publishing is opt-in (kernl:intent-sync:v1), because the archetype a user set preferences for is public.

      Parameters

      Returns HandlerDefaults

      The defaults.

      const defaults = createHandlerDefaults({ storage, pool, tiers, pubkey, signer });
      await defaults.set('profile', 'nip5d:35129:…:profile-viewer');