FLUTTER ECOSYSTEM

rate_limiter

A pure dart package to apply useful rate limiting strategies on regular functions.

Latest version
1.1.1
30-day downloads
144K
Likes
99
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A pure Dart package designed to implement effective rate limiting strategies for regular functions. It helps prevent overloading systems by controlling the frequency of function executions, making it ideal for managing API calls, search queries, and other high-frequency operations. Built with simplicity and performance in mind, it supports various rate-limiting algorithms and integrates seamlessly across multiple platforms. The package is particularly useful in scenarios requiring throttling or bursting control without external dependencies.

Use cases
  • Throttling API requests
  • Limiting search input frequency
  • Preventing spam in user inputs
  • Managing bursty workloads
  • Controlling background task execution
Key features
  • Supports multiple rate-limiting strategies
  • Pure Dart implementation
  • Cross-platform compatibility
  • Simple function wrapping
  • Configurable limits and intervals
  • No external dependencies
Suitable for
  • Developers building APIs with usage constraints
  • Apps needing input debouncing
  • Systems requiring load protection
  • Real-time applications with high call volumes
  • Teams using Flutter across multiple platforms
Considerations
  • Requires manual integration with async functions
  • Limited to function-level rate limiting
  • No built-in persistence for state
  • Best suited for lightweight, synchronous use cases
  • May need additional handling for complex concurrency patterns
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add rate_limiter

Categories

Dependencies

Dependency list 1 items

Source repository

Related projects

Rankings