graphql_inspector
A Flutter package to intercept and inspect GraphQL API requests and responses β inspired by tools like Chucker for Android and Postman. Ideal for debugging GraphQL requests in development builds.
π Folder Structure
graphql_inspector/
βββ lib/
β βββ src/
β βββ GraphQLLogScreen.dart
β βββ LoggingLink.dart
βββ test/
βββ README.md
βββ pubspec.yaml
βββ LICENSE
βββ CHANGELOG.md
βββ ...
β¨ Features
- π¦ Logs every GraphQL query, mutation, and variables
- π― Displays request time and response neatly
- π§Ύ Pretty JSON viewer with syntax highlighting
- π Export GraphQL requests as
cURL
commands - π Copy/share requests directly from your Flutter UI
- π‘ Useful for QA, debugging, and API development
πΈ Screenshots
Query View | Response View | cURL Export |
---|---|---|
![]() |
![]() |
![]() |
π Getting Started
1. Add dependency
dependencies:
graphql_inspector: ^1.0.0