{"id":48477164,"url":"https://github.com/felipeelias/hook-lab","last_synced_at":"2026-04-07T07:51:34.491Z","repository":{"id":341259749,"uuid":"1169441986","full_name":"felipeelias/hook-lab","owner":"felipeelias","description":"A web dashboard for watching Claude Code hook events in real time.","archived":false,"fork":false,"pushed_at":"2026-04-04T07:13:09.000Z","size":428,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-04T08:25:10.456Z","etag":null,"topics":["claude-code","docker","elixir","hooks","liveview","phoenix"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/felipeelias.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-28T17:37:03.000Z","updated_at":"2026-04-04T07:13:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/felipeelias/hook-lab","commit_stats":null,"previous_names":["felipeelias/hook-lab"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/felipeelias/hook-lab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeelias%2Fhook-lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeelias%2Fhook-lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeelias%2Fhook-lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeelias%2Fhook-lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felipeelias","download_url":"https://codeload.github.com/felipeelias/hook-lab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipeelias%2Fhook-lab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31504897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["claude-code","docker","elixir","hooks","liveview","phoenix"],"created_at":"2026-04-07T07:51:33.812Z","updated_at":"2026-04-07T07:51:34.484Z","avatar_url":"https://github.com/felipeelias.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HookLab\n\nA web dashboard for watching Claude Code hook events in real time.\n\n![HookLab dashboard](assets/hook-lab.gif)\n\n![Expanded hook event](assets/hook-lab-expanded.png)\n\n## Quickstart\n\n```yaml\nservices:\n  app:\n    image: ghcr.io/felipeelias/hook-lab:latest\n    ports:\n      - \"4000:4000\"\n    volumes:\n      - hook_lab_data:/app/data\n    environment:\n      SECRET_KEY_BASE: ${SECRET_KEY_BASE}\n      DATABASE_PATH: /app/data/hook_lab.db\n      PHX_HOST: localhost\n\nvolumes:\n  hook_lab_data:\n```\n\n```bash\nexport SECRET_KEY_BASE=$(openssl rand -base64 64)\ndocker compose up -d\n```\n\nOpen http://localhost:4000.\n\n## Hook configuration\n\nThis repo includes a [`docs/claude-settings.example.json`](docs/claude-settings.example.json) that sends every hook event to HookLab over HTTP. Each hook has a 1-second timeout. If HookLab isn't running, Claude Code moves on.\n\nCopy the `hooks` block from that file into `~/.claude/settings.json` or your project's `.claude/settings.json`. Here's a stripped-down version with just two events if you want to start small:\n\n```json\n{\n  \"hooks\": {\n    \"PreToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"http\",\n            \"url\": \"http://localhost:4000/api/hooks\",\n            \"timeout\": 1\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"http\",\n            \"url\": \"http://localhost:4000/api/hooks\",\n            \"timeout\": 1\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\nHook settings are read at session start, so open a new Claude Code session after changing them.\n\n### Custom URL\n\nIf HookLab is running on a different host or port, replace `http://localhost:4000/api/hooks` in each hook entry with your URL. HTTP hooks don't support environment variable interpolation in the `url` field, so the URL must be edited directly in the settings file.\n\n## Development\n\n```bash\nmix setup\nmix phx.server\n# http://localhost:4000\n```\n\n```bash\nmix ci\n```\n\n```bash\ndocker compose build\nSECRET_KEY_BASE=$(openssl rand -base64 64) docker compose up\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipeelias%2Fhook-lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelipeelias%2Fhook-lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipeelias%2Fhook-lab/lists"}