Jungle for developers. Vines are dependencies, canopy is the abstraction layer, predators are bugs, explorers are new hires.
- JavaScript 100%
| node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 | ||
| src | ||
| tests | ||
| package.json | ||
| README.md | ||
code-jungle
Jungle for developers. Vines are dependencies, canopy is the abstraction layer, predators are bugs, explorers are new hires.
Usage
const { Jungle, WILDLIFE } = require('./src/jungle');
const jungle = new Jungle('Amazon Codebase');
jungle.recruitExplorer('Alice', 3);
jungle.spawnCreature(WILDLIFE.JAGUAR, 2);
jungle.spawnCreature(WILDLIFE.SNAKE, 3);
// Explore
jungle.hackThrough('Alice');
jungle.encounter('Alice');
jungle.climbVine('Alice', 2); // climb to next layer
// Discover hidden features
jungle.discoverTemple('Alice', 'Ancient Webpack Config');
// Weather changes
jungle.setWeather('storm');
console.log(jungle.jungleView());
console.log(jungle.report());
Canopy Layers
- Emergent (Core Services) — 60m, top of jungle, rare and critical
- Canopy (App Layer) — 40m, densest, most complexity
- Understory (API Layer) — 20m, dim, hidden connections
- Forest Floor (Database) — 0m, dark, everything decomposes
Wildlife
- Monkey (Rogue Process) — Chaotic, touches everything
- Parrot (Echo Service) — Repeats everything, loud
- Jaguar (Silent Killer) — Critical bug, lethal, silent
- Snake (Hidden Bug) — Venomous, strikes when disturbed
- Toucan (Dashboard) — Colorful, shows state
- Poison Frog (Side Effect) — Small, toxic
- Butterfly (Log Entry) — Fleeting log messages
- Ant Colony (Background Jobs) — Always working
Components
- Vine — Dependencies between layers, can snap/tangle/reinforce
- Explorer — New hires with machetes, health/energy/courage
- Jungle — Weather, temples, clearings, ASCII cross-section