Skip to content
pubscout

alice

2.0.0, released 4 weeks ago by hasoft.pl

Advanced HTTP network inspector and logger with a native UI for Flutter.

WASM-readyUses material_ui
$ flutter pub add alice
Source repository

What it does

Alice intercepts REST API requests and responses to provide a built-in on-device UI for inspecting headers, bodies, response times, and timelines. It supports major HTTP clients like Dio, http, Chopper, and GraphQL.

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

Use it when

  • You need to inspect and debug HTTP traffic directly on-device without setting up an external proxy.
  • You want a searchable visual history of all REST API requests, responses, and timeline metrics during development.

Skip it when

  • You are running a production release where network logging and interception could leak sensitive information or degrade performance.
  • You do not use REST/GraphQL HTTP clients compatible with Alice's interceptor adapters.

Strengths

  • Broad compatibility with popular Dart HTTP clients including Dio, http, Chopper, Retrofit, and GraphQL.
  • Rich on-device UI features like interactive JSON/XML viewers, request replay, statistics dashboard, and a floating overlay bubble.
  • Capture-time security redaction for sensitive headers and body keys.

Weaknesses

  • Requires adding client-specific adapter packages and wiring them into each HTTP client instance.
  • Increases application size and dependency footprint if many adapters are integrated.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
13

Initialize Alice configuration, pass the navigator key to your MaterialApp, and attach the client-specific adapter (e.g., alice_dio) to your network client.

final configuration = AliceConfiguration(showOverlayBubble: true);
final alice = Alice(configuration: configuration);

MaterialApp(
  navigatorKey: alice.getNavigatorKey(),
  home: Scaffold(...),
);

Alternatives

Packages that do the same job and could replace alice.

  • pretty_dio_logger

    If you only use Dio and prefer seeing requests and responses formatted directly in the developer console instead of an on-device UI.

  • talker

    If you want a more general-purpose logging and debugging tool that handles exceptions, routing, and block events alongside network traffic.

Works with

Packages commonly used together with alice: ones it builds on, ones built on it, and its own family.