Skip to content

Entry Points

Josh Dionne edited this page Sep 14, 2026 · 5 revisions

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

Entry Points

Import Contains Browser-safe
thetowersdk/data Game tables — costs, levels, effects, catalogs Yes
thetowersdk/save read*FromSaveRoot() readers and save inspection Yes
thetowersdk/node The save decoder Node — see below
thetowersdk/save-decoder The same decoder with no Node imports, for the browser Yes
thetowersdk/formatting Number and duration formatting matching the game Yes
thetowersdk/mechanics Game formulas — see below Yes
thetowersdk/wiki Fandom wikitext → Markdown — see below Yes
thetowersdk/contributions Whose work this package carries, as data Yes
thetowersdk/charts Curated chart catalog and its data — see below Yes
thetowersdk/builders Ready-made calculators — see below Yes
thetowersdk/calculators Every exported formula declared by name — what it reads, what it produces, how to call it Node
thetowersdk/bot Command registry, and every calculator as a command — see below Yes
thetowersdk/sheets Google Sheets reads and writes — see below Yes
thetowersdk/knowledge The mechanics oracle, and five years of patch notes — see below Yes
thetowersdk/assets Path helpers for artwork you supply — see below Yes

import { … } from 'thetowersdk' re-exports data, save and formatting together. Prefer the subpaths in real projects so your bundler can drop what you don't use.

import { computeWaveBaseHealth, abilityDamage } from 'thetowersdk/mechanics'
import { formatDuration } from 'thetowersdk/formatting'

Clone this wiki locally