@ariestools/browser-kit
v1.1.0
Published
Config-driven provider actor launcher shared by browser realms
Downloads
1,732
Readme
@ariestools/browser-kit
Browser-facing config-driven launcher for provider actors used by pages, workers, service workers, and extension/plugin realms.
The package delegates platform-neutral catalog selection, provider planning,
provisioning, actor construction, supervision, and sessions to
@ariestools/actor-system. It adds a descriptor-free browser system manifest
and attaches actors in other realms using typed proxy factories without
resolving provider bindings again.
import {
compileBrowserSystem,
launchCompiledBrowserSystem,
} from '@ariestools/browser-kit'
const compiled = compileBrowserSystem({ actorCatalog, config, providerDescriptors })
const session = await launchCompiledBrowserSystem({ actorCatalog, compiled })Compilation acquires no providers and constructs no actors. The compiled value
retains installed descriptors and must stay in its owner realm. Use a
BrowserSystemManifest plus a typed proxy adapter when another realm attaches.
launchBrowserSystem remains the one-step compile-and-launch convenience.
Cross-realm manifests distinguish a compatible planId from the exact
systemInstanceId. Neither identifier is authentication; realm adapters must
authenticate their peers.
