{"id":32542823,"url":"https://github.com/agarzon/httpcapture","last_synced_at":"2026-03-07T08:01:18.591Z","repository":{"id":319916341,"uuid":"1079930289","full_name":"agarzon/httpcapture","owner":"agarzon","description":"Inspect inbound webhooks and HTTP calls in real-time.","archived":false,"fork":false,"pushed_at":"2026-02-15T02:23:09.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-15T09:34:54.251Z","etag":null,"topics":["debugging","docker","http","http-requests","testing","webhook"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/agarzon.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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-10-20T15:51:26.000Z","updated_at":"2026-02-15T02:19:42.000Z","dependencies_parsed_at":"2025-10-20T23:31:18.207Z","dependency_job_id":"7bf9e9b0-7fef-4808-8e76-dca5d22059d9","html_url":"https://github.com/agarzon/httpcapture","commit_stats":null,"previous_names":["agarzon/httpcapture"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/agarzon/httpcapture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agarzon%2Fhttpcapture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agarzon%2Fhttpcapture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agarzon%2Fhttpcapture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agarzon%2Fhttpcapture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agarzon","download_url":"https://codeload.github.com/agarzon/httpcapture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agarzon%2Fhttpcapture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: 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":["debugging","docker","http","http-requests","testing","webhook"],"created_at":"2025-10-28T16:52:47.846Z","updated_at":"2026-03-07T08:01:18.580Z","avatar_url":"https://github.com/agarzon.png","language":"PHP","readme":"# httpcapture\n\nCapture, inspect, and debug inbound HTTP requests and webhooks in real-time.\n\n[![License: MIT](https://img.shields.io/github/license/agarzon/httpcapture)](LICENSE)\n[![GitHub Release](https://img.shields.io/github/v/release/agarzon/httpcapture)](https://github.com/agarzon/httpcapture/releases)\n[![Docker Pulls](https://img.shields.io/docker/pulls/agarzon/httpcapture)](https://hub.docker.com/r/agarzon/httpcapture)\n![PHP](https://img.shields.io/badge/php-%5E8.4-8892BF)\n\n![httpcapture screenshot](public/screenshot.png)\n\n## Quick Start\n\n```bash\ndocker run -p 8080:8080 agarzon/httpcapture\n```\n\nOpen [http://localhost:8080](http://localhost:8080) to see the dashboard, then send any HTTP request to the same host:\n\n```bash\ncurl -X POST http://localhost:8080/my/webhook \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"event\": \"test\", \"data\": {\"message\": \"Hello!\"}}'\n```\n\nThe request appears instantly in the UI.\n\n## How It Works\n\nAny HTTP request sent to a path other than `/` and `/api/*` is automatically captured and stored in a local SQLite database. The web UI polls for new captures every 5 seconds and displays method, path, headers, query parameters, body, form data, and uploaded files.\n\nNo external dependencies. No configuration required. Just run and capture.\n\n## API Reference\n\n| Method | Endpoint | Description |\n| --- | --- | --- |\n| `GET` | `/` | Web UI |\n| `GET` | `/api/requests` | List captured requests (paginated) |\n| `GET` | `/api/requests/{id}` | Retrieve a single capture |\n| `DELETE` | `/api/requests/{id}` | Delete a capture |\n| `DELETE` | `/api/requests` | Delete all captures |\n| `*` | Any other path | Captured automatically |\n\nThe list endpoint accepts `page` (1-based) and `per_page` (max 100, default 10) query parameters.\n\n## Configuration\n\n| Setting | Default | Details |\n| --- | --- | --- |\n| Polling interval | 5 seconds | Adjust `POLLING_INTERVAL_MS` in `public/assets/app.js` |\n| Storage | SQLite in `storage/` | Persisted via Docker volume |\n| IP detection | `X-Forwarded-For` | Falls back to `REMOTE_ADDR` |\n\n### Request Filtering\n\nCommon noise paths are ignored by default (`/favicon.ico`, `/robots.txt`, etc.). You can extend filtering in `src/Http/RequestFilter.php`:\n\n```php\n$filter-\u003eignorePath('/health');\n$filter-\u003eignorePathPrefix('/internal/');\n$filter-\u003eignoreExtensions(['css', 'js', 'map']);\n```\n\n## Development\n\n```bash\n# Start the development server\ndocker compose up --build\n\n# Run tests\ndocker compose exec app composer test\n\n# Run linter (PSR-12)\ndocker compose exec app composer lint\n```\n\n### Project Layout\n\n```\npublic/          Vue 3 SPA and PHP entry point\nsrc/             Application code (controllers, HTTP, persistence)\ntests/           PHPUnit test suite\nstorage/         SQLite database (gitignored)\n```\n\n## Contributing\n\nContributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## License\n\n[MIT](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagarzon%2Fhttpcapture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagarzon%2Fhttpcapture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagarzon%2Fhttpcapture/lists"}