Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

vue-hooks-plus

> 前端框架
Open source

High performance & Simplicity Vue 3 Hooks library

2.0K stars0 likes2 views
WebsiteGitHub

About

High performance & Simplicity Vue 3 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

[!IMPORTANT] Developing, building, and running the documentation for this repository now require Node.js >= 22.18.0. The published hooks still target Vue 3 applications and do not add a Node.js runtime requirement in the browser.

bash
npm i vue-hooks-plus

CDN

xml
<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

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

Introduced on demand

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

Auto Import

Vite
typescript
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()],
  })


Webpack
typescript
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

  • English Documentations
  • 中文文档

Example

  • Vue Admin Novel
  • Nuxt 3
  • Vite + Vue 3
  • Webpack + Vue 3

Awesome

Template

  • Ray Template

Project Activity

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.

  • ahooks
  • @koale/useworker

License

MIT License © 2022-PRESENT YongGit

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScripthooks-librarytypescriptvue-hooks-libraryvue-hooks-plus

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架