enbox docs
Packages

@enbox/browser

Browser entrypoint for app APIs, auth, wallet connect, and DWeb helpers.

@enbox/browser is the package entrypoint for browser dapps. It re-exports the application API from @enbox/api, the browser-safe auth surface, and the wallet connect and DWeb utilities.

bun add @enbox/browser

Follow Build a browser dapp for the complete application scaffold. It is the canonical source for connection-store usage, the required service worker, live records, offline behavior, and deployment.

Browser package behavior documents conditional exports, lower-level imports, and persistent storage.

Key exports

ExportDescription
EnboxHigh-level application API from @enbox/api
createConnectionStore()Application connection lifecycle and observable snapshots
defineProtocol()Typed protocol definition helper
recordCodecsJSON, text, bytes, Blob, and private-file envelope codecs
AuthManagerLower-level auth/session lifecycle
BrowserConnectHandlerBrowser wallet connect handler
connectViaPopup()Low-level DWeb Connect popup handshake
activatePolyfills()DRL and DWeb browser feature activation
runConnectModal()Built-in wallet/connect method selector

On this page