Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
oakoss avatar

Tanstack Pacer

  • 83 installs
  • 14 repo stars
  • Updated March 2, 2026
  • oakoss/agent-skills

Helps with ai & agent building tasks during AI-assisted development.

About

tanstack-pacer is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • tanstack-pacer
  • AI & Agent Building
  • AI-coding skill

Tanstack Pacer by the numbers

  • 83 all-time installs (skills.sh)
  • +2 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #5,144 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/oakoss/agent-skills --skill tanstack-pacer

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs83
repo stars14
Last updatedMarch 2, 2026
Repositoryoakoss/agent-skills

What it does

Helps with ai & agent building tasks during AI-assisted development.

Files

SKILL.mdMarkdownGitHub ↗

TanStack Pacer

Overview

TanStack Pacer is a lightweight, type-safe library for controlling function execution timing through debouncing, throttling, rate limiting, queuing, and batching. It provides framework-agnostic core classes with dedicated React hooks at multiple abstraction levels (instance, callback, state, value).

When to use: Debouncing search input, throttling scroll/resize handlers, enforcing API rate limits, queuing async tasks with concurrency control, batching multiple operations into single requests.

When NOT to use: Simple one-off delays (use setTimeout), server-side rate limiting at the infrastructure level (use middleware/API gateway), complex job scheduling (use a task queue like BullMQ).

Quick Reference

PatternAPIKey Points
Debounce functionDebouncer / debounce(fn, opts)Waits for inactivity; no maxWait option by design
Throttle functionThrottler / throttle(fn, opts)Even spacing; leading and trailing both default true
Rate limitRateLimiter / rateLimit(fn, opts)Fixed or sliding window; rejects calls over limit
Queue itemsQueuer / queue(fn, opts)FIFO default; supports LIFO, priority, expiration
Async queueAsyncQueuer / asyncQueue(fn, opts)Concurrency control, retry, error callbacks
Async batchAsyncBatcher / asyncBatch(fn, opts)Collects items, processes as batch after wait/maxSize
React debounceuseDebouncer / useDebouncedCallbackInstance hook vs simple callback hook
React throttleuseThrottler / useThrottledCallbackInstance hook vs simple callback hook
React rate limituseRateLimiter / useRateLimitedCallbackInstance hook vs simple callback hook
React queueuseQueuer / useQueuedStateInstance hook vs state-integrated hook
React async queueuseAsyncQueuer / useAsyncQueuedStateConcurrency + state management
React batchuseBatcher / useAsyncBatcherSync and async batching hooks
State hooksuseDebouncedState, useThrottledStateIntegrate with React state directly
Value hooksuseDebouncedValue, useThrottledValueCreate derived debounced/throttled values

Common Mistakes

MistakeCorrect Pattern
Using maxWait on DebouncerDebouncer has no maxWait; use Throttler for evenly spaced execution
Creating instances inside renderCreate with hooks (useDebouncer, useThrottler) to manage lifecycle
Ignoring maybeExecute returnRate limiter and throttler may reject calls; check state or use callbacks
Using debounce when throttle is neededDebounce waits for pause; throttle guarantees max-once-per-interval
Not cleaning up on unmountReact hooks handle cleanup automatically; manual instances need cancel()
Using Queuer when items can be droppedQueuers process every item; use throttle/debounce if dropping is acceptable
Fixed window when sliding is neededFixed windows allow bursts at boundaries; sliding window gives smoother rate
Forgetting onReject on RateLimiterRejected calls are silent by default; add onReject for user feedback
Not passing enabled: false to disableAll utilities support enabled option to temporarily disable processing

Delegation

If the tanstack-query skill is available, delegate data fetching and cache management tasks to it. TanStack Pacer complements Query for controlling request frequency.
Otherwise, recommend: npx skills add oakoss/agent-skills --skill tanstack-query
  • Execution timing patterns: Use this skill
  • Data fetching and caching: Delegate to tanstack-query
  • Component architecture: Delegate to framework-specific skills

References

  • Throttle and debounce patterns
  • Rate limiting patterns
  • Queuing and async queuing
  • React hooks and integration

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.