npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tanstack/solid-pacer

v0.16.1

Published

Utilities for debouncing and throttling functions in Solid.

Downloads

832

Readme

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
    • Reduce boilerplate code with pre-built hooks like useDebouncedCallback, useThrottledValue, and useQueuedState, and more.
    • 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, Solid, and more
  • 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 TanSack Pacer by our adapter names, too!

  • React Pacer
  • Solid Pacer
  • Angular Pacer - needs a contributor!
  • Preact Pacer - Coming soon! (After React Pacer is more fleshed out)
  • Svelte Pacer - needs a contributor!
  • Vue Pacer - needs a contributor!

Get Involved

Partners

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 »