TanStackPacer

STATUS: ALPHA

Flexible type-safe throttling and queuing utilities

Optimize your application's performance with TanStack Pacer's core primitives: Debouncing, Throttling, Rate Limiting, Queuing, and Batching.

Choose from multiple layers of abstraction using high-level pre-built hooks or low-level primitives that you can connect to your own state management solutions of choice.

Get Started

Flexible & Type-Safe

TanStack Pacer provides an intuitive and flexible API that works across any JavaScript framework. Every utility is fully type-safe with reactive framework adapters that seamlessly connect to your state management of choice. Choose from multiple layers of abstraction to confidently control timing in your applications.

Optimize Performance

Enhance your application's efficiency with flexible utilities for throttling, debouncing, queuing, and batching. Reduce unnecessary operations and resource consumption while maintaining smooth user experiences. Built-in cleanup and cancellation capabilities help prevent memory leaks and optimize resource usage. Fine-tune behavior with flexible configuration options to match your specific performance needs.

Async or Sync

Choose between async or sync execution for each utility based on your needs. Track success and error states with comprehensive event handling and status reporting. Perfect for handling both simple synchronous operations and complex task pooling workflows with with or without concurrency control.

Framework Agnostic & Feature Rich

TanStack Pacer's API is highly modular and framework-independent while still prioritizing ergonomics. Behold, the obligatory feature-list:

Lightweight Tree-Shaking Type-Safe Rate Limiting Throttling Debouncing Queuing Batching LIFO/FIFO/Dequeue Ordering Concurrency Control Queue Prioritization Pause/Resume Controls Cancellation Abort Controller Support Async/Sync Execution Multiple Layers of Abstraction
An ad on an open source project? What is this, 1999?
Please... TanStack is 100% privately owned, with no paid products, venture capital, or acquisition plans. We're a small team dedicated to creating software used by millions daily. What did you expect?
Check out our ethos to learn more about how we plan on sticking around (and staying relevant) for the long-haul.
Wow, you've come a long way!
Only one thing left to do...
Get Started!