Skip to content

Entry Points

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.

Entry Points

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

import { … } from '@beardedunicorn/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 '@beardedunicorn/thetowersdk/mechanics'
import { formatDuration } from '@beardedunicorn/thetowersdk/formatting'

Clone this wiki locally