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 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-easy-pull-refresh

v1.4.2

Published

Lightweight Vue 3 pull-to-refresh component and composable with touch/mouse gesture support, async task queue, and zero dependencies.

Downloads

3,029

Readme

VueEasyPullRefresh

npm version npm downloads license

Lightweight pull-to-refresh component for Vue 3. Works on both mobile (touch) and desktop (mouse). Bring-your-own loader, register async tasks from anywhere in the tree, and fine-tune the refresh animation.

Live demo & full docs →

Features

  • Vue 3 only, no extra runtime dependencies
  • Touch and mouse gesture support
  • Customizable loader via a named slot
  • Register async tasks (pullDownQueueAdd) from any descendant — the loader waits for the slowest one
  • Freeze the content swap until the loader is fully hidden
  • Ships ESM + UMD builds with TypeScript declarations

Requirements

  • Vue >= 3.0 (peer dependency)
  • Node >= 20 (dev only)

Installation

npm install vue-easy-pull-refresh

Quick start

<template>
    <VueEasyPullRefresh>
        <YourContent />
    </VueEasyPullRefresh>
</template>

<script setup>
import { VueEasyPullRefresh } from 'vue-easy-pull-refresh';
</script>

Props

| Prop | Type | Default | Description | |-----------------------|--------------------------------|-------------|-------------| | isRefreshContent | Boolean | true | Re-mount the default slot on each refresh (re-keys children). Set to false if you want the same instances to stay in place and update their own data via the queue. | | isAppearAnimation | Boolean | true | Fade-in animation of the refreshed content. Only applicable when isRefreshContent is true. | | isFreezeContent | Boolean | false | Defer the content swap animation until the loader is fully hidden (until settled). Only applicable when isRefreshContent is true. | | isDisabled | Boolean | false | Turn the gesture off entirely — no pull, no loader, no refresh. | | pullDownThreshold | Number | 64 | Distance (px) the user has to pull before a refresh fires. | | initialQueue | () => Promise<unknown> | undefined | Async callback that runs on every refresh. Useful when you only have a single task and don't want to wire useEasyPullRefresh inside a child. |

Events

| Event | Payload | Description | |-----------|---------|-------------| | reached | — | Emitted when the pull-down gesture reaches pullDownThreshold and the refresh starts. | | settled | — | Emitted when the refresh animation finishes and the component returns to its idle state. |

Slots

| Slot | Description | |-----------|-------------| | default | Main content wrapped by the pull-to-refresh gesture. | | loader | Custom loader shown while the refresh is in progress. Falls back to a built-in spinner if omitted. |

Example: refresh an API call

Pass an async callback via initial-queue — it runs on every pull-down refresh, and the loader stays visible until the promise resolves.

<template>
    <VueEasyPullRefresh :initial-queue="load">
        <FeedList />
    </VueEasyPullRefresh>
</template>

<script setup>
import { VueEasyPullRefresh } from 'vue-easy-pull-refresh';

function load() {
    return fetch('/api/feed').then(r => r.json());
}
</script>

For multiple tasks across children, custom loaders, and more — see the full docs.

License

MIT — see LICENSE.