Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Aquaticat/Monochromatic. TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a m
Something went wrong. Try again.
# `@monochromatic-dev/dev-script-deps-cube`
Renders an interactive 3D scatter of every entry in the `pnpm-workspace.yaml` catalog.
Each catalog package becomes a glyph positioned in a 6-dimensional feature space (3 spatial + color + shape + size);
the audit-target octant,
small + stale + small-footprint + non-TS + leaf + niche,
is the corner you scroll the camera toward.
Naming note:
the package name preserves user's original `depsUpset` intent.
The actual visualisation is a 3D scatter rendered via deck.
gl (WebGL),
not an UpSet plot.
UpSet binarises continuous attributes that are more useful at full resolution.
See `../../../doc/decisions/deps-cube.md` for the design rationale.
## Usage
```sh
# bin entry
deps-cube
# mise task
mise run //package/dev-script/deps-cube:run
```
Output:
`<package>/dist/deps-cube-<YYYY-MM-DDTHH-MM-SSZ>.html` (filename carries ISO 8601 UTC down to seconds,
with `:` rewritten as `-` for filesystem safety;
each run produces a distinct artifact).
The package directory is located by walking up from `import.meta.dirname` until this package's own `package.json` is found,
so the path is the same in source mode (`node src/cli.ts`) and built mode (`node dist/final/node/cli.mjs`).
The package's `dist/` is gitignored.
Stdout prints exactly `Saved to <abs-path>`.
Open the HTML in any modern browser (Firefox ESR 140+ baseline).
## Dimensions
Default mapping (changeable via the in-page dim picker):
- **x = log(source bytes)**:
replacement cost
- **y = log(days since last commit)**:
staleness
- **z = log(install size,
transitive)**:
actual footprint
- **color**:
TS ratio,
interpolated in OKLCH from red (low) through amber (mid) to green (high)
- **shape**:
sphere (leaf) / octahedron (non-leaf)
- **size**:
log(weekly downloads)
Available additional dims selectable per channel:
- TS ratio (continuous 0 to 1)
- Runtime dep count
- Transitive dep count
- Package age (days since first publish)
- License class (permissive / copyleft / non-OSS / unknown)
#…