Installation
Prerequisites
Required
- Vue
3.4+. - Typescript
5.1+.- Compatible with plain javascript.
- Text Editor with Vue syntax support.
- VSCode is recommended, along with the official Vue extension.
Optional
- Nuxt
- Nuxt
3.2.0+, and check docs for Nuxt module
- Nuxt
- Pinia
- Pinia
2.2.5+
- Pinia
Schema libraries: Docs
- Zod
3.24+. - Valibot
1+. - ArkType
2+ - Any library using the Standard Schema Spec
sh
pnpm add @regle/core @regle/rulessh
npm install @regle/core @regle/rulessh
yarn add @regle/core @regle/rulessh
bun add @regle/core @regle/rulesDevtools
To enable devtools, you need to install the Regle plugin in your app.
TIP
If you use the @regle/nuxt module, the devtools will be automatically enabled.
ts
import { createApp } from 'vue';
import { RegleVuePlugin } from '@regle/core';
import App from './App.vue';
const app = createApp(App);
app.use(RegleVuePlugin); // <--
app.mount('#app');You can provide options to the RegleVuePlugin to customize global config. See Global configuration for more details.
MCP server
Regle offers an MCP server that can be used to get documentation and autocomplete for Regle.
You can install it using the following configurations:

