gitwtfhub

wtf is regle?

fengmk2/regle — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2026-06-17

TypeScriptAudience · developerComplexity · 2/5MaintainedSetup · easy

TL;DR

A headless, type-safe form validation library for Vue 3 that lets you define validation rules once and plug them into any custom-styled form, with full autocompletion and async validation support.

Mindmap

mindmap
  root((repo))
    What it does
      Validates form input
      Headless no UI
      Type-safe rules
    Tech stack
      Vue 3
      TypeScript
      Zod
    Use cases
      Email password checks
      Async username check
      Multi-step forms
    Audience
      Vue developers
      Nuxt developers
    Extras
      Devtools support
      SSR compatible

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Validate a login form's email and password fields with type-safe, autocompleted rules.

REASON 2

Check async whether a username is already taken while the user is typing.

REASON 3

Build a multi-step form with conditional validation rules per step.

REASON 4

Style your own form UI freely while Regle handles all validation logic and error state.

What's in the stack?

TypeScriptVue 3NuxtZod

How it stacks up

fengmk2/regle0xradioac7iv/tempfs7vignesh/pgpulse
Stars00
LanguageTypeScriptTypeScriptTypeScript
Last pushed2026-06-17
MaintenanceMaintained
Setup difficultyeasymoderatemoderate
Complexity2/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 30min

Wtf does this do

Regle is a form validation library for Vue 3 that makes it easy to check whether user input is correct, like ensuring an email field actually contains an email, or a password meets minimum length requirements. Instead of building validation logic scattered throughout your components, Regle lets you define all your rules in one place and then use them everywhere. The way it works is "headless," which means it doesn't come with pre-built form components or styling. Instead, it gives you the validation logic and error messages, and you decide how to display them. You write your form HTML however you want, using any CSS framework, design system, or custom styles, and plug Regle's validation into it. This flexibility means you're never locked into a particular look or feel. You define your data model (like an email field or password field), attach validation rules to each field, and Regle handles checking whether the input is valid, tracking error messages, and managing the state of whether the form has been touched or submitted. Regle is particularly useful for developers building Vue 3 applications who want type-safe validation with full autocompletion in their code editor. It's inspired by an older library called Vuelidate but modernized for today's Vue ecosystem. It also supports async validation (useful for things like checking if a username is already taken on a server), works with Nuxt for full-stack apps, and integrates with popular validation libraries like Zod if you prefer writing your validation rules in a different style. The library includes handy debugging tools built into Vue's developer extension, so you can inspect validation state while building. It also works on both client and server-side rendering setups. Whether you're building a simple contact form or a complex multi-step form with conditional validation, Regle handles the validation plumbing so you can focus on the user experience.

Yoink these prompts

Prompt 1
Set up Regle in my Vue 3 project to validate an email field and a password field with a minimum length rule.
Prompt 2
Show me how to write an async Regle validation rule that checks if a username is already taken on the server.
Prompt 3
Help me integrate Regle with Zod so I can define my form's validation schema using Zod instead of Regle's own syntax.
Prompt 4
Walk me through building a multi-step form in Vue 3 with Regle, including conditional validation between steps.
Prompt 5
Explain how to inspect Regle's validation state using the Vue devtools extension while debugging a form.

Frequently asked questions

wtf is regle?

A headless, type-safe form validation library for Vue 3 that lets you define validation rules once and plug them into any custom-styled form, with full autocompletion and async validation support.

What language is regle written in?

Mainly TypeScript. The stack also includes TypeScript, Vue 3, Nuxt.

Is regle actively maintained?

Maintained — commit in last 6 months (last push 2026-06-17).

How hard is regle to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is regle for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.