{"id":50580297,"url":"https://github.com/janbalangue/groundhogtrace","last_synced_at":"2026-06-05T01:03:55.086Z","repository":{"id":357485036,"uuid":"1237174706","full_name":"janbalangue/groundhogtrace","owner":"janbalangue","description":"A Java/Spring Boot failure-replay platform for REST integrations.","archived":false,"fork":false,"pushed_at":"2026-05-13T00:29:16.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-13T02:28:59.740Z","etag":null,"topics":["backend","debugging","distributed-systems","docker","docker-compose","integration-testing","java","java-21","microservices","observability","replay","rest-api","spring","spring-boot","webclient"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janbalangue.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-13T00:22:03.000Z","updated_at":"2026-05-13T00:35:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/janbalangue/groundhogtrace","commit_stats":null,"previous_names":["janbalangue/groundhogtrace"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/janbalangue/groundhogtrace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janbalangue%2Fgroundhogtrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janbalangue%2Fgroundhogtrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janbalangue%2Fgroundhogtrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janbalangue%2Fgroundhogtrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janbalangue","download_url":"https://codeload.github.com/janbalangue/groundhogtrace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janbalangue%2Fgroundhogtrace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33926280,"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-04T02:00:06.755Z","response_time":64,"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":["backend","debugging","distributed-systems","docker","docker-compose","integration-testing","java","java-21","microservices","observability","replay","rest-api","spring","spring-boot","webclient"],"created_at":"2026-06-05T01:03:54.015Z","updated_at":"2026-06-05T01:03:55.077Z","avatar_url":"https://github.com/janbalangue.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GroundhogTrace\n\nGroundhogTrace is a Java/Spring Boot failure-replay platform for REST integrations.\n\nIt captures failed HTTP interactions, redacts sensitive data, replays failures safely against sandbox/local targets, diffs original vs replayed behavior, and generates regression-test starter code from real failure scenarios.\n\n## Technologies\n\n- Java 21 and Spring Boot 3 microservices\n- REST API capture and replay\n- WebClient-based outbound HTTP execution\n- PostgreSQL persistence with an H2 local fallback\n- Redaction of sensitive headers and JSON fields\n- Failure classification\n- Async replay via a DB-backed worker queue\n- Response/status diffing\n- Generated JUnit/MockMvc regression-test snippets\n- Docker Compose environment with a fake downstream CRM service\n\n## Architecture\n\n```text\nClient / test harness\n        |\n        v\nGroundhogTrace Capture API\n        |\n        +--\u003e Redaction + validation\n        |\n        +--\u003e PostgreSQL/H2 captures table\n        |\n        +--\u003e Replay job queue\n                  |\n                  v\n            Replay worker\n                  |\n                  v\n           Fake downstream CRM API\n                  |\n                  v\n             Diff + generated test artifact\n```\n\nThis MVP intentionally uses a DB-backed replay queue instead of Kafka so it is easy to run. Kafka can be added later behind the replay job boundary.\n\n## Run locally with Docker Compose\n\n```bash\ndocker compose up --build\n```\n\nServices:\n\n- GroundhogTrace API: http://localhost:8080\n- Fake CRM API: http://localhost:8081\n- PostgreSQL: localhost:5432\n\n## Demo flow\n\nCapture a synthetic failure:\n\n```bash\ncurl -s -X POST http://localhost:8080/api/captures \\\n  -H 'Content-Type: application/json' \\\n  --data @examples/failing-capture.json\n```\n\nCreate a replay job. Replace `\u003ccaptureId\u003e` with the ID returned above:\n\n```bash\ncurl -s -X POST http://localhost:8080/api/replays \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"captureId\": \"\u003ccaptureId\u003e\",\n    \"targetUrlOverride\": \"http://fake-crm-api:8081/fixed/customers\"\n  }'\n```\n\nPoll the replay result:\n\n```bash\ncurl -s http://localhost:8080/api/replays/\u003cjobId\u003e\n```\n\nGenerate a regression-test starter:\n\n```bash\ncurl -s http://localhost:8080/api/replays/\u003cjobId\u003e/generated-test\n```\n\n## Local development without Docker\n\nThe API defaults to an in-memory H2 database when not running with the `docker` profile.\n\n```bash\nmvn -pl services/groundhogtrace-api spring-boot:run\nmvn -pl services/fake-crm-api spring-boot:run\n```\n\n## Notes\n\n- Do not use real production/customer payloads in this project.\n- The fake CRM service exists only to demonstrate repeatable failure replay.\n- Redaction is intentionally conservative and can be extended with custom rules.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanbalangue%2Fgroundhogtrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanbalangue%2Fgroundhogtrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanbalangue%2Fgroundhogtrace/lists"}