Documentation
    Preparing search index...

    @kehto/services — Reference service implementations for the napplet protocol.

    Provides factory functions for creating ServiceHandler implementations:

    • createNotificationService() — Notification state management

    These are reference implementations. Shell hosts wire them into the runtime via registerService(). The services are browser-agnostic — shell adapters provide browser-specific callbacks.

    import { createNotificationService } from '@kehto/services';
    import type { Notification } from '@kehto/services';

    const notifications = createNotificationService({ onChange: (list) => updateBadge(list) });

    runtime.registerService('notify', notifications);

    Classes

    DmMemoryStore
    FsServiceError
    ResourceServiceError

    Interfaces

    BleServiceContext
    BleServiceOptions
    CacheServiceOptions
    CatalogIntentResolver
    CatalogIntentResolverOptions
    CommonServiceContext
    CommonServiceOptions
    ConfigService
    ConfigServiceOptions
    ConfigSettingsContext
    CoordinatedRelayOptions
    CordnCodecResult
    CordnCoordinatorClient
    CordnCoordinatorSubscription
    CordnDmAdapterOptions
    CordnDmClient
    CordnGroupMessage
    CordnRelayCoordinatorOptions
    CountRequest
    CountResult
    CountServiceOptions
    CvmCloseMessage
    CvmCloseResultMessage
    CvmDiscoverMessage
    CvmDiscoverQuery
    CvmDiscoverResultMessage
    CvmEventMessage
    CvmRequestMessage
    CvmRequestOptions
    CvmRequestResultMessage
    CvmServer
    CvmServerRef
    CvmService
    CvmServiceOptions
    CvmTransport
    DmAdapter
    DmConversation
    DmConversationPage
    DmConversationQuery
    DmMessage
    DmMessagePage
    DmMessageQuery
    DmOk
    DmPeer
    DmRelayPool
    DmSendRequest
    DmSendResult
    DmService
    DmServiceOptions
    DmStatus
    DmSubscribeRequest
    DmSubscription
    FsBackend
    FsBackendWatch
    FsService
    FsServiceOptions
    HostKeyEvent
    HostKeysBridge
    HostMediaBridge
    HttpUploaderOptions
    HttpUploaderRails
    IdentityServiceOptions
    IntentArchetypeSupport
    IntentAvailability
    IntentBehavior
    IntentCandidate
    IntentCatalogEntry
    IntentDispatchParams
    IntentOpenOptions
    IntentRequest
    IntentResolver
    IntentResolverContext
    IntentResult
    IntentServiceOptions
    IntentTargetController
    IntentTargetDispatch
    KeysServiceOptions
    LinkOpenContext
    LinkServiceOptions
    ListsServiceContext
    ListsServiceOptions
    ManifestArchetypeInput
    McpContentBlock
    McpMessage
    McpTool
    McpToolResult
    MediaServiceOptions
    MediaSessionCreateOptions
    MediaSourceRef
    NdrDmAdapterOptions
    NdrRelayTransport
    NdrRelayTransportOptions
    NdrRumorLike
    NdrRuntimeLike
    Nip17DmAdapterOptions
    Notification
    NotificationServiceOptions
    NotifyPresentation
    NotifyServiceOptions
    OutboxEventOptions
    OutboxEventResult
    OutboxPublishOptions
    OutboxPublishResult
    OutboxQueryOptions
    OutboxQueryStream
    OutboxQueryStreamSink
    OutboxRelayPlan
    OutboxRelayPool
    OutboxResult
    OutboxRouter
    OutboxRouterSubscription
    OutboxServiceOptions
    OutboxSubscribeOptions
    OutboxSubscriptionSink
    OutboxTarget
    RailServerConfig
    RelayListEntry
    RelayPoolOutboxRouterOptions
    RelayPoolServiceOptions
    ResourceInfo
    ResourceInfoContext
    ResourceSchemeInfo
    ResourceServiceOptions
    SerialServiceContext
    SerialServiceOptions
    StreamingOutboxRouter
    ThemeService
    ThemeServiceOptions
    UploadDimensions
    Uploader
    UploaderContext
    UploadInfo
    UploadInfoContext
    UploadRailInfo
    UploadRequest
    UploadResult
    UploadServiceOptions
    UploadStatus
    WebrtcServiceContext
    WebrtcServiceOptions

    Type Aliases

    ConfigSchemaValidation
    CvmInboundMessage
    CvmOutboundMessage
    CvmTransportError
    DmHexPubkey
    DmMessageStatus
    DmTimestamp
    FsBackendChange
    HostCacheBridge
    IntentHandlerPreference
    MaybePromise
    MediaAction
    MediaMetadataLike
    MediaPlaybackOwner
    MediaSessionTarget
    NostrTag
    NotifyInteractionMessage
    ResourceErrorCode
    ResourceInfoProvider
    ResourceService
    SignEvent
    UploadInfoProvider
    UploadRail
    UploadState

    Functions

    createBleService
    createBrowserMediaBridge
    createCacheService
    createCatalogIntentResolver
    createCommonService
    createConfigService
    createCoordinatedRelay
    createCordnDmAdapter
    createCordnRelayCoordinatorClient
    createCountService
    createCvmService
    createDmService
    createFsService
    createHttpUploader
    createIdentityService
    createIntentService
    createKeysService
    createLinkService
    createListsService
    createMediaService
    createNdrDmAdapter
    createNdrRelayTransport
    createNip17DmAdapter
    createNotificationService
    createNotifyService
    createOutboxService
    createRelayPoolOutboxRouter
    createRelayPoolService
    createResourceService
    createSerialService
    createThemeService
    createUploadService
    createWebrtcService
    manifestToIntentCatalogEntry
    resolveConfigValues
    validateConfigSchema