PackageTrack
Sign in Get early access

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 2026
2026
Release Pre-release

Releases

latest 14
  1. 2.0.0 21 Jul 2026
    Release notes

    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, and isDebugFeaturesAccessible state.
    • TotoSecretSection — ready-made 6-digit OTP input wired to AccessController.
    • Release builds (and debug builds with --dart-define) support split TOTP secrets via TOTP_SECRET_PART1 and TOTP_SECRET_PART2.

    Integration notes:

    • Register AccessController once with Get.put(..., tag: AllControllerKeys.accessControllerKey).
    • Place SecretKnockDetector on a discreet UI element; show TotoSecretSection in a dialog/sheet on knock.
    • Gate DebugOverlayWidget behind accessController.isDebugFeaturesAccessible so logs stay hidden until TOTP succeeds.
    Open source →
  2. 1.1.2 21 Jul 2026
    Release notes

    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-length are 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.
    Open source →
  3. 1.1.1 19 Jul 2026
    Release notes

    Add dioExceptionType, dioMessage and dioUnderlyingError to NetworkMonitoringParams

    Open source →
  4. 1.1.0 29 Jun 2026
    Release notes

    Fix ApiService singleton initialization and add support for multiple configured instances.

    Breaking changes:

    • ApiService.instance now throws a StateError when accessed before ApiService.init() instead of returning an uninitialized instance.
    • Renamed needIntitialGlobalInstance to needInitialGlobalInstance in ApiService.init().

    Enhancements:

    • ApiService.init() returns the configured service instance, so callers can keep and use dedicated instances when needInitialGlobalInstance is false.
    • Export NetworkMonitoringParams and NetworkMonitoringFunction from the main library entry point.

    Fixes:

    • Prevent subtle runtime bugs from using an uninitialized ApiService via the instance getter.
    Open source →
  5. 1.0.1 03 Jun 2026

    Nothing published for this version

  6. 1.0.0 03 Jun 2026
    Release notes

    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.

    Open source →
  7. 0.0.8 05 May 2026
    Release notes
    • Add needToLogRequests for adding request to the DebugLogController
    Open source →
  8. 0.0.7 27 Apr 2026
    Release notes
    • Added support for Unauthorized Flow handling
    Open source →
  9. 0.0.6 21 Apr 2026
    Release notes
    • Change CookieJar into nullable instead of late
    Open source →
  10. 0.0.5 20 Apr 2026
    Release notes
    • Added cookie management support in API service using persistent storage for session handling.
    • Introduced configurable logging via needToShowLog flag 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

    Open source →
  11. 0.0.4 12 Nov 2025

    Nothing published for this version

  12. 0.0.3 04 Nov 2025

    Nothing published for this version

  13. 0.0.2 01 Nov 2025

    Nothing published for this version

  14. 0.0.1 01 Nov 2025
    Release notes

    Initial release of the package

    • Introduced a centralized API service with:

      • Unified GET, POST, PUT, PATCH, and DELETE request handling
      • Built-in error catching (DioException & general exceptions)
      • Custom success and failure callbacks
    • 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

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive