{"id":46209804,"url":"https://github.com/7wilightxdev/dio_spy","last_synced_at":"2026-03-03T09:03:19.483Z","repository":{"id":337952202,"uuid":"1155934602","full_name":"7wilightxdev/dio_spy","owner":"7wilightxdev","description":"A lightweight HTTP inspector for Dio with a clean minimal UI. Monitor and debug your HTTP calls with ease!","archived":false,"fork":false,"pushed_at":"2026-02-12T10:54:41.000Z","size":2244,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-12T14:23:11.409Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","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/7wilightxdev.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-02-12T04:19:12.000Z","updated_at":"2026-02-12T06:10:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/7wilightxdev/dio_spy","commit_stats":null,"previous_names":["7wilightxdev/dio_spy"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/7wilightxdev/dio_spy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fdio_spy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fdio_spy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fdio_spy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fdio_spy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7wilightxdev","download_url":"https://codeload.github.com/7wilightxdev/dio_spy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fdio_spy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30038552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T06:58:30.252Z","status":"ssl_error","status_checked_at":"2026-03-03T06:58:15.329Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-03-03T09:03:17.807Z","updated_at":"2026-03-03T09:03:19.477Z","avatar_url":"https://github.com/7wilightxdev.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DioSpy\n\nA lightweight HTTP inspector for Dio with a clean minimal UI. Monitor and debug your HTTP calls with ease!\n\n## Features\n\n- ✨ **Automatic Request Capture** - Intercepts all Dio HTTP calls automatically\n- 📱 **Shake to Inspect** - Open the inspector by shaking your device/simulator\n- 🎨 **Clean Minimal UI** - Beautiful, easy-to-use interface\n- 📋 **Copy as cURL** - Copy any request as a cURL command\n- ⚡ **Request Timing** - See how long each request takes\n- 🎯 **Quick Filter** - Quickly find your requests by URL, HTTP method and status code\n- 💾 **In-Memory Storage** - Configurable circular buffer (default: 1000 calls)\n- 🌳 **JSON Visualizer** - Interactive JSON tree viewer\n\n## Screenshots\n\n\u003ctable style=\"border-spacing: 20px;\"\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\" style=\"padding: 15px;\"\u003e\n      \u003cimg src=\"screenshots/list.png\" width=\"250\" alt=\"Call List Screen\"/\u003e\u003cbr/\u003e\n      \u003csub\u003e\u003cb\u003eCall List Screen\u003c/b\u003e\u003c/sub\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\" style=\"padding: 15px;\"\u003e\n      \u003cimg src=\"screenshots/request.png\" width=\"250\" alt=\"Request Details\"/\u003e\u003cbr/\u003e\n      \u003csub\u003e\u003cb\u003eRequest Details\u003c/b\u003e\u003c/sub\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\" style=\"padding: 15px;\"\u003e\n      \u003cimg src=\"screenshots/response.png\" width=\"250\" alt=\"Response Details\"/\u003e\u003cbr/\u003e\n      \u003csub\u003e\u003cb\u003eResponse Details\u003c/b\u003e\u003c/sub\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\" style=\"padding: 15px;\"\u003e\n      \u003cimg src=\"screenshots/error.png\" width=\"250\" alt=\"Error Handling\"/\u003e\u003cbr/\u003e\n      \u003csub\u003e\u003cb\u003eError Handling\u003c/b\u003e\u003c/sub\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Installation\n\nAdd this to your `pubspec.yaml`:\n\n```yaml\ndependencies:\n  dio_spy: ^0.0.5\n```\n\nThen run:\n\n```bash\nflutter pub get\n```\n\n## Quick Start\n\n### 1. Initialize DioSpy\n\n```dart\nimport 'package:dio/dio.dart';\nimport 'package:dio_spy/dio_spy.dart';\n\n// Create DioSpy instance\nfinal dioSpy = DioSpy(\n  showOnShake: true,  // Enable shake gesture\n  maxCalls: 1000,     // Max number of calls to store\n);\n```\n\n### 2. Add Interceptor to Dio\n\n```dart\nfinal dio = Dio();\n\n// Add DioSpy interceptor\ndio.interceptors.add(dioSpy.interceptor);\n```\n\n### 3. Connect the Inspector UI\n\nYou have two options to display the inspector:\n\n#### Option A: DioSpyWrapper (Recommended)\n\nUse `DioSpyWrapper` in your `MaterialApp.builder`. No navigator key needed.\n\n```dart\nMaterialApp(\n  builder: (context, child) =\u003e DioSpyWrapper(\n    dioSpy: dioSpy,\n    child: child!,\n  ),\n  home: MyHomePage(),\n);\n```\n\n#### Option B: Navigator Key\n\nPass a `GlobalKey\u003cNavigatorState\u003e` so DioSpy can push the inspector as a route.\n\n```dart\nfinal navigatorKey = GlobalKey\u003cNavigatorState\u003e();\n\nMaterialApp(\n  navigatorKey: navigatorKey,\n  home: MyHomePage(),\n);\n\ndioSpy.setNavigatorKey(navigatorKey);\n```\n\n### 4. Make HTTP Requests\n\nAll requests made through your Dio instance will be automatically captured!\n\n```dart\nfinal response = await dio.get('https://api.example.com/users');\n```\n\n### 5. Open the Inspector\n\n- **Shake your device** - The inspector will open automatically\n- **Open it programmatically** - `dioSpy.showInspector()`\n- **Close it programmatically** - `dioSpy.hideInspector()`\n\n## Complete Example\n\nSee the [example](example/) folder for a complete working app that demonstrates:\n\n- GET, POST, PUT, DELETE requests\n- Error handling\n- Different response types\n- Using the FakeRESTApi for testing\n\n## Requirements\n\n- Dart SDK: `^3.0.0`\n- Flutter: `\u003e=3.10.0`\n- Dio: `\u003e=5.2.0 \u003c6.0.0`\n\n## Limitations\n\n- **In-Memory Only** - Calls are not persisted between app restarts\n- **No Network Modification** - This is a monitoring tool only, it doesn't modify requests\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## Credits\n\nInspired by other HTTP debugging tools like Chuck (Android) and Network Inspector (iOS).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7wilightxdev%2Fdio_spy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7wilightxdev%2Fdio_spy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7wilightxdev%2Fdio_spy/lists"}