Repository navigation
Home
Generated from the thetowersdk repository. Edits made here are overwritten on the next push — change the source file instead.
Game data, save-file reading and the game's own formulas for The Tower, as typed TypeScript — so you can build calculators, planners, spreadsheets, charts and bots without transcribing a single number by hand.
This is a fork. BeardedUnicorn/TheTowerSDK is maintained by Mike Herold and published as
@beardedunicorn/thetowersdk. It is forked from TmRxJD/TheTowerSDK, the original work of TmRxJD, whose package on npm isthetowersdk. See Credits.
npm install @beardedunicorn/thetowersdk- Game data — labs, workshop, modules, cards, perks, relics, guardians, bots, ultimate weapons and the vault, with their cost curves and effect values, as typed arrays.
-
Save reading — turn a player's
tool_export.jsoninto typed values: what they have researched, what they own, what is equipped, their run history. - Formulas — enemy scaling, damage, ultimate weapons, drops and workshop stats, as functions you call with a tier, a wave or a level.
- Charts — every level progression is already a plot-ready series, so the shipped catalogs cover 909 chartable series, each with an id to fetch it by, without you authoring one.
TypeScript, MIT licensed, one runtime dependency (zod).
Versions. The package follows semantic versioning from 1.0.0 — see Versioning. Game data changes when the game does, so pin an exact version if you need the numbers frozen.
Everything the SDK knows about the game, as pages: Game Wiki.
- Workshop: Workshop · Workshop Enhancements
- Labs: Labs
- Cards: Cards
- Modules: Modules · Module Rarities and Merging · Module Substats · Module Upgrade Costs
- Ultimate Weapons: Ultimate Weapons · Ultimate Weapon Plus
- Bots and Guardian: Bots · Guardian
- Collections: Relics · Themes
- Runs: Tiers · Battle Conditions · Enemies · Perks · Tournaments
- Progression: Milestones · The Vault · Daily Missions · Guild
- Economy: Currencies
- Reference: Reference Tables · Glossary · Irreversible Upgrades
- History: Game Patch Notes · Game Version History
- 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
- 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
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