
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@kolirt/vue-validation-kit
Advanced tools
A lightweight, Laravel-inspired validation package for Vue 3
A lightweight, Laravel-inspired validation package for Vue 3. Effortlessly validate complex, nested data structures with minimal code.
Table of Contents
vue-validation-kit is a convenient and powerful package for data validation in Vue.js applications. It provides a simple and intuitive solution for form validation, inspired by the validation system of the Laravel framework, making it particularly user-friendly for developers familiar with this technology. The package allows seamless integration of validation into projects while keeping the code clean and structured.
One of the standout features of vue-validation-kit is its ability to validate deeply nested data structures without the need to write cumbersome code. The package makes it easy to handle complex objects and arrays, automatically applying validation rules to all levels of nesting. This is ideal for working with forms that contain multi-level data, such as objects with arrays or nested JSON structures.
With vue-validation-kit, you can focus on your application’s logic rather than tedious validation checks, while benefiting from a reliable and scalable tool for form handling in Vue.js.
Use yarn or npm to install the package @kolirt/vue-validation-kit.
npm install --save @kolirt/vue-validation-kit
yarn add @kolirt/vue-validation-kit
Add dependencies to your main.ts:
import { createApp } from 'vue'
import { createValidation } from '@kolirt/vue-validation-kit'
import { en } from '@kolirt/vue-validation-kit/localization'
const app = createApp({ ... })
app.use(createValidation({
locale: 'en',
messages: { en }
}))
app.mount('#app')
<script setup lang="ts">
import { useForm, ValidationField, ValidationForm } from '@kolirt/vue-validation-kit'
import { required, min } from '@kolirt/vue-validation-kit/rules'
type Payload = {
email: string
}
const form = useForm<Payload>(
{
name: null,
},
{
name: [required(), min(3)]
}
)
function send() {
form.validate()
.then(() => {
console.log('Success validation')
})
.catch(() => {
console.log('Error validation')
})
}
</script>
<template>
<ValidationForm @submit="send" :form="form">
<ValidationField name="name" v-slot="{ fieldName, firstError }">
<label :for="fieldName">{{ fieldName }}</label>
<input :id="fieldName" :name="fieldName" type="text" v-model="form.payload.name"/>
<div v-if="firstError">{{ firstError }}</div>
</ValidationField>
</ValidationForm>
</template>
<script setup lang="ts">
import { useForm, ValidationField, ValidationForm } from '@kolirt/vue-validation-kit'
import { required, min } from '@kolirt/vue-validation-kit/rules'
type Payload = {
city: {
name: string
lat: number
lon: number
}
}
const form = useForm<Payload>(
{
city: {
name: null,
population: null,
}
},
{
'city.name': [required(), min(3)],
'city.population': [required()]
}
)
function send() {
form.validate()
.then(() => {
console.log('Success validation')
})
.catch(() => {
console.log('Error validation')
})
}
</script>
<template>
<ValidationForm @submit="send" :form="form">
<ValidationField name="city.name" v-slot="{ fieldName, firstError }">
<label :for="fieldName">{{ fieldName }}</label>
<input :id="fieldName" :name="fieldName" type="text" v-model="form.payload.city.name"/>
<div v-if="firstError">{{ firstError }}</div>
</ValidationField>
<ValidationField name="city.population" v-slot="{ fieldName, firstError }">
<label :for="fieldName">{{ fieldName }}</label>
<input :id="fieldName" :name="fieldName" type="text" v-model="form.payload.city.population"/>
<div v-if="firstError">{{ firstError }}</div>
</ValidationField>
</ValidationForm>
</template>
Check closed issues with FAQ label to get answers for most asked
questions.
Check out my other projects on my GitHub profile.
FAQs
A lightweight, Laravel-inspired validation package for Vue 3
We found that @kolirt/vue-validation-kit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.