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

@vuehookskit/vue-hooks-kit

v1.0.1

Published

A high-reuse, type-safe, atomic-style compatible Vue 3 Hooks collection

Readme

VueHooksKit

A high-reuse, type-safe, atomic-style compatible Vue 3 Hooks collection. Built for modern web development.

License Vue TypeScript

✨ Features

  • Vue 3 Composition API: Built from the ground up for Vue 3.
  • 📘 TypeScript Support: Written in TypeScript with full type definitions.
  • 🎨 Atomic Style Compatible: Designed to work seamlessly with UnoCSS and Tailwind CSS.
  • 🧩 Rich Collection: Covers state management, DOM, lifecycle, network, and business logic.
  • 📦 Tree Shakeable: Import only what you need.

📦 Installation

pnpm add vue-hooks-kit
# or
npm install vue-hooks-kit
# or
yarn add vue-hooks-kit

🔨 Usage

import { useToggle } from 'vue-hooks-kit'

// Basic usage
const [state, { toggle, setLeft, setRight }] = useToggle()

// With custom values
const [status, { toggle: toggleStatus }] = useToggle('active', 'inactive')

📚 Hooks List

Basic Hooks

| Hook | Description | | --- | --- | | useToggle | Boolean switcher with actions. | | useCounter | Manage a counter with min, max, and step support. | | useDebounceFn | Debounce function execution. | | useThrottleFn | Throttle function execution. | | useTimeoutFn | Execute a function after a timeout. | | useRAF | Request Animation Frame hook. | | useMounted | Shorthand for onMounted. | | useUnmount | Shorthand for onUnmounted. | | useUpdate | Force component update. | | useLocalStorage | Reactive LocalStorage. | | useSessionStorage | Reactive SessionStorage. | | useDebouncedRef | Debounced reactive reference. | | useThrottledRef | Throttled reactive reference. | | useRequest | Network request hook with loading/error states. | | useEventListener | Reactive event listener. | | useClickOutside | Detect clicks outside a target element. | | useElementSize | Reactive element size. | | useScroll | Reactive scroll position. | | useThemeMode | Manage light/dark theme modes. | | useResponsive | Responsive breakpoints helper. |

Advanced Hooks

| Hook | Description | | --- | --- | | useAsync | Manage async functions with state. | | usePromise | Resolve promises reactively. | | useMemoizedFn | Persist function reference. | | useReactiveRef | Create a reactive reference from a value. | | useLazyRef | Lazily initialize a ref. | | useErrorBoundary | Catch errors in component tree. | | useI18n | Simple internationalization hook. | | useHover | Track element hover state. | | useActive | Track element active state. | | useScrollIntoView | Scroll element into view. | | useWindowSize | Cross-platform window size. |

Business Hooks

| Hook | Description | | --- | --- | | usePermission | Manage user permissions. | | usePagination | Pagination logic management. | | useTable | Table state management (data, loading, pagination). | | useForm | Form state and validation. | | useFormItem | Form item binding. | | useModal | Modal visibility and state. | | useDrawer | Drawer visibility and state. | | useBreadcrumb | Breadcrumb navigation helper. | | useGlobalState | Simple global state management. | | useRouteGuard | Router navigation guards. |

💻 Development

Setup

# Install pnpm if not present
npm install -g pnpm

# Install dependencies
pnpm install

Scripts

  • pnpm dev: Start the development server (demo page).
  • pnpm build: Build the library for production.
  • pnpm test: Run unit tests.
  • pnpm lint: Lint and fix code style.
  • pnpm docs:dev: Start documentation server.
  • pnpm pub: Run full check and publish to npm.

📄 License

MIT © 2024-present