requests_inspector
5.5.1, released 3 months ago by abdelazeem-kuratem.engineer
Log, inspect, and share REST and GraphQL requests by shaking your phone.
What it does
A Flutter package for logging REST APIs and GraphQL requests. It provides an inspector widget that can be opened by shaking the phone or long-pressing the screen, letting developers view request details, copy cURL commands, and export HAR files.
AI-written summary of version 5.5.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need an on-device UI to debug and inspect network traffic during development.
- You want to easily share request details, cURL commands, or HAR files with team members.
Skip it when
- You are running a production app where network payload logging and request interception tools should be disabled.
Strengths
- Supports both REST (via Dio or manual controller entry) and GraphQL.
- Can trigger the inspector view by shaking the phone or long-pressing the screen.
- Allows sharing requests as JSON, cURL, or HAR files.
Weaknesses
- Relies on specific interceptors or manual logging if not using Dio or graphql_flutter.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 9
Wrap your MaterialApp or root widget with RequestsInspector and add the RequestsInspectorInterceptor to Dio.
void main() {
runApp(const RequestsInspector(
child: MyApp(),
));
}
final dio = Dio()..interceptors.add(RequestsInspectorInterceptor());Alternatives
Packages that do the same job and could replace requests_inspector.
- amplify_api
Amplify Flutter API plugin supporting GraphQL and REST operations.
89Compare - amplify_api_dart
Dart-only Amplify API plugin for GraphQL and REST.
84Compare - angel3_graphql
Serve GraphQL APIs over HTTP and WebSockets using the Angel3 framework.
74Compare - gql_link
Modular AST-based GraphQL request execution interface.
77Compare
Works with
Packages commonly used together with requests_inspector: ones it builds on, ones built on it, and its own family.
- diorequests_inspector depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- share_plusrequests_inspector depends on itShare text, files, or URIs via native share dialogs on mobile, web, and desktop.
- connectivity_plusrequests_inspector depends on itDiscover the state of network connectivity (WiFi, mobile, ethernet) on Android, iOS, Web and desktops.
- providerrequests_inspector depends on itA lightweight wrapper around InheritedWidget for state management
- sensors_plusrequests_inspector depends on itFlutter plugin to access accelerometer, gyroscope, magnetometer, and barometer sensors.
- gqlrequests_inspector depends on itParse, transform and print GraphQL documents in Dart.
- graphqlrequests_inspector depends on itA Dart GraphQL client offering queries, mutations, subscriptions and cache management.
- graphql_flutterrequests_inspector depends on itA GraphQL client for Flutter with widget wrappers and hooks.