@derived-modular/boundaries
v1.2.2
Published
Pure path classifiers for Derived Modular Architecture
Downloads
850
Readme
@derived-modular/boundaries
Pure path classifiers for Derived Modular Architecture. No filesystem graph, no ESLint — shared by @derived-modular/cli and @derived-modular/eslint-plugin.
Architecture: DMA spec.
Install
Usually pulled in as a dependency. For custom tooling:
npm install @derived-modular/boundariesAPI (high level)
import {
DEFAULT_COMPOSITION_ROOT_DIRNAMES,
LAYER_RANK,
isBarrelIndexFilename,
isPublicImportTarget,
layerOfPath,
moduleRefOfPath,
} from "@derived-modular/boundaries";PathContext: { srcRoot, compositionRootDirnames } — defaults match DMA (src, ["app","pages","routes"]).
What it classifies
- Structural layer:
app|features|services|shared(composition roots =app) - Module id + layer for
features/*andservices/*(stage-0 file modules vs directory modules) - Public vs deep import target (
*/public/*, stage-0 files) - Barrel
index.ts/index.tsxcandidates
Local development
cd packages/boundaries
bun test
bun run check-typesLicense
MIT
