Greenhouse v2 for developers. Plants are features, soil is codebase health, watering is deploying, pruning is refactoring.
  • JavaScript 100%
Find a file
2026-06-30 11:13:28 +00:00
node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 test: add e2e tests 2026-06-28 11:08:36 +00:00
src feat(#1): greenhouse v2 engine — plants, soil, seasons, pests, ASCII garden 2026-06-15 06:10:35 +00:00
tests fix: e2e tests now use CommonJS require for node --test compatibility 2026-06-30 11:13:25 +00:00
package.json feat(#1): greenhouse v2 engine — plants, soil, seasons, pests, ASCII garden 2026-06-15 06:10:35 +00:00
README.md feat(#1): greenhouse v2 engine — plants, soil, seasons, pests, ASCII garden 2026-06-15 06:10:35 +00:00

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