{"id":28709087,"url":"https://github.com/tanstack/pacer","last_synced_at":"2026-04-01T22:43:09.415Z","repository":{"id":281547879,"uuid":"942339420","full_name":"TanStack/pacer","owner":"TanStack","description":"Utilities for debouncing, throttling, rate limiting, and queueing. Non-async and Async.","archived":false,"fork":false,"pushed_at":"2026-01-26T05:49:10.000Z","size":3918,"stargazers_count":603,"open_issues_count":7,"forks_count":37,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-26T11:13:13.714Z","etag":null,"topics":["async","batching","debouncing","pooling","queue","rate","task-scheduler","throttling"],"latest_commit_sha":null,"homepage":"https://tanstack.com/pacer","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TanStack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"tannerlinsley"}},"created_at":"2025-03-04T00:38:31.000Z","updated_at":"2026-01-26T05:49:13.000Z","dependencies_parsed_at":"2025-03-24T23:23:17.428Z","dependency_job_id":"7e483669-3237-44b2-ad92-a3fbebd98f36","html_url":"https://github.com/TanStack/pacer","commit_stats":null,"previous_names":["tanstack/bouncer"],"tags_count":123,"template":false,"template_full_name":null,"purl":"pkg:github/TanStack/pacer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TanStack%2Fpacer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TanStack%2Fpacer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TanStack%2Fpacer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TanStack%2Fpacer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TanStack","download_url":"https://codeload.github.com/TanStack/pacer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TanStack%2Fpacer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T13:02:32.985Z","status":"ssl_error","status_checked_at":"2026-01-28T13:02:04.945Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","batching","debouncing","pooling","queue","rate","task-scheduler","throttling"],"created_at":"2025-06-14T19:39:51.603Z","updated_at":"2026-04-01T22:43:09.404Z","avatar_url":"https://github.com/TanStack.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./media/header_pacer.png\" \u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\n\t\u003ca href=\"https://www.npmjs.com/package/@tanstack/pacer\" target=\"\\_parent\"\u003e\n\t  \u003cimg alt=\"\" src=\"https://img.shields.io/npm/dm/@tanstack/pacer.svg\" alt=\"npm downloads\" /\u003e\n\t\u003c/a\u003e\n- \u003ca href=\"https://github.com/TanStack/pacer\" target=\"\\_parent\"\u003e\n\t  \u003cimg alt=\"\" src=\"https://img.shields.io/github/stars/TanStack/pacer.svg?style=social\u0026label=Star\" alt=\"GitHub stars\" /\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://bundlephobia.com/result?p=@tanstack/react-pacer@latest\" target=\"\\_parent\"\u003e\n  \u003cimg alt=\"\" src=\"https://badgen.net/bundlephobia/minzip/@tanstack/react-pacer@latest\" alt=\"Bundle size\" /\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"#badge\"\u003e\n  \u003cimg alt=\"semantic-release\" src=\"https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\"\u003e\n\u003c/a\u003e\n\t\u003ca href=\"#badge\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/github/v/release/tanstack/pacer\" alt=\"Release\"/\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://twitter.com/tan_stack\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/twitter/follow/tan_stack.svg?style=social\" alt=\"Follow @TanStack\"/\u003e\n\t\u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \n### [Become a Sponsor!](https://github.com/sponsors/tannerlinsley/)\n\u003c/div\u003e\n\n# TanStack Pacer\n\nA lightweight timing and scheduling library for debouncing, throttling, rate limiting, queuing, and batching.\n\n\u003e [!NOTE]\n\u003e 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.\n\n- **Debouncing**\n  - Delay execution until after a period of inactivity for when you only care about the last execution in a sequence.\n  - Synchronous or Asynchronous Debounce utilities with promise support and error handling\n  - Control of leading, trailing, and enabled options\n- **Throttling**\n  - Smoothly limit the rate at which a function can fire\n  - Synchronous or Asynchronous Throttle utilities with promise support and error handling\n  - Control of leading, trailing, and enabled options.\n- **Rate Limiting**\n  - Limit the rate at which a function can fire over a period of time\n  - Synchronous or Asynchronous Rate Limiting utilities with promise support and error handling\n  - Fixed or Sliding Window variations of Rate Limiting\n- **Queuing**\n  - Queue functions to be executed in a specific order\n  - Choose from FIFO, LIFO, and Priority queue implementations\n  - Control processing speed with configurable wait times or concurrency limits\n  - Manage queue execution with start/stop capabilities\n  - Expire items from the queue after a configurable duration\n- **Batching**\n  - Chunk up multiple operations into larger batches to reduce total back-and-forth operations\n  - Batch by time period, batch size, whichever comes first, or a custom condition to trigger batch executions\n- **Async or Sync Variations**\n  - Choose between synchronous and asynchronous versions of each utility\n  - Optional error, success, and settled handling for async variations\n  - Retry and Abort support for async variations\n- **State Management**\n  - Uses TanStack Store under the hood for state management with fine-grained reactivity\n  - Easily integrate with your own state management library of choice\n  - Persist state to local or session storage for some utilities like rate limiting and queuing\n- **Convenient Hooks**\n  - Reduce boilerplate code with pre-built hooks like `useDebouncedCallback`, `useThrottledValue`, and `useQueuedState`, and more.\n  - Multiple layers of abstraction to choose from depending on your use case.\n  - Works with each framework's default state management solutions, or with whatever custom state management library that you prefer.\n- **Type Safety**\n  - Full type safety with TypeScript that makes sure that your functions will always be called with the correct arguments\n  - Generics for flexible and reusable utilities\n- **Framework Adapters**\n  - React, Solid, and more\n- **Tree Shaking**\n  - 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.\n\n### \u003ca href=\"https://tanstack.com/pacer\"\u003eRead the docs →\u003c/b\u003e\u003c/a\u003e\n\n\u003cbr /\u003e\n\n\u003e [!NOTE]\n\u003e You may know **TanStack Pacer** by our adapter names, too!\n\u003e\n\u003e - [**React Pacer**](https://tanstack.com/pacer/latest/docs/framework/react/react-pacer)\n\u003e - [**Preact Pacer**](https://tanstack.com/pacer/latest/docs/framework/preact/preact-pacer)\n\u003e - [**Solid Pacer**](https://tanstack.com/pacer/latest/docs/framework/solid/solid-pacer)\n\u003e - [**Angular Pacer**](https://tanstack.com/pacer/latest/docs/framework/angular/angular-pacer)\n\u003e - Svelte Pacer - needs a contributor!\n\u003e - Vue Pacer - needs a contributor!\n\n## Get Involved\n\n- We welcome issues and pull requests!\n- Participate in [GitHub discussions](https://github.com/TanStack/pacer/discussions)\n- Chat with the community on [Discord](https://discord.com/invite/WrRKjPJ)\n- See [CONTRIBUTING.md](./CONTRIBUTING.md) for setup instructions\n\n## Partners\n\n\u003ctable align=\"center\"\u003e\n  \u003ctr\u003e\n        \u003ctd\u003e\n      \u003ca href=\"https://www.coderabbit.ai/?via=tanstack\u0026dub_id=aCcEEdAOqqutX6OS\" \u003e\n        \u003cpicture\u003e\n          \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://tanstack.com/assets/coderabbit-dark-D643Zkrv.svg\" /\u003e\n          \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://tanstack.com/assets/coderabbit-light-CIzGLYU_.svg\" /\u003e\n          \u003cimg src=\"https://tanstack.com/assets/coderabbit-light-CIzGLYU_.svg\" height=\"40\" alt=\"CodeRabbit\" /\u003e\n        \u003c/picture\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://www.cloudflare.com?utm_source=tanstack\"\u003e\n        \u003cpicture\u003e\n          \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://tanstack.com/assets/cloudflare-white-Co-Tyjbl.svg\" /\u003e\n          \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://tanstack.com/assets/cloudflare-black-6Ojsn8yh.svg\" /\u003e\n          \u003cimg src=\"https://tanstack.com/assets/cloudflare-white-Co-Tyjbl.svg\" height=\"60\" alt=\"Cloudflare\" /\u003e\n        \u003c/picture\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://www.unkey.com/?utm_source=tanstack\"\u003e\n        \u003cpicture\u003e\n          \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"./media/unkey_dark.svg\" height=\"60\" /\u003e\n          \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"./media/unkey_logo.svg\" height=\"60\" /\u003e\n          \u003cimg src=\"./media/unkey_logo.svg\" height=\"60\" alt=\"Unkey\"/\u003e\n        \u003c/picture\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"./media/partner_logo.svg\" alt=\"Pacer \u0026 you?\" height=\"65\"\u003e\n\u003cp\u003e\nWe'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.\n\u003c/p\u003e\n\u003ca href=\"mailto:partners@tanstack.com?subject=TanStack Pacer Partnership\"\u003e\u003cb\u003eLET'S CHAT\u003c/b\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003c/div\u003e\n\n## Explore the TanStack Ecosystem\n\n- \u003ca href=\"https://github.com/tanstack/config\"\u003e\u003cb\u003eTanStack Config\u003c/b\u003e\u003c/a\u003e – Tooling for JS/TS packages\n- \u003ca href=\"https://github.com/tanstack/db\"\u003e\u003cb\u003eTanStack DB\u003c/b\u003e\u003c/a\u003e – Reactive sync client store\n- \u003ca href=\"https://github.com/tanstack/devtools\"\u003e\u003cb\u003eTanStack DevTools\u003c/b\u003e\u003c/a\u003e – Unified devtools panel\n- \u003ca href=\"https://github.com/tanstack/form\"\u003e\u003cb\u003eTanStack Form\u003c/b\u003e\u003c/a\u003e – Type‑safe form state\n- \u003ca href=\"https://github.com/tanstack/query\"\u003e\u003cb\u003eTanStack Query\u003c/b\u003e\u003c/a\u003e – Async state \u0026 caching\n- \u003ca href=\"https://github.com/tanstack/ranger\"\u003e\u003cb\u003eTanStack Ranger\u003c/b\u003e\u003c/a\u003e – Range \u0026 slider primitives\n- \u003ca href=\"https://github.com/tanstack/router\"\u003e\u003cb\u003eTanStack Router\u003c/b\u003e\u003c/a\u003e – Type‑safe routing, caching \u0026 URL state\n- \u003ca href=\"https://github.com/tanstack/router\"\u003e\u003cb\u003eTanStack Start\u003c/b\u003e\u003c/a\u003e – Full‑stack SSR \u0026 streaming\n- \u003ca href=\"https://github.com/tanstack/store\"\u003e\u003cb\u003eTanStack Store\u003c/b\u003e\u003c/a\u003e – Reactive data store\n- \u003ca href=\"https://github.com/tanstack/table\"\u003e\u003cb\u003eTanStack Table\u003c/b\u003e\u003c/a\u003e – Headless datagrids\n- \u003ca href=\"https://github.com/tanstack/virtual\"\u003e\u003cb\u003eTanStack Virtual\u003c/b\u003e\u003c/a\u003e – Virtualized rendering\n\n… and more at \u003ca href=\"https://tanstack.com\"\u003e\u003cb\u003eTanStack.com »\u003c/b\u003e\u003c/a\u003e\n\n\u003c!-- USE THE FORCE LUKE --\u003e\n","funding_links":["https://github.com/sponsors/tannerlinsley","https://github.com/sponsors/tannerlinsley/"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanstack%2Fpacer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanstack%2Fpacer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanstack%2Fpacer/lists"}