VueUse ships tree-shakeable composable helpers for Vue 3 apps, with TypeScript types, SSR support, and optional add-ons for routers, Firebase, and RxJS.
Overview
VueUse bundles reusable composition API utilities aimed at everyday front-end tasks in Vue 3 projects. Functions can be imported individually so bundles only include what a project references.
The package is written in TypeScript with typed docs, and the maintainers describe it as compatible with server-side rendering. It can be installed through npm-style workflows or loaded from a CDN without a bundler, exposing a global on the window object.
Configuration hooks allow custom event filters and targets where relevant. Optional add-on packs extend the core set with integrations such as Vue Router, Firebase, and RxJS. Interactive documentation pages include live demos for many functions.
Recent major releases tightened the minimum Vue version; older lines remain available for teams still on Vue 2. A Nuxt module is mentioned for Nuxt-based apps.
Key features
- 200+ composable helper functions
- Tree-shakeable ES module imports
- TypeScript definitions and docs
- SSR-compatible implementations
- CDN bundle without a bundler
- Configurable filters and targets
- Router, Firebase, and RxJS add-ons
- Interactive documentation demos
Use cases
- Shared utilities across Vue 3 SPAs
- Composable state and DOM helpers
- Nuxt apps via the official module
- Prototype scripts loaded from a CDN
- SSR or SSG sites needing browser hooks