{"id":45906783,"url":"https://github.com/ngthecoder/env_check","last_synced_at":"2026-02-28T03:25:34.195Z","repository":{"id":336803052,"uuid":"1151172794","full_name":"ngthecoder/env_check","owner":"ngthecoder","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-06T06:50:08.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-06T15:10:23.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ngthecoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-06T06:16:03.000Z","updated_at":"2026-02-06T06:50:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ngthecoder/env_check","commit_stats":null,"previous_names":["ngthecoder/env_check"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ngthecoder/env_check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthecoder%2Fenv_check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthecoder%2Fenv_check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthecoder%2Fenv_check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthecoder%2Fenv_check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngthecoder","download_url":"https://codeload.github.com/ngthecoder/env_check/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthecoder%2Fenv_check/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29923712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"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":[],"created_at":"2026-02-28T03:25:33.673Z","updated_at":"2026-02-28T03:25:34.190Z","avatar_url":"https://github.com/ngthecoder.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# envcheck\n\nDev環境のランタイムバージョンとパッケージをリアルタイムで可視化するダッシュボード。\n\n```\n⌘ envcheck\n├── Runtimes: pyenv, goenv, nvm, fnm, rbenv, jenv, rustup, asdf, mise\n└── Packages: pip, npm, go modules, cargo, gem, brew\n```\n\n## クイックスタート\n\n```bash\n# ビルドして起動\nmake run\n\n# → http://localhost:8484 でダッシュボードが開く\n```\n\n## 使い方\n\n### 1. サーバーモード（推奨）\n\nバックグラウンドで定期スキャンしつつ、ダッシュボードを配信：\n\n```bash\n# デフォルト: 30秒間隔、ポート8484\nmake run\n\n# カスタム\n./envcheck --port 3000 --interval 1m\n\n# 開発モード（5秒間隔）\nmake dev\n```\n\nダッシュボードは SSE (Server-Sent Events) でリアルタイム更新される。\n`.python-version` や `go.mod` などのファイル変更も自動検知してリスキャン。\n\n### 2. ワンショットモード\n\nJSON出力だけ欲しい場合：\n\n```bash\n./envcheck --json\n# or\nmake json\n```\n\n### 3. systemd サービス（常駐）\n\nPCを起動したら自動で走るようにする：\n\n```bash\nmake install-service\n\n# ログ確認\njournalctl --user -u envcheck -f\n\n# 停止\nsystemctl --user stop envcheck\n```\n\n### 4. Docker\n\n```bash\nmake docker-run\n\n# or\ndocker build -t envcheck .\ndocker run -p 8484:8484 -v $HOME:$HOME:ro -e HOME=$HOME envcheck\n```\n\n## API\n\n| Endpoint | Method | 説明 |\n|---|---|---|\n| `/` | GET | ダッシュボード |\n| `/api/status` | GET | 最新のスキャン結果 (JSON) |\n| `/api/rescan` | POST | 手動リスキャン |\n| `/api/events` | GET | SSE リアルタイムストリーム |\n\n## アーキテクチャ\n\n```\ncmd/\n  main.go          # エントリポイント + CLI flags\n  web/\n    index.html     # 埋め込みダッシュボード (embed.FS)\ninternal/\n  collector/\n    collector.go   # ランタイム＆パッケージ収集\n  server/\n    server.go      # HTTP + SSE + ファイルウォッチャー\n```\n\n**仕組み:**\n1. 起動時にフルスキャン（全*env ツール + パッケージマネージャー）\n2. 設定間隔で定期リスキャン\n3. バージョンファイル変更を `fsnotify` で監視 → 即座にリスキャン\n4. SSE でダッシュボードにリアルタイムプッシュ\n5. ダッシュボードは `go:embed` でバイナリに同梱（単一バイナリ）\n\n## ファイル監視対象\n\n| ファイル | 検出内容 |\n|---|---|\n| `.python-version` | pyenv ローカルバージョン変更 |\n| `.go-version` | goenv ローカルバージョン変更 |\n| `.node-version` | nvm/fnm ローカルバージョン変更 |\n| `.tool-versions` | asdf/mise バージョン変更 |\n| `go.mod` | Go依存関係の変更 |\n| `package.json` | Node依存関係の変更 |\n| `Cargo.toml` | Rust依存関係の変更 |\n| `Gemfile` | Ruby依存関係の変更 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngthecoder%2Fenv_check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngthecoder%2Fenv_check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngthecoder%2Fenv_check/lists"}