api_sentinel
A lightweight Dio-powered API service for Flutter that automatically logs requests
2.0.0
171 downloads/mo
#1479 most downloaded on pub.dev
Arefyazdkhasti/api_senrinel
What this package is like to depend on
Last release 1 months ago
21 Jul 2026
Ships unpredictably
gaps range from 2 weeks to 5 months
Most releases are documented
notes for 10 of 14 stable releases
Nothing withdrawn
no release was ever pulled
9 months old
14 releases · first in 2025
14 releases in the last 12 months
see the full history below
Release timeline
14 releases · Nov 2025 to Jul 2026Releases
latest 14-
2.0.021 Jul 2026Release notes
Open source →Major release: gated debug access with secret knock gestures and TOTP verification.
New features:
SecretKnockDetector— wrap any widget to listen for a configurable tap/long-press pattern and trigger a callback.SecretPatterns— predefined knock sequences (accessible,tripleLongPress,shaveAndHaircut,morseSOS).AccessController— GetX controller that manages TOTP setup, validation, andisDebugFeaturesAccessiblestate.TotoSecretSection— ready-made 6-digit OTP input wired toAccessController.- Release builds (and debug builds with
--dart-define) support split TOTP secrets viaTOTP_SECRET_PART1andTOTP_SECRET_PART2.
Integration notes:
- Register
AccessControlleronce withGet.put(..., tag: AllControllerKeys.accessControllerKey). - Place
SecretKnockDetectoron a discreet UI element; showTotoSecretSectionin a dialog/sheet on knock. - Gate
DebugOverlayWidgetbehindaccessController.isDebugFeaturesAccessibleso logs stay hidden until TOTP succeeds.
-
1.1.221 Jul 2026Release notes
Open source →Add curl command generation and copy support in the debug overlay.
Enhancements:
- Generate a curl command for every logged request, built after interceptors and headers are applied so cookies, auth, and
content-lengthare included. - Copy curl to clipboard from the debug log list, with the button disabled when no curl was captured.
- View request and response headers in the debug log detail tabs.
- Generate a curl command for every logged request, built after interceptors and headers are applied so cookies, auth, and
-
1.1.119 Jul 2026Release notes
Open source →Add
dioExceptionType,dioMessageanddioUnderlyingErrorto NetworkMonitoringParams -
1.1.029 Jun 2026Release notes
Open source →Fix
ApiServicesingleton initialization and add support for multiple configured instances.Breaking changes:
ApiService.instancenow throws aStateErrorwhen accessed beforeApiService.init()instead of returning an uninitialized instance.- Renamed
needIntitialGlobalInstancetoneedInitialGlobalInstanceinApiService.init().
Enhancements:
ApiService.init()returns the configured service instance, so callers can keep and use dedicated instances whenneedInitialGlobalInstanceisfalse.- Export
NetworkMonitoringParamsandNetworkMonitoringFunctionfrom the main library entry point.
Fixes:
- Prevent subtle runtime bugs from using an uninitialized
ApiServicevia theinstancegetter.
-
1.0.103 Jun 2026Nothing published for this version
-
1.0.003 Jun 2026Release notes
Open source →Add optional network monitoring integration to API service and make error handling more flexible.
New Features:
Introduce a pluggable networkMonitoringFunction callback in ApiService to capture details of network-related exceptions. Add NetworkMonitoringParams model to standardize data passed to network monitoring integrations. Enhancements:
Allow ApiService request success handlers to be async for more flexible post-response processing. Extend handleErrorMessage to accept an optional error key override when parsing API error responses.
-
0.0.805 May 2026 -
0.0.727 Apr 2026 -
0.0.621 Apr 2026 -
0.0.520 Apr 2026Release notes
Open source →- Added cookie management support in API service using persistent storage for session handling.
- Introduced configurable logging via
needToShowLogflag in the init method in ApiService.
0.0.4
- Add header option to api service
0.0.3
- Add Filter for log pages
- Add attach to side draggable and expandable overlay
- Not showing overlay in debug page
0.0.2
Format code for pub.dev
-
0.0.412 Nov 2025Nothing published for this version
-
0.0.304 Nov 2025Nothing published for this version
-
0.0.201 Nov 2025Nothing published for this version
-
0.0.101 Nov 2025Release notes
Open source →Initial release of the package
-
Introduced a centralized API service with:
- Unified
GET,POST,PUT,PATCH, andDELETErequest handling - Built-in error catching (
DioException& general exceptions) - Custom success and failure callbacks
- Unified
-
Added a floating draggable debug overlay for real-time API inspection
- View logs, request bodies, and responses directly in-app
- Includes JSON tree view and color-highlighted JSON viewer
- Expandable to a full-screen log viewer
-
Added log filtering (by method, status, or keyword)
-
Example project demonstrating integration with a public REST API
-