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
query response curl

๐Ÿš€ Getting Started

1. Add dependency

dependencies:
  graphql_inspector: ^1.0.0

Libraries

graphql_inspector