{"id":50595820,"url":"https://github.com/rogerchappel/containerghost","last_synced_at":"2026-06-05T14:01:28.899Z","repository":{"id":362456423,"uuid":"1234483347","full_name":"rogerchappel/containerghost","owner":"rogerchappel","description":"Local-first CLI for auditing devcontainer, Docker Compose, Dockerfile, package script, and .env.example drift.","archived":false,"fork":false,"pushed_at":"2026-06-04T08:25:01.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-04T10:11:18.425Z","etag":null,"topics":["cli","devcontainer","docker-compose","drift-detection","local-first"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rogerchappel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-10T08:38:38.000Z","updated_at":"2026-06-04T08:25:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rogerchappel/containerghost","commit_stats":null,"previous_names":["rogerchappel/containerghost"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rogerchappel/containerghost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fcontainerghost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fcontainerghost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fcontainerghost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fcontainerghost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rogerchappel","download_url":"https://codeload.github.com/rogerchappel/containerghost/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fcontainerghost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33944671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","devcontainer","docker-compose","drift-detection","local-first"],"created_at":"2026-06-05T14:01:27.719Z","updated_at":"2026-06-05T14:01:28.887Z","avatar_url":"https://github.com/rogerchappel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ContainerGhost\n\nContainerGhost is a local-first CLI that audits devcontainer, Docker Compose, Dockerfile, package scripts, and `.env.example` drift before humans or agents burn time in a broken setup.\n\n## Why it exists\n\nDev environments drift quietly. A devcontainer points at the wrong service, forwarded ports no longer match compose, required env keys disappear, or Dockerfile/package scripts stop lining up. ContainerGhost turns that drift into deterministic local evidence.\n\n## Quick start\n\n```bash\nnpm install\nnpm run build\nnode dist/src/index.js scan examples/basic --out containerghost.md --json containerghost.json\nnode dist/src/index.js check examples/basic --fail-on missing-env,unknown-service\n```\n\n## CLI\n\n```bash\ncontainerghost scan . --out containerghost.md --json containerghost.json\ncontainerghost check . --fail-on missing-env,port-conflict,unknown-service\n```\n\n## What it checks in the MVP\n\n- `.devcontainer/devcontainer.json` exists\n- `docker-compose.yml` or `compose.yml` exists\n- `.env.example` exists and covers `containerEnv` keys\n- devcontainer `service` exists in compose services\n- forwarded ports exist in compose published ports\n- `package.json` includes a `dev` script when Dockerfile + package.json are present\n- obvious secrets in text evidence are redacted by default\n\n## Safety model\n\n- Offline and local-first\n- No telemetry\n- No hidden writes outside explicit output files\n- Redaction enabled by default for common token/key/password patterns\n\n## Limitations\n\n- The MVP uses heuristic parsing, not full Docker/devcontainer schema validation\n- Port matching currently checks published host ports only\n- Secret redaction is pattern-based and intentionally conservative\n\n## Fixture smoke\n\n```bash\nnpm run smoke\n```\n\nThis runs a real CLI scan against `examples/basic` and asserts deterministic Markdown and JSON output.\n\n## Verify\n\nRun local verification before opening a PR or publishing:\n\n```bash\nnpm test\nnpm run release:check\n```\n\n`release:check` runs type-checking, tests, smoke verification, and a dry-run `npm pack` to ensure everything ships cleanly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerchappel%2Fcontainerghost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frogerchappel%2Fcontainerghost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerchappel%2Fcontainerghost/lists"}