GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - TanStack/pacer: Utilities for debouncing, throttling, rate limiting, and queueing. Non-async and Async.

BranchesTags
Open more actions menu

Latest commit

 

History

327 Commits
327 Commits

Folders and files

NameName
Last commit message
Last commit date
.changeset
.changeset
 
 
.github
.github
 
 
.nx/workflows
.nx/workflows
 
 
.vscode
.vscode
 
 
docs
docs
 
 
examples
examples
 
 
media
media
 
 
packages
packages
 
 
scripts
scripts
 
 
tests
tests
 
 
.coderabbit.yaml
.coderabbit.yaml
 
 
.cursorignore
.cursorignore
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.nvmrc
.nvmrc
 
 
.prettierignore
.prettierignore
 
 
AGENTS.md
AGENTS.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
eslint.config.js
eslint.config.js
 
 
knip.json
knip.json
 
 
nx.json
nx.json
 
 
package.json
package.json
 
 
playwright.config.ts
playwright.config.ts
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
prettier.config.js
prettier.config.js
 
 
tsconfig.json
tsconfig.json
 
 
typedoc.json
typedoc.json
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

TanStack Pacer

-
semantic-release Release Follow @TanStack

Become a Sponsor!

TanStack Pacer

A lightweight timing and scheduling library for debouncing, throttling, rate limiting, queuing, and batching.

Note

TanStack Pacer is currently mostly a client-side only library, but it is being designed to be able to potentially be used on the server-side as well.

  • Debouncing
    • Delay execution until after a period of inactivity for when you only care about the last execution in a sequence.
    • Synchronous or Asynchronous Debounce utilities with promise support and error handling
    • Control of leading, trailing, and enabled options
  • Throttling
    • Smoothly limit the rate at which a function can fire
    • Synchronous or Asynchronous Throttle utilities with promise support and error handling
    • Control of leading, trailing, and enabled options.
  • Rate Limiting
    • Limit the rate at which a function can fire over a period of time
    • Synchronous or Asynchronous Rate Limiting utilities with promise support and error handling
    • Fixed or Sliding Window variations of Rate Limiting
  • Queuing
    • Queue functions to be executed in a specific order
    • Choose from FIFO, LIFO, and Priority queue implementations
    • Control processing speed with configurable wait times or concurrency limits
    • Manage queue execution with start/stop capabilities
    • Expire items from the queue after a configurable duration
  • Batching
    • Chunk up multiple operations into larger batches to reduce total back-and-forth operations
    • Batch by time period, batch size, whichever comes first, or a custom condition to trigger batch executions
  • Async or Sync Variations
    • Choose between synchronous and asynchronous versions of each utility
    • Optional error, success, and settled handling for async variations
    • Retry and Abort support for async variations
  • State Management
    • Uses TanStack Store under the hood for state management with fine-grained reactivity
    • Easily integrate with your own state management library of choice
    • Persist state to local or session storage for some utilities like rate limiting and queuing
  • Convenient Hooks
    • Framework adapters provide lifecycle-owned utilities and state/value helpers. React, Preact, and Octane also provide callback-only hooks.
    • Multiple layers of abstraction to choose from depending on your use case.
    • Works with each framework's default state management solutions, or with whatever custom state management library that you prefer.
  • Type Safety
    • Full type safety with TypeScript that makes sure that your functions will always be called with the correct arguments
    • Generics for flexible and reusable utilities
  • Framework Adapters
    • React, Preact, Solid, Angular, Vue, Svelte, Lit, Alpine, Ember, and Octane
  • Tree Shaking
    • We, of course, get tree-shaking right for your applications by default, but we also provide extra deep imports for each utility, making it easier to embed these utilities into your libraries without increasing the bundle-phobia reports of your library.

Read the docs →


Note

You may know TanStack Pacer by our adapter names, too!

  • React Pacer
  • Preact Pacer
  • Solid Pacer
  • Angular Pacer
  • Vue Pacer
  • Svelte Pacer
  • Lit Pacer
  • Alpine Pacer
  • Ember Pacer
  • Octane Pacer
  • Svelte Pacer - needs a contributor!
  • Vue Pacer - needs a contributor!

Get Involved

  • We welcome issues and pull requests!
  • Participate in GitHub discussions
  • Chat with the community on Discord
  • See CONTRIBUTING.md for setup instructions

Partners

CodeRabbit Cloudflare Unkey
Pacer & you?

We're looking for TanStack Pacer Partners to join our mission! Partner with us to push the boundaries of TanStack Pacer and build amazing things together.

LET'S CHAT

Explore the TanStack Ecosystem

  • TanStack Config – Tooling for JS/TS packages
  • TanStack DB – Reactive sync client store
  • TanStack DevTools – Unified devtools panel
  • TanStack Form – Type‑safe form state
  • TanStack Query – Async state & caching
  • TanStack Ranger – Range & slider primitives
  • TanStack Router – Type‑safe routing, caching & URL state
  • TanStack Start – Full‑stack SSR & streaming
  • TanStack Store – Reactive data store
  • TanStack Table – Headless datagrids
  • TanStack Virtual – Virtualized rendering

… and more at TanStack.com »

About

Utilities for debouncing, throttling, rate limiting, and queueing. Non-async and Async.

tanstack.com/pacer

Topics

asyncbatchingdebouncingpoolingqueueratetask-schedulerthrottling

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

795 stars

Watchers

2 watching

Forks

68 forks
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.