ArtifactMap inventories generated files, build outputs, caches, packages, and report artifacts so a repository can explain what should be committed, ignored, or cleaned.
It is local-first: no telemetry, no network calls during scans, and no automatic deletion.
npm install artifactmapScan a repo with the installed binary:
npx artifactmap scan . --out docs/ARTIFACTS.mdFor local development:
git clone https://github.com/rogerchappel/artifactmap.git
cd artifactmap
npm install
npm run build
npx artifactmap scan . --out docs/ARTIFACTS.mdCreate a reviewable policy:
artifactmap init --preset node-cliScan a workspace and write Markdown:
artifactmap scan . --out docs/ARTIFACTS.mdScan a fixture and emit JSON:
artifactmap scan examples/fixtures/messy --format json --no-respect-ignoreFail when suspicious findings are present:
artifactmap scan . --format json --fail-on suspiciousArtifactMap labels files as:
- source-like
- generated-commit
- generated-ignore
- cache
- report
- package
- unknown
Findings currently include tracked ignored files, untracked package archives, stale reports, large files, and source-looking files inside generated folders.
{
"version": 1,
"largeFileBytes": 5242880,
"staleReportDays": 30,
"includeUnknown": false,
"rules": [
{
"kind": "generated-commit",
"patterns": ["dist/**", "build/**", "lib/**", "*.map"],
"commit": true
},
{
"kind": "generated-ignore",
"patterns": ["coverage/**", ".next/**"],
"commit": false
}
]
}ArtifactMap only reads local files and writes reports or config files when asked. It does not delete files, mutate git state, upload artifacts, or infer private data from remote services.
- run: npm install
- run: npm run build
- run: node dist/cli.js scan . --format json --fail-on suspiciousArtifactMap uses deterministic path and policy evidence, not full language build graph inference. Nested ignore handling is intentionally simple in the MVP; Git-tracked ignored files are still surfaced so releases can catch hygiene problems.
npm install
npm test
npm run check
npm run build
npm run smoke
bash scripts/validate.shThe checked-in fixtures under examples/fixtures exercise clean and messy repository states.