Repository navigation
Desktop and Mobile
Generated from the thetowersdk repository. Edits made here are overwritten on the next push — change the source file instead.
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.
Generated from TheTowerSDK — do not edit here. Docs and live demos: https://beardedunicorn.github.io/TheTowerSDK/
- Workshop
- Workshop Enhancements
- Labs
- Cards
- Modules
- Module Rarities and Merging
- Module Substats
- Module Upgrade Costs
- Ultimate Weapons
- Ultimate Weapon Plus
- Bots
- Guardian
- Relics
- Themes
- Tiers
- Battle Conditions
- Enemies
- Perks
- Tournaments
- Milestones
- The Vault
- Daily Missions
- Guild
- Currencies
- Reference Tables
- Glossary
- Irreversible Upgrades
- Game Patch Notes
- Game Version History
SDK
- Quick Start
- Entry Points
- How It Fits Together
- Getting an Official Game Export
- Reading a Save
- Reading The Community Wiki
- Game 29.1 Data
- Formulas
- Builders
- Charts
- Effective Paths
- Examples
- Templates
- Building a Bot On This
- Google Sheets
- Desktop and Mobile
- Optional Add-ons
- Using It With An AI Agent
- Using Your Own Artwork
- Names And Acronyms
- Patch Notes
- Accuracy
- Versioning
- Where the Docs Live
- Contributing
- Credits
- License
Guides
Examples
- 01-browse-game-data.ts
- 02-read-a-save-file.ts
- 03-plan-upgrades-from-a-save.ts
- 04-generate-a-chart.ts
- 05-generate-a-cost-table.ts
- 06-read-the-community-wiki.ts
- 07-format-like-the-game.ts
- 08-build-a-calculator.ts
- 09-build-a-bot.ts
- 10-read-a-sheet.ts
- 11-build-a-knowledge-base.ts
- 12-show-module-and-card-art.ts
Templates