-
Notifications
You must be signed in to change notification settings - Fork 0
Optional Add ons
Generated from the thetowersdk repository. Edits made here are overwritten on the next push — change the source file instead.
Two packages sit alongside this one. Neither is a dependency and neither is bundled — install one when you want what it does, and nothing here changes if you never do.
| Package | What it adds | Install |
|---|---|---|
towerai |
A knowledge base and an answering layer over this SDK's data | npm install towerai |
adb-bridge |
Pulls a save off an Android device to a local page | npx adb-bridge |
TowerAI answers questions; this package supplies the numbers it answers with. Build a knowledge base by deriving prose from the catalogs rather than typing it, so a game update moves the corpus instead of silently invalidating it:
import { buildTrackerAiCanonicalKbChunks, validateCanonicalKbArray } from 'towerai/kb'
import { LAB_CATALOG } from 'thetowersdk/data'
const mine = LAB_CATALOG.map(lab => ({
chunk_id: `mine_lab_${lab.name}`,
disambiguation: 'How many levels this lab has — not what order to research it in.',
content: `The ${lab.name} lab has ${lab.levels?.length ?? 0} levels.`,
// …
}))
validateCanonicalKbArray([...buildTrackerAiCanonicalKbChunks(), ...mine])adb-bridge hands you save bytes over a WebSocket on 127.0.0.1:43781; this package reads them.
Gate on the bridge's reported protocol, never its release number — the package was renamed and
restarted at 0.x, so a version comparison reports a working bridge as too old.
docs/OPTIONAL_ADD_ONS.md covers both in full.
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