Documentation
    Preparing search index...

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

    Provides factory functions for creating ServiceHandler implementations:

    • createAudioService() — Audio source registry
    • 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 { createAudioService, createNotificationService } from '@kehto/services';
    import type { AudioSource, Notification } from '@kehto/services';

    const audio = createAudioService({ onChange: (sources) => updateUI(sources) });
    const notifications = createNotificationService({ onChange: (list) => updateBadge(list) });

    runtime.registerService('audio', audio);
    runtime.registerService('notifications', notifications);

    Interfaces

    AudioServiceOptions
    AudioSource
    BleServiceContext
    BleServiceOptions
    CacheServiceOptions
    CatalogIntentResolver
    CatalogIntentResolverOptions
    CommonServiceContext
    CommonServiceOptions
    ConfigService
    ConfigServiceOptions
    CoordinatedRelayOptions
    CvmCloseMessage
    CvmCloseResultMessage
    CvmDiscoverMessage
    CvmDiscoverQuery
    CvmDiscoverResultMessage
    CvmEventMessage
    CvmRequestMessage
    CvmRequestOptions
    CvmRequestResultMessage
    CvmServer
    CvmServerRef
    CvmService
    CvmServiceOptions
    CvmTransport
    HostKeyEvent
    HostKeysBridge
    HostMediaBridge
    HttpUploaderOptions
    HttpUploaderRails
    IdentityServiceOptions
    IntentArchetypeSupport
    IntentAvailability
    IntentBehavior
    IntentCandidate
    IntentCatalogEntry
    IntentOpenParams
    IntentRequest
    IntentResolver
    IntentResolverContext
    IntentResult
    IntentServiceOptions
    IntentWindowController
    KeysServiceOptions
    LinkOpenContext
    LinkServiceOptions
    ListsServiceContext
    ListsServiceOptions
    ManifestArchetypeInput
    McpContentBlock
    McpMessage
    McpTool
    McpToolResult
    MediaServiceOptions
    MediaSessionCreateOptions
    MediaSourceRef
    Notification
    NotificationServiceOptions
    NotifyServiceOptions
    OutboxPublishOptions
    OutboxPublishResult
    OutboxQueryOptions
    OutboxRelayPlan
    OutboxRelayPool
    OutboxResult
    OutboxRouter
    OutboxRouterSubscription
    OutboxServiceOptions
    OutboxSubscribeOptions
    OutboxSubscriptionSink
    OutboxTarget
    RailServerConfig
    RelayListEntry
    RelayPoolOutboxRouterOptions
    RelayPoolServiceOptions
    ResourceServiceOptions
    SerialServiceContext
    SerialServiceOptions
    ThemeService
    ThemeServiceOptions
    UploadDimensions
    Uploader
    UploaderContext
    UploadRequest
    UploadResult
    UploadServiceOptions
    UploadStatus
    WebrtcServiceContext
    WebrtcServiceOptions

    Type Aliases

    ConfigSchemaValidation
    CvmInboundMessage
    CvmOutboundMessage
    CvmTransportError
    HostCacheBridge
    IntentHandlerPreference
    MaybePromise
    MediaAction
    MediaMetadataLike
    MediaPlaybackOwner
    MediaSessionTarget
    NostrTag
    OutboxStrategy
    ResourceService
    SignEvent
    UploadRail
    UploadState

    Functions

    createAudioService
    createBleService
    createBrowserMediaBridge
    createCacheService
    createCatalogIntentResolver
    createCommonService
    createConfigService
    createCoordinatedRelay
    createCvmService
    createHttpUploader
    createIdentityService
    createIntentService
    createKeysService
    createLinkService
    createListsService
    createMediaService
    createNotificationService
    createNotifyService
    createOutboxService
    createRelayPoolOutboxRouter
    createRelayPoolService
    createResourceService
    createSerialService
    createThemeService
    createUploadService
    createWebrtcService
    manifestToIntentCatalogEntry