Appearance
@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/napManifest Facts
| Field | Value |
|---|---|
| Source | packages/services/package.json, packages/services/src/index.ts |
| Version | 0.12.3 |
| Runtime entry | ./dist/index.js |
| Types entry | ./dist/index.d.ts |
| Dependencies | @kehto/runtime |
| Side effects | false |
Peer Dependencies
| Package | Range |
|---|---|
@napplet/core | >=0.20.0 <0.21.0 |
@napplet/nap | >=0.20.0 <0.21.0 |
Primary APIs
| Area | Exports |
|---|---|
| Legacy/reference basics | createAudioService, createNotificationService, AudioSource, AudioServiceOptions, Notification, NotificationServiceOptions |
| Identity | createIdentityService, IdentityServiceOptions |
| Relay/cache | createRelayPoolService, RelayPoolServiceOptions, createCacheService, CacheServiceOptions, HostCacheBridge, createCoordinatedRelay, CoordinatedRelayOptions |
| Keys | createKeysService, KeysServiceOptions, HostKeysBridge, HostKeyEvent |
| Media | createMediaService, createBrowserMediaBridge, MediaServiceOptions, HostMediaBridge, MediaAction |
| Notify/theme/config/resource | createNotifyService, NotifyServiceOptions, createThemeService, ThemeServiceOptions, ThemeService, createConfigService, ConfigServiceOptions, ConfigService, ConfigSchemaValidation, createResourceService, ResourceServiceOptions, ResourceService |
| Shell-mediated helpers | createLinkService, 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
- Generated module:
docs/api/modules/_kehto_services.html