UNPKG

tiny-essentials

Version:

Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.

14 lines (9 loc) • 733 B
### šŸŽ‰ TinyRateLimiter Released! Introducing **TinyRateLimiter** – a lightweight and flexible rate limiting class for per-user interaction control. This module allows you to define limits based on max hits, time intervals, or both, and supports optional automatic cleanup of inactive users to save memory. ✨ **Key Features:** * Customizable hit and time-based limits * Per-user tracking with timestamp precision * Optional automatic cleanup of inactive users * Simple API with easy integration Ideal for usage in chat apps, game servers, APIs, or any real-time system where you want to prevent spam or abuse with minimal overhead. **Full Changelog**: https://github.com/JasminDreasond/Tiny-Essentials/compare/1.8.5...1.9.0