-
Notifications
You must be signed in to change notification settings - Fork 0
Notice
Generated from the thetowersdk repository. Edits made here are overwritten on the next push — change the source file instead.
TheTowerSDK Copyright (c) 2026 TmRxJD
This product includes work derived from other open source projects.
https://github.com/colinhacks/zod https://www.npmjs.com/package/zod
Author: Colin McDonnell zod@colinhacks.com License: MIT
The package's only runtime dependency. It is used to declare the shapes in
src/data/schemas.ts and the internal state schemas, so a data table can be
validated against its documented shape at runtime rather than only at compile
time.
How it reaches you differs by artifact, and the distinction matters:
- The npm package REQUIRES zod.
distimports it and npm installs it alongside; no zod source is inside the tarball. - The WebAssembly build BUNDLES it.
wasm/build.mjsruns esbuild overdist, so zod's code is compiled intothetowersdk.wasm. Anywhere that file is distributed, this notice goes with it.
MIT License:
Copyright (c) 2025 Colin McDonnell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
https://github.com/tower-idle-toolkit/tower-idle-toolkit https://www.npmjs.com/package/tower-idle-toolkit
Author: skye License: ISC (declared in the published package manifest; the repository does not contain a separate LICENSE file)
Derived from tower-idle-toolkit:
-
src/mechanics/wave-base-empirical-scaling.tsandsrc/mechanics/wave-scaling-regression-profile.ts— fromstatFormula.ts. The polynomial body, milestone-offset and compound-growth structure, the milestone divisors, and the HP/damage exponent bases originate there. Coefficients have since been refitted and the code restructured, but the approach and several constants are that project's work. -
src/mechanics/damage.ts— fromdamageFormula.ts. -
src/mechanics/bonuses.ts— fromplusFormulas.ts. -
src/formatting/duration.ts— fromformatTime.ts.
ISC License:
Copyright (c) 2023 skye
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author: Matthew (matteweon on Discord) Source: https://docs.google.com/spreadsheets/d/1YwZtKP6B4WYhRba5T6APJ1YxKNdfnIGQnprgnxmO7zc
Portions of the game data in src/data/ -- particularly the reference tables
and chart data (upgrade costs, mastery bonuses, substat ranges and related
values) -- were compiled with the help of Matthew's "Effective Paths"
spreadsheets for The Tower. That work saved an enormous amount of collation and
is a large part of why these tables are as complete as they are.
Shared with the community as a reference; included here with thanks.
Author: Florent Castelli (Orphis) Source: private repositories, shared directly
The lab CATEGORIES in src/data/generated/labs-categories.generated.ts are read
out of the game's own UI hierarchy rather than maintained by hand, and both the
method and the asset-reassembly step it depends on were adapted from Orphis's
extraction work with his permission. A lab's category is which container its UI
tile is parented under; recovering it that way closed a gap in which six labs --
including all four module-stat labs -- shipped in the data and could not be
rendered, because a hand-maintained list held 231 of the game's 253.
His independently produced lab names and localization tables were also used to cross-check ours; they agreed exactly, which is a large part of why this data is trusted. Licence terms to be formalised at his convenience.
Generated from TheTowerSDK — do not edit here. Docs and live demos: https://tmrxjd.github.io/TheTowerSDK/
- Quick Start
- Entry Points
- How It Fits Together
- Getting a Save File
- Reading a Save
- Reading The Community Wiki
- 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