Skip to main content

netlens 1.1.0 copy "netlens: ^1.1.0" to clipboard
netlens: ^1.1.0 copied to clipboard

In-app HTTP inspector for Flutter. Browse calls, filter and search them, hide secrets, resend requests, export HAR, read GraphQL and see a timeline.

NetLens #

pub package pub package pub package pub package pub package pub package platform melos

NetLens is an in-app HTTP inspector for Flutter. It catches the requests and responses your app makes and lets you look through them, filter them, export them and send them again, right on the device.

Calls list with quick filters, status and GraphQL badges Response body in the collapsible JSON viewer Request with the API key and password hidden
Editing a call before sending it again Timeline of calls as a waterfall Statistics with the slowest endpoints

Supported HTTP clients:

Client Package
Dio netlens_dio
http netlens_http
HttpClient from dart:io netlens_http_client
Chopper netlens_chopper
Any other client NetLensAdapter from netlens

Calls are kept in memory by default, or in a database with netlens_objectbox.

Features:

  • Detailed request and response logs for every call
  • Inspector UI with statistics, notifications and shake to open
  • Search in URLs, headers and bodies, with quick filters by status, method and host
  • Sensitive headers, cookies and fields hidden in the inspector and masked in exports
  • Edit and resend a call (Dio, http and HttpClient)
  • Record calls as mock endpoints and replay them offline, in the app or from a local mock server
  • Collapsible JSON viewer with search
  • Export to a log file or to HAR for Chrome DevTools, Proxyman or Charles
  • GraphQL operation names and errors
  • Timeline of calls and slowest endpoints
  • Flutter and Android logs

Quick start #

dependencies:
  netlens: ^1.1.0
  netlens_dio: ^1.1.0
import 'package:dio/dio.dart';
import 'package:netlens/netlens.dart';
import 'package:netlens/model/netlens_configuration.dart';
import 'package:netlens_dio/netlens_dio.dart';

final netLens = NetLens(
  configuration: NetLensConfiguration(showInspectorOnShake: true),
);
final dioAdapter = NetLensDioAdapter();
netLens.addAdapter(dioAdapter);

final dio = Dio()..interceptors.add(dioAdapter);

MaterialApp(
  navigatorKey: netLens.getNavigatorKey(),
  // ...
);

Documentation #

You can find the documentation here.

Credits #

NetLens is a fork of Alice by Jakub Homlala and its contributors, licensed under the Apache License 2.0. See NOTICE for details. Alice itself was inspired by Chuck and Chucker.

0
likes
150
points
198
downloads
screenshot

Documentation

API reference

Publisher

verified publishershewa.tech

Weekly Downloads

In-app HTTP inspector for Flutter. Browse calls, filter and search them, hide secrets, resend requests, export HAR, read GraphQL and see a timeline.

Repository (GitHub)
View/report issues

Topics

#http #inspector #dio #chopper #interceptor

License

Apache-2.0 (license)

Dependencies

collection, equatable, flutter, flutter_local_notifications, open_filex, package_info_plus, path_provider, permission_handler, rxdart, sensors_plus, share_plus, url_launcher

More

Packages that depend on netlens