Wizard tower for developers. Spells are functions, scrolls are docs, familiars are daemons, mana is compute, the crystal ball is monitoring.
  • JavaScript 100%
Find a file
2026-06-30 11:13:58 +00:00
node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 fix: e2e tests now use CommonJS require for node --test compatibility 2026-06-30 11:13:55 +00:00
src feat(#1): wizard tower engine — spells, mana, familiars, scrolls, ASCII tower 2026-06-15 10:39:06 +00:00
tests fix: e2e tests now use CommonJS require for node --test compatibility 2026-06-30 11:13:55 +00:00
package.json feat(#1): wizard tower engine — spells, mana, familiars, scrolls, ASCII tower 2026-06-15 10:39:06 +00:00
README.md feat(#1): wizard tower engine — spells, mana, familiars, scrolls, ASCII tower 2026-06-15 10:39:06 +00:00

code-wizard-tower

Wizard tower for developers. Spells are functions, scrolls are docs, familiars are daemons, mana is compute, the crystal ball is monitoring.

Usage

const { WizardTower, SPELLS, FAMILIAR_TYPES, SCROLL_TYPES, POTION_TYPES } = require('./src/tower');

const tw = new WizardTower('Azure Spire');
tw.setArchmage('Gandalf');

// Summon familiars (daemons)
tw.summonFamiliar(FAMILIAR_TYPES.OWL);     // Logger
tw.summonFamiliar(FAMILIAR_TYPES.GOLEM);   // Tank (DDoS absorber)

// Learn and cast spells
tw.learnSpell(SPELLS.LIGHTNING);           // Force push
tw.castSpell(SPELLS.FIREBALL);             // rm -rf
tw.castSpell(SPELLS.SHIELD);               // Firewall

// Climb the tower
tw.climbFloor(); // Crystal Ball Observatory
tw.activateCrystalBall();                  // Enable monitoring

// Brew potions (builds)
tw.brewPotion(POTION_TYPES.BUILD);         // CI pipeline

console.log(tw.towerView());
console.log(tw.report());

Spell Schools

  • Evocation — Fireball (rm -rf), Lightning (force push)
  • Abjuration — Heal (revert), Shield (firewall), Ward (rate limit)
  • Conjuration — Summon Daemon (deploy)
  • Divination — Divinate (debug), Clairvoyance (monitoring)
  • Transmutation — Refract (refactor code)
  • Necromancy — Resurrect (restart dead pod)

Familiars (Daemons)

  • Owl — Logger, watches everything
  • Black Cat — Guard, bad luck for attackers
  • Imp — Worker, tireless menial tasks
  • Raven — Messenger, delivers between services
  • Phoenix — Auto-restart, rises from ashes
  • Stone Golem — Tank, absorbs DDoS

Tower Floors

F0 Apprentice Quarters -> F1 Scroll Library -> F2 Alchemy Lab -> F3 Familiar Roost -> F4 Spell Chamber -> F5 Crystal Ball Observatory -> F6 Archmage Sanctum