@wvb/deno/desktop
Installation and API reference for @wvb/deno/desktop.
Use @wvb/deno/desktop in your project and browse its exported API.
Installation
@wvb/deno/desktop is an export subpath of @wvb/deno. Use the package name when installing it.
Add the JSR package to your project:
deno add jsr:@wvb/denoDownload the native library for the platform you run on:
deno run --allow-net --allow-read --allow-write @wvb/deno/installThe library is saved under .wvb/lib. For runtime permissions and packaging, see the Deno Desktop guide.
Functions
appDataDir
The OS application-data base directory where downloaded bundles persist: macOS ~/Library/Application Support, Windows %APPDATA%, Linux $XDG_DATA_HOME (or ~/.…
bundleSource
loadFromGitHub
Download the platform cdylib from a release from github release.
loadLib
Load the native library from an explicit path.
registerBindings
Register the @wvb/bridge transport on a Deno desktop window.
remote
resolveSourceConfig
The SourceConfig the defaults resolve to.
webviewBundle
Creates a Deno.serve-compatible Webview Bundle host.
Interfaces
BridgeErrorData
Error payload returned to @wvb/bridge.
BundleRoute
Serves a bundle from the source.
BundleSourceConfig
HttpResponse
ProxyRoute
Proxies to another HTTP server — typically a dev server with hot reload.
WebviewBundle
Deno Desktop facade that mounts bundles and optionally manages remote updates.
WebviewBundleConfig
Configuration used to build a Deno Desktop request handler.
WebviewBundleUpdaterConfig
Remote update options owned by a Deno Desktop host.
Type Aliases
ErrorResponse
The response for a request the protocol failed to serve (default: 500 with the message).
RemoteConfig
@wvb/node's RemoteConfig minus onDownload: Deno FFI cannot call back into JS from the worker thread a nonblocking symbol runs on, so download progress is not…
Route
Routes
Mount path → what is served there.
UriPathResolver
How the file path in the bundle is resolved from the request uri.