Sauna for developers. Heat up builds, cool down rollbacks, steam rooms per language, ice plunges for debugging.
- JavaScript 100%
| node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 | ||
| src | ||
| tests | ||
| package.json | ||
| README.md | ||
code-sauna
Sauna for developers. Heat up builds, cool down rollbacks, steam rooms per language, ice plunges for debugging.
Usage
const { Sauna } = require('./src/sauna');
const { GUEST_PROFILES } = require('./src/guest');
const sauna = new Sauna('Code Sweat Lodge');
sauna.setSaunaMaster('Master Yoda');
// Admit stressed devs
sauna.admitGuest('Alice', GUEST_PROFILES.BURNED_OUT_SENIOR);
sauna.admitGuest('Bob', GUEST_PROFILES.PANICING_DEV);
// Heat up the JS room
sauna.throwStones('js_bathhouse', 5);
sauna.pourWater('js_bathhouse', 2);
// Send to rooms
sauna.sendGuestToRoom('Alice', 'python_lounge');
sauna.sendGuestToRoom('Bob', 'go_chill');
// Relax...
sauna.tick();
sauna.tick();
// Ice plunge for instant cooldown
sauna.sendGuestToIcePlunge('Bob');
sauna.removeFromIcePlunge('Bob');
// Checkout
sauna.checkout('Alice');
sauna.checkout('Bob');
console.log(sauna.view());
console.log(sauna.report());
Steam Rooms
- JavaScript Steam Room (85C) — Chaotic, hot, async steam everywhere
- Python Warm Room (70C) — Comfortable, accessible, warm blanket
- Go Chill Zone (55C) — Simple, cool, concurrent, goroutines
- Rust Extreme Heat (100C) — Maximum intensity, zero-cost abstractions
- Haskell Silent Room (50C) — Pure, quiet, alone with your monads
- C++ Forge (95C) — Old school heat, pointers on hot stones
Components
- SteamRoom — Temperature/humidity control, stones, ventilation, guest capacity
- Guest — 6 profiles (stressed junior to zen architect), stress/relaxation tracking, wellness score
- Sauna — Full operations: sauna master, entry fees, ice plunge, daily cycle, ASCII view