vue-hooks-plus

Vue hooks library
56,017 2,030
Install
npm install vue-hooks-plus
Latest Version:2.4.3
Vue:3
License:MIT
Last Updated:Jun 11, 2026
Links: GitHub  ·  npm
Maintainer: yongjie

VueHooks Plus

English | 简体中文

High performance & Simplicity Vue3 Hooks library

✨ Features

  • 🏄🏼‍♂️ Easy to learn and use
  • 🔋 Supports SSR
  • 🛸 Contains a comprehensive collection of basic Hooks
  • 🏟️ A wide range of application scenarios
  • 🦾 Preferred useRequest, Powerful request middle tier
  • 🎪 Interactive demo, immersive
  • 🎯 Written in TypeScript with predictable static types
  • 🪄 Support the on-demand load, and reduce the packing volume
  • 🤺 Playground, there's ample scope for one's abilities
  • 🔐 Perfect test, safe and reliable

📦 Install

npm i vue-hooks-plus

CDN

<script src="https://cdn.jsdelivr.net/npm/vue-hooks-plus/dist/js/index.iife.js"></script>

It will be exposed to global as VueHooks_Plus

🤹‍♀️ Usage

import { useRequest } from 'vue-hooks-plus'

Introduced on demand

import useRequest from 'vue-hooks-plus/es/useRequest'

Auto Import

import AutoImport from 'unplugin-auto-import/vite'
import { VueHooksPlusResolver } from '@vue-hooks-plus/resolvers'

export const AutoImportDeps = () =>
  AutoImport({
    imports: ['vue', 'vue-router'],
    include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/, /\.md$/],
    dts: 'src/auto-imports.d.ts',
    resolvers: [VueHooksPlusResolver()],
  })

const { VueHooksPlusResolver } = require('@vue-hooks-plus/resolvers')
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-auto-import/webpack')({
      imports: ['vue', 'vue-router'],
      include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/, /\.md$/],
      dts: 'src/auto-imports.d.ts',
      resolvers: [VueHooksPlusResolver()],
    }),
  ],
}

For other supported tools, please see unplugin-auto-import

Globalization Documentations

Example

🤩 Awesome

Template

🪴 Project Activity

Alt

Contributing

Welcome to join us! You can check out the Contributing Guide to learn how to get started.

Contributors

Thanks for all their contributions 🐝 !

🌸 Thanks

This project is heavily inspired by the following awesome projects.

📄 License

MIT License © 2022-PRESENT YongGit

Related Packages

vueposu

A hooks library based on Vue Composition-API

1,363 15
pinia

Intuitive, type safe and flexible Store for Vue

183,604,877 14,755
rolldown-plugin-dts

A Rolldown plugin to generate and bundle dts files.

113,099,869 248
@vue/eslint-config-typescript

ESLint config for TypeScript + Vue.js projects

76,955,056 192
embla-carousel-vue

A lightweight carousel library with fluid motion and great swipe precision

21,814,304 8,459

Version History

Version Released License
2.4.3 MIT
2.4.2 MIT
2.4.1 MIT
2.4.0 MIT
2.3.1 MIT
Pre-releases (31)
Version Released License
2.4.0-beta.2 MIT
2.4.0-beta.1 MIT
2.4.0-alpha.5 MIT
2.4.0-alpha.4 MIT
2.4.0-alpha.3 MIT