Greenhouse v2 for developers. Plants are features, soil is codebase health, watering is deploying, pruning is refactoring.
- JavaScript 100%
| node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 | ||
| src | ||
| tests | ||
| package.json | ||
| README.md | ||
code-greenhouse-v2
Greenhouse v2 for developers. Plants are features, soil is codebase health, watering is deploying, pruning is refactoring.
Usage
const { Greenhouse, SEASONS } = require('./src/greenhouse');
const { SPECIES } = require('./src/plant');
const gh = new Greenhouse('Feature Garden');
gh.setGardener('Green Thumbs');
// Plant features
gh.plantSeed('auth', SPECIES.TOMATO);
gh.plantSeed('ml-pipeline', SPECIES.ORCHID);
gh.plantSeed('event-stream', SPECIES.BAMBOO);
gh.plantSeed('error-handler', SPECIES.VENUS_FLYTRAP);
// Water (deploy)
gh.waterAll(30);
// Time passes
for (let i = 0; i < 10; i++) gh.tick();
// Harvest mature features
gh.harvest('auth');
// Season changes
gh.setSeason(SEASONS.AUTUMN);
console.log(gh.view());
console.log(gh.report());
Species
- Tomato (CRUD App) — Common, productive
- Cactus (Microservice) — Survives anything
- Orchid (ML Pipeline) — Finicky, high maintenance
- Bamboo (Event Stream) — Insanely fast growth
- Bonsai (Refactored Legacy) — Carefully shaped
- Sunflower (Dashboard) — Big, visible
- Venus Flytrap (Error Handler) — Catches bugs
- Moss (Documentation) — Covers everything
Components
- Plant — 8 species, 8 growth stages, water/health/pests, harvest system
- Soil — Nutrients/moisture/pH/aeration, fertilize/water/aerate
- Greenhouse — Seasons (spring sprint -> winter freeze), pest control, gardener, ASCII garden