Skip to content

Desktop and Mobile

github-actions[bot] edited this page Nov 21, 2026 · 1 revision

Generated from the thetowersdk repository. Edits made here are overwritten on the next push — change the source file instead.

Desktop and Mobile

The SDK is plain TypeScript with one runtime dependency (zod, for schema validation) and no DOM assumptions, so it runs unchanged in an Electron renderer, an Electron main process, and a Capacitor WebView. @beardedunicorn/thetowersdk/node is the only entry point that needs Node — which is the boundary you want, since the decoder belongs on the side that is allowed to read files.

Pin the toolchain first, with the hash corepack verifies against:

{ "packageManager": "pnpm@10.8.1+sha512.c50088ba…", "engines": { "node": ">=22 <23" } }

docs/DESKTOP_AND_MOBILE.md covers the main/renderer split, the IPC boundary, running the bridge in-process, and what does and does not work on mobile.


Clone this wiki locally