network_sanitizer 1.0.0 copy "network_sanitizer: ^1.0.0" to clipboard
network_sanitizer: ^1.0.0 copied to clipboard

A powerful HTTP caching and request deduplication library for Flutter/Dart applications using Dio interceptor. Provides efficient network request optimization with configurable caching, automatic requ [...]

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.0 - 2025-06-03 #

Added #

  • πŸŽ‰ Initial release of Network Sanitizer
  • βœ… HTTP request caching with configurable duration
  • βœ… Automatic request deduplication to prevent duplicate simultaneous requests
  • βœ… Force refresh functionality to invalidate cache on demand
  • βœ… Cross-platform storage support using Hive
  • βœ… Seamless Dio interceptor integration
  • βœ… Customizable cache manager interface for custom storage implementations
  • βœ… Smart cache key generation based on request parameters
  • βœ… Zero-configuration setup with sensible defaults
  • βœ… Support for all Flutter platforms (Android, iOS, Web, macOS, Windows, Linux)
  • πŸ“± Complete example app demonstrating all features
  • πŸ“š Comprehensive documentation and API reference

Features #

  • NetworkSanitizerInterceptor: Main interceptor class with configurable cache duration
  • SanitizerCacheManager: Abstract interface for custom cache implementations
  • HiveCacheManager: Default Hive-based cache storage implementation
  • Request Key Generation: Automatic generation of unique cache keys
  • Cache Invalidation: Support for force refresh via request options
  • Request Deduplication: Prevents duplicate network calls for identical requests

Dependencies #

  • dio: ^5.8.0+1 - HTTP client integration
  • hive: ^2.2.3 - Cross-platform storage
  • hive_flutter: ^1.1.0 - Flutter-specific Hive extensions
  • path_provider: ^2.1.4 - Platform-specific paths
7
likes
140
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

A powerful HTTP caching and request deduplication library for Flutter/Dart applications using Dio interceptor. Provides efficient network request optimization with configurable caching, automatic request deduplication, and cross-platform storage support.

Homepage
Repository (GitHub)
View/report issues

Topics

#networking #caching #dio #http #interceptor

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

cupertino_icons, dio, flutter, hive, hive_flutter

More

Packages that depend on network_sanitizer