Skip to content
pubscout

peek

2.1.1, released 4 weeks ago by an unverified publisher

In-app network inspector for Flutter to view and debug requests, responses, and failures.

WASM-ready
$ flutter pub add peek
Source repository

What it does

Peek records network calls made by your Flutter client and displays them inside the application. It supports searching, filtering, and exporting calls as cURL, HAR, Markdown, or text, with adapters for Dio, Chopper, package:http, and Talker.

AI-written summary of version 2.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to inspect network traffic directly inside your mobile, desktop, or web app during development.
  • You need to export network logs as cURL or HAR for debugging or reporting issues.

Skip it when

  • You are running in production and do not want network payloads stored in memory or exposed via UI overlays.

Strengths

  • Integrates easily with popular HTTP clients like Dio, Chopper, and package:http via adapters.
  • Supports multiple export formats including cURL, HAR, Markdown, and plain text.
  • Provides a live remote viewer via Peek Pro for watching network logs from a Mac.

Weaknesses

  • Keeps entries in memory, which requires setting limits (such as maxEntries and maxBodyBytes) to avoid high memory consumption.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Add the core package and an appropriate network client adapter package, then add the interceptor to your HTTP client and call showPeek(context).

final dio = Dio(BaseOptions(baseUrl: 'https://api.example.com'));
dio.interceptors.add(PeekDioInterceptor(Peek.instance));

showPeek(context);

Alternatives

Packages that do the same job and could replace peek.