# @regle/core

> Headless form validation library for Vue

Latest version **1.29.2** (published 2026-09-21) · MIT license · 47.0K weekly downloads

## Install

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

## Health

**Score 85/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

## Facts

| | |
|---|---|
| Version | 1.29.2 |
| Published | 2026-09-21 |
| First published | 2023-10-06 |
| Weekly downloads | 47.0K |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 394 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 504 |
| Author | Victor Garcia |
| Maintainers | desnoth |
| Keywords | regle, regle vue, regle vue form, regle vue forms, reglejs, vue forms, vue forms typescript, vue model validation, vue typescript forms, vue validation library, vue zod |

## Links

- npm: https://www.npmjs.com/package/@regle/core
- Repository: https://github.com/victorgarciaesgi/regle
- Homepage: https://reglejs.dev/
- npm.io page: https://npm.io/package/@regle/core

## Dependencies (3)

- [type-fest](https://npm.io/package/type-fest.md) 5.8.0
- [@vue/devtools-api](https://npm.io/package/@vue/devtools-api.md) 8.2.1
- [@standard-schema/spec](https://npm.io/package/@standard-schema/spec.md) 1.1.0

## Alternatives

- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads
- [@oridune/validator](https://npm.io/package/@oridune/validator.md) — 16 weekly downloads
- [sanity-zodify](https://npm.io/package/sanity-zodify.md) — 4 weekly downloads

## Recent versions

- 1.29.2 (latest) — 2026-09-21
- 1.28.0-beta.1 (beta) — 2026-06-18
- 1.20.0-preview.5 (preview) — 2026-03-04
- 1.29.1 — 2026-08-13
- 1.29.0 — 2026-08-10
- 1.28.5 — 2026-07-27
- 1.28.4 — 2026-07-20
- 1.28.3 — 2026-07-02
- 1.28.2 — 2026-06-29
- 1.28.1 — 2026-06-22
- 1.28.0 — 2026-06-18
- 1.27.2 — 2026-06-11
- 1.27.1 — 2026-06-11
- 1.27.0 — 2026-06-11
- 1.27.0-beta.2 — 2026-06-08
- … 306 more at https://npm.io/package/@regle/core/versions

## README

<p align="center">
  <img src="https://raw.githubusercontent.com/victorgarciaesgi/regle/master/.github/images/regle-github-banner.png" alt="regle cover">
</p>

<a href="https://www.buymeacoffee.com/victorgarco" target="_blank"><img height="40" width="150" src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 40px !important;width: 150px !important;" ></a>

# Regle

Regle \ʁɛɡl\ (French word for 'rule') is a Typescript-first model-based validation library for Vue 3.
It's heavily inspired by Vuelidate.

## 📚 Documentation

[![Documentation](https://raw.githubusercontent.com/victorgarciaesgi/regle/refs/heads/main/.github/images/redirectDoc.svg)](https://reglejs.dev/)

## 🎮 Play with it

| Playground                                                                                                                                                                                           | Simple demo                                                                                                                                                                                                                                                             | Advanced Demo                                                                                                                                                                                                                                                                 |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a target='_blank' href="https://play.reglejs.dev"><img width="180" src="https://raw.githubusercontent.com/victorgarciaesgi/regle/refs/heads/main/.github/images/regle-playground-button.svg" /></a> | [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/~/github.com/victorgarciaesgi/regle-examples/tree/main/examples/simple-example?file=examples/simple-example/src/App.vue&configPath=examples/simple-example) | [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/~/github.com/victorgarciaesgi/regle-examples/tree/main/examples/advanced-example?file=examples/advanced-example/src/App.vue&configPath=examples/advanced-example) |

## ✨ Features

- 🔌 **Headless**: Plug any UI or markup to the validation.
- 🎯 **Type safe**: Full inference and autocompletion support.
- 🌳 **Model based**: Your validation tree structure matches the data model.
- 🎨 **Style Agnostic**: Works with any CSS framework or plain CSS.
- 📦 **Modular design**: Expand Regle properties or default validation rules.
- 🔄 **Async validation**: Handle asynchronous validations and pending states with ease.
- 🌐 **i18n Ready**: Works with any i18n library.
- 📕 **Vuelidate like API**: Regle's API mimics Vuelidate's API while improving it on a lot of areas.
- ⚡️ **SSR Ready**: Full support for Server Side Rendering environments.
- ✅ **Alternative validation**: [Standard Schema](https://standardschema.dev/) spec validation support.
  - 🦸‍♂️ [Zod](https://zod.dev/)
  - 🤖 [Valibot](https://valibot.dev/)
  - 🚢 [ArkType](https://arktype.io)

---
_Source: https://npm.io/package/@regle/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
