alice
2.0.0, released 4 weeks ago by hasoft.pl
Advanced HTTP network inspector and logger with a native UI for Flutter.
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.
50Compare - talker
If you want a more general-purpose logging and debugging tool that handles exceptions, routing, and block events alongside network traffic.
94Compare
Works with
Packages commonly used together with alice: ones it builds on, ones built on it, and its own family.
- xmlalice depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- path_provideralice depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- url_launcheralice depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- package_info_plusalice depends on itFlutter plugin to query app package info like version, build number and installer store.
- equatablealice depends on itProvides value‑based equality for Dart objects without manual == and hashCode.
- rxdartalice depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.
- share_plusalice depends on itShare text, files, or URIs via native share dialogs on mobile, web, and desktop.
- permission_handleralice depends on itCross-platform API to check and request permissions on iOS, Android, Web, and Windows.