Wizard tower for developers. Spells are functions, scrolls are docs, familiars are daemons, mana is compute, the crystal ball is monitoring.
- JavaScript 100%
| node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 | ||
| src | ||
| tests | ||
| package.json | ||
| README.md | ||
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