WDK logoWDK documentation

Worklet Bundler

CLI tool for generating WDK Bare worklet bundles

Worklet Bundler packages selected WDK wallet and protocol modules into a Bare runtime bundle that runs outside your main React Native application thread. Powered by @tetherto/wdk-worklet-bundler.

Features

  • Config-driven bundle generation: Map logical network names to wallet packages and optional protocol names to protocol packages in wdk.config.js.
  • Generated worklet artifact: Produce a bundle for the Bare runtime plus generated TypeScript types for the host app.
  • Dependency validation helpers: Validate configured modules, detect the active package manager, and generate install or uninstall commands when dependencies are missing.
  • CLI workflow: Use init, validate, generate, list-modules, and clean without building your own wrapper.
  • Bare suspend and resume handling: beta.3 generated entrypoints suspend and resume both the bare-http1 and bare-https global agents when the Bare thread lifecycle changes.

Why this matters

  • Bundle generation keeps wallet and protocol code in a separate Bare worklet instead of the UI thread.
  • The generated type output gives the host app a stable import for the bundle surface.
  • The beta.3 runtime fix reduces the chance that HTTPS-backed worklet fetches keep running after a Bare thread suspension.

Need Help?

On this page