Skip to content

Installation

Prerequisites

Required

Optional

Schema libraries: Docs


sh
pnpm add @regle/core @regle/rules
sh
npm install @regle/core @regle/rules
sh
yarn add @regle/core @regle/rules
sh
bun add @regle/core @regle/rules

Devtools

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.

main.ts
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:

Released under the MIT License. Logo by Johannes Lacourly