Skip to content

@kehto/services

Reference service handlers for Kehto runtime implementations.

Alpha status: Kehto is an early runtime implementation for a draft NIP-5D protocol. Service envelopes and NAP contracts are not final.

Install

bash
pnpm add @kehto/services @kehto/runtime @napplet/core @napplet/nap

Manifest Facts

FieldValue
Sourcepackages/services/package.json, packages/services/src/index.ts
Version0.12.3
Runtime entry./dist/index.js
Types entry./dist/index.d.ts
Dependencies@kehto/runtime
Side effectsfalse

Peer Dependencies

PackageRange
@napplet/core>=0.20.0 <0.21.0
@napplet/nap>=0.20.0 <0.21.0

Primary APIs

AreaExports
Legacy/reference basicscreateAudioService, createNotificationService, AudioSource, AudioServiceOptions, Notification, NotificationServiceOptions
IdentitycreateIdentityService, IdentityServiceOptions
Relay/cachecreateRelayPoolService, RelayPoolServiceOptions, createCacheService, CacheServiceOptions, HostCacheBridge, createCoordinatedRelay, CoordinatedRelayOptions
KeyscreateKeysService, KeysServiceOptions, HostKeysBridge, HostKeyEvent
MediacreateMediaService, createBrowserMediaBridge, MediaServiceOptions, HostMediaBridge, MediaAction
Notify/theme/config/resourcecreateNotifyService, NotifyServiceOptions, createThemeService, ThemeServiceOptions, ThemeService, createConfigService, ConfigServiceOptions, ConfigService, ConfigSchemaValidation, createResourceService, ResourceServiceOptions, ResourceService
Shell-mediated helperscreateLinkService, LinkServiceOptions, LinkOpenContext, createCommonService, CommonServiceOptions, CommonServiceContext, createListsService, ListsServiceOptions, ListsServiceContext, createSerialService, SerialServiceOptions, SerialServiceContext, createBleService, BleServiceOptions, BleServiceContext, createWebrtcService, WebrtcServiceOptions, WebrtcServiceContext

Scope Boundaries

  • Provides reference service handlers that host apps register with runtime.registerService().
  • Host apps provide backing bridges/callbacks for browser, native, signer, relay, fetch, notification, and media behavior.
  • BLE and WebRTC hook contexts expose emit(...) so host bridges can send runtime-owned event envelopes back to the requesting napplet.
  • Does not create a runtime or shell bridge by itself.

API Reference