
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@cropgraph/core
Advanced tools
CropGraph core library: curated crop calendar (1,000 entries), 333 companion planting relationships, 12 rotation families, USDA hardiness zone lookup, and climate classification. Offline, zero network calls.
Curated agricultural intelligence as a pure TypeScript library. No network calls, no API keys, no runtime dependencies beyond Zod.
| Asset | Detail |
|---|---|
| Crop calendar | 1,000 entries: 319 vegetables, 186 herbs, 173 fruits, 163 flowers, 59 legumes, 55 cover crops, 45 roots. Frost-anchored planting windows with optional climate modifiers for six climate types. |
| Companion planting | 333 directed relationships: 281 beneficial, 52 antagonist, 11 mechanism categories (nitrogen_fixing, pest_repellent, trap_crop, ...). |
| Rotation families | 12 botanical families (nightshades, brassicas, cucurbits, alliums, legumes, umbellifers, grasses, amaranthaceae, composites, mints, malvaceae, miscellaneous). Every calendar slug is mapped. Year-gap, follow-with, and never-follow rules per family. |
| USDA hardiness zones | 40,283 ZIP-code centroids from PRISM 2023 + waldoj/frostline, with offline lookup by coordinates or ZIP. Frost-date table by zone. |
| Climate types | Six-type classifier (maritime, mediterranean, continental, humid_subtropical, arid, semi_arid) from a coordinate-based heuristic. |
All datasets are validated against JSON Schemas at module load. A malformed
fixture breaks import "@cropgraph/core" immediately rather than at runtime.
npm install @cropgraph/core
import {
getHardinessZone,
getClimateType,
getPlantingPlan,
findCrop,
searchCrops,
getCompanions,
checkCompanionPair,
getRotationAdvice,
checkRotationSequence,
} from "@cropgraph/core";
// Zone lookup from coords.
const zone = getHardinessZone({ lat: 48.118, lng: -123.43 });
// → { ok: true, data: { zone: "8b", ... } }
// Climate classification from coords.
const climate = getClimateType({ lat: 48.118, lng: -123.43 });
// → { ok: true, data: { climateType: "maritime", ... } }
// Planting plan for a zone.
const plan = getPlantingPlan({ zone: "8b", climateType: "maritime" });
// → { ok: true, data: { plantNow: [ ... ] } }
// Crop lookup.
findCrop("tomato");
searchCrops("squash");
// Companion planting.
getCompanions("tomato"); // 33+ companion entries
checkCompanionPair("tomato", "basil"); // beneficial
// Rotation families.
getRotationAdvice("tomato");
// → { family: "nightshades", rotationYears: 3, followWith: [...], ... }
checkRotationSequence(["tomato", "bush-bean", "sweet-corn", "cabbage"]);
// → { ok: true, issues: [] }
Every entry cites a USDA Cooperative Extension publication or a
peer-reviewed source. See the per-entry source field in
src/data/crop-calendar.json and
src/data/companions.json,
src/data/rotation-families.json,
and the file-level descriptions in the matching *.schema.json files for
the methodology rundown.
MIT.
FAQs
CropGraph core library: curated crop calendar (5,006 entries across 14 categories with 120 climate-modified crops across 6 climate types), 1,004 companion planting relationships, 12 rotation families, 102 succession planting chains, 802 pest/disease assoc
The npm package @cropgraph/core receives a total of 86 weekly downloads. As such, @cropgraph/core popularity was classified as not popular.
We found that @cropgraph/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.