cote_network_logger
1.2.1, released 2 weeks ago by an unverified publisher
Real-time Dio HTTP request/response logger with a web dashboard.
What it does
Intercepts Dio calls and records request and response details, then serves them via a local web dashboard. The dashboard shows headers, bodies, status codes and lets you copy cURL commands. It works on Android, iOS, macOS, Windows and Linux.
AI-written summary of version 1.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- Debugging network traffic during development
- Testing API interactions with live visual feedback
Skip it when
- Production builds where logged data could be exposed
- Apps that need encrypted or authenticated logging
Strengths
- Live, interactive dashboard across platforms
- Zero code‑generation, just add an interceptor
- Supports release builds via build‑time flag
Weaknesses
- Logs are unauthenticated and exposed on the local network
- Works only with Dio, not other HTTP clients
- Not compatible with Flutter Web
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Add cote_network_logger to pubspec, call await startNetworkLogServer() before runApp, add CoteNetworkLogger interceptor to Dio instance, ensure port 3000 is free.
import 'package:flutter/widgets.dart';
import 'package:dio/dio.dart';
import 'package:cote_network_logger/cote_network_logger.dart';
final dio = Dio()..interceptors.add(const CoteNetworkLogger());
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await startNetworkLogServer();
runApp(MyApp());
}Alternatives
Packages that do the same job and could replace cote_network_logger.
- http2
An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.
91Compare - dio_web_adapter
Web and WASM HTTP client adapter for Dio.
83Compare - alice
Advanced HTTP network inspector and logger with a native UI for Flutter.
88Compare - network_tools
Discover open ports, devices on a subnet, and perform network scanning.
87Compare
Works with
Packages commonly used together with cote_network_logger: ones it builds on, ones built on it, and its own family.
- shelfcote_network_logger depends on itComposable web server middleware for Dart
- shelf_staticcote_network_logger depends on itServe static files over HTTP with the shelf package
- diocote_network_logger depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.