Runable v1.0.0-alpha.20
Why Runable? Docs Modules Work with AI Blog About Changelog
  • 01Why Runable?
  • 02Docs
  • 03Modules
  • 04Work with AI
  • 05Blog
  • 06About
  • 07Changelog
Vue without a fixed server runtime.
All modules

@runablejs/vueuse

Official module

Use VueUse composables and utilities through Runable auto-imports, with zero configuration and tree-shakeable production builds.

Install with pnpm

Source code

@runablejs/vueuse exposes the composables and utilities from @vueuse/core through Runable's automatic imports. You can use VueUse from components and composables without configuring a Vue plugin or writing repetitive imports.

Installation

Install the Runable module and VueUse:

pnpm add @runablejs/vueuse @vueuse/core

Register the module in runable.config.ts:

import { defineConfig } from "runable";

export default defineConfig({
  modules: ["@runablejs/vueuse"],
});

No additional configuration is required.

Use VueUse composables

VueUse composables are available without explicit imports:

<script setup lang="ts">
const { x, y } = useMouse();
const preferredDark = usePreferredDark();
const count = useLocalStorage("count", 0);
</script>

<template>
  <p>Mouse: {{ x }}, {{ y }}</p>
  <p>Dark mode preferred: {{ preferredDark }}</p>

  <button type="button" @click="count++">
    Count: {{ count }}
  </button>
</template>

Utilities such as createSharedComposable are auto-imported too. Runable keeps the generated imports tree-shakeable, so production bundles only include the VueUse APIs your application uses.

Import conflicts

The names useFetch, toRef, and toRefs retain the behavior provided by Runable or Vue. Import the VueUse variants explicitly when you need them:

import {
  toRef as toVueUseRef,
  toRefs as toVueUseRefs,
  useFetch as useVueUseFetch,
} from "@vueuse/core";

All other explicit imports from @vueuse/core remain supported.

Optional VueUse packages

The module only registers APIs from @vueuse/core. VueUse integrations, RxJS, Firebase, Motion, and components remain separate packages. Install and import those packages explicitly when your application needs them.

Use SSR-compatible composables according to their VueUse documentation. The module exposes the APIs through auto-imports but does not change their runtime behavior.

Category
Composables
Compatibility
Runable 1.x · VueUse 14 · Vue 3.5+
Maintainer
Runable Team

Resources

DocumentationView on npmLearn more
Runable

The Vue framework that brings productive conventions to any backend.

Product

  • Why Runable
  • Documentation
  • Installation
  • Integrations

Project

  • About
  • Blog
  • Changelog
  • Sponsor

Community

  • GitHub
  • Issues
  • Discussions
  • Bluesky

© 2026 Runable. Released under the MIT License.

Open source Built with Vue and Runable