Applesauce
    Preparing search index...

    Module applesauce-extra

    Applesauce Extra

    A collection of stuff that doesn't fit into any applesauce package.

    Each module has its own entry point (applesauce-extra/nspam, applesauce-extra/vertex, applesauce-extra/primal, applesauce-extra/open-ranking, applesauce-extra/remote-monitor-relay-liveness), so importing one doesn't load the others or their optional dependencies.

    Extended relay interface for Primal's caching server. Provides access to Primal's enhanced API endpoints for content discovery, user recommendations, trending hashtags, notifications, and more. Includes methods for:

    • Content exploration and scoring
    • User search and recommendations
    • Trending hashtags and images
    • Notification management
    • Advanced search and feeds
    • Media metadata retrieval

    Code: src/primal.ts Upstream: PrimalHQ/primal-server

    Extended relay interface for the Vertex relay (relay.vertexlab.io). Provides reputation-based user discovery and verification services. Includes methods for:

    • Profile lookup with reputation scoring
    • Reputation verification
    • Credit balance checking
    • Automatic authentication handling

    Code: src/vertex.ts Upstream: vertexlab.io

    RemoteMonitorRelayLiveness supplies monitor-backed health through the same relay filtering interface as local RelayLiveness, without probing target relays.

    const health = new RemoteMonitorRelayLiveness(eventStore, {
    monitors: [{ pubkey: monitor, relays: monitorRelays }],
    });
    const pool = new RelayPool({ liveness: health });

    Pass health to RelayPool to skip its unhealthy relays in every request, or to ignoreUnhealthyRelays, ignoreUnhealthyRelaysOnPointers, or ignoreUnhealthyMailboxes to filter specific relay lists. The shared EventStore validates and caches monitor events; the source manages publisher trust, report expiry, and negative consensus. See Relay Liveness for configuration and lifecycle management.

    • Configure trusted publishers explicitly and prefer two independent monitors.
    • Preserve unknown relays when reports are missing.
    • Supply interpretReport only for a provider with documented explicit-negative semantics, or enable staleAsOffline to treat reports that active monitors stopped refreshing as offline.
    • Match the requested capability and transport to the application.

    NspamClassifier runs the nspam reply-spam model on-device and scores authors from their newest kind 1 replies. filterSpam removes spam replies from a timeline.

    const nspam = await NspamClassifier.load();
    const replies$ = eventStore.timeline({ kinds: [1], "#e": [root.id] }).pipe(filterSpam(nspam));

    Code: src/nspam/ Upstream: barrydeen/nspam

    NspamClassifier
    OpenRanking
    PrimalCache
    RemoteMonitorRelayLiveness
    Vertex
    Nip66LivenessOptions
    Nip66Monitor
    Nip66RelayObservation
    Nip66RelayState
    AdvancedFeed
    AdvancedSearch
    BroadcastEvents
    BroadcastReply
    CacheRequest
    CheckFilterlist
    Explore
    ExploreGlobalMostZapped4h
    ExploreGlobalTrending24h
    ExploreLegendCounts
    FeedDirective
    FeedDirective2
    GetAdvancedFeeds
    GetDefaultRelays
    GetFilterlist
    GetMediaMetadata
    GetNotifications
    GetNotificationsSeen
    GetRecommendedUsers
    GetSuggestedUsers
    Nip66RelayStatus
    NoteMentions
    NoteMentionsCount
    NspamClassifierOptions
    NspamModel
    NspamNote
    NspamScore
    OpenRankingAlgorithm
    OpenRankingCapabilities
    OpenRankingOptions
    OpenRankingRequestOptions
    OpenRankingSearchResult
    OpenRankingStats
    Relays
    ReportNote
    ReportUser
    Scored
    ScoredUsers
    ScoredUsers24h
    SearchProfileResult
    SetNotificationsSeen
    SortMethod
    TrendingHashtags
    TrendingHashtags4h
    TrendingHashtags7d
    TrendingImages
    TrendingImages4h
    TrustedUsers
    UserProfileScoredContent
    UserProfileScoredMediaThumbnails
    UserSearch
    VerifyReputationOptions
    VerifyReputationResult
    DEFAULT_OPEN_RANKING_PROVIDER
    DEFAULT_PRIMAL_RELAY
    NSPAM_FEATURE_COUNT
    NSPAM_MAX_BUNDLE
    NSPAM_MODEL_URL
    NSPAM_MODEL_VERSION
    VERTEX_RELAY
    VERTEX_SEARCH_KIND
    VERTEX_VERIFY_REPUTATION_KIND
    extractNspamFeatures
    filterSpam
    isNspamReply
    loadNspamModel
    parseNspamModel
    predictNspam