# In-house packages

## The rule

A package is in-house when any of these is true (the inventory checks with `npm view <pkg>
author maintainers repository.url --json`):

- an npm maintainer is `gabeabrams` (Gabe Abrams, gabeabrams@gmail.com);
- the repository URL is under `github.com/harvard-edtech/` or `github.com/gabeabrams/`.

Everything in-house is *never replaced* by an alternative. A vulnerability inside one is fixed
in the lib (Lib mode), published by Gabe, and then adopted by the apps. A major bump of an
in-house lib is fine once its changelog or commits have been read for breaking changes.

## Allowlist (fallback when the registry is unreachable)

`caccl`, `caccl-api`, `caccl-api-forwarder`, `caccl-authorizer`, `caccl-canvas-partial-simulator`,
`caccl-deploy`, `caccl-dev-server`, `caccl-error`, `caccl-grade-passback`, `caccl-lti`,
`caccl-memory-store`, `caccl-send-request`, `create-caccl`, `zaccl`, `dce-reactkit`,
`dce-expresskit`, `dce-mango`, `dce-ai`, `dce-dev-wizard`, `dce-send-email`, `dce-digest-sender`,
`dce-icommons`, `dce-crosstypes`, `dce-commonkit`, `dce-stub`, `dce-eslint` / `create-dce-eslint`,
`dceky`, `canvas-csv-matcher`, `canvas-csv-matcher-component`, `harvard-identity-api`,
`create-kaixa` (deprecated), `raixa` (deprecated).

Pattern form used by the scripts: `^caccl(-|$)`, `^dce-`, `^zaccl$`, `^dceky$`,
`^canvas-csv-matcher`, `^harvard-identity-api$`, `^create-kaixa$`, `^raixa$`, `^create-caccl$`.
When a new lib appears, add it here and to `IN_HOUSE_PATTERNS` in `scripts/inventory.mjs`.

## Who owns what (typical chains)

| In-house package | Commonly pulls in | Note |
| --- | --- | --- |
| caccl | express (body-parser, qs, proxy-addr), caccl-* sub-libs | isomorphic: shows up in client lockfiles too |
| dce-expresskit | peers: express, express-session, caccl, dce-mango | v4 also depended on react/dce-reactkit |
| dce-reactkit | react-select; peers: react, react-dom, bootstrap, FontAwesome | |
| dce-mango | mongodb driver (ip-address), uuid | prerelease `latest` seen on npm |
| zaccl | axios (3.x pins 0.x; 5.x moved on) | |
| dce-ai | openai, @openai/agents, zod | 1.2.0 fixed the 2026 openai/zod findings |
| dce-dev-wizard | caccl-deploy → aws-cdk-lib, aws-sdk v2, yaml, semver, minimatch; papaparse, node-html-parser | root devDependency: never in the image |
| caccl-canvas-partial-simulator | express chain | root devDependency |

Publishing order when several libs need fixes: dce-mango → dce-expresskit / dce-reactkit →
caccl / zaccl / dce-ai / dce-dev-wizard → apps.
