
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
validation-composable
Advanced tools
Lightweight, practical validation for Vue. Only 40 lines of code. No special components to wrap your forms. No proprietary schema syntax to learn. Just bring your favorite schema library and go.
🔌 Works with Zod, Yup, Valibot, and any other Standard Schema library.
npm i validation-composable
import { useValidation } from 'validation-composable'
const { validate, issues } = useValidation(data, schema)
<script setup>
// Use your own data (Reactive, Ref, Pinia, etc.)
const data = reactive({
subject: '',
body: '',
})
// Use your favorite schema library
const schema = z.object({
subject: z.string().min(1, 'Subject is required'),
body: z.string().min(1, 'Body is required'),
})
// Pass the data and schema to the composable
const { validate, issues } = useValidation(data, schema)
// Validate before submission. It auto-validates on data changes.
async function send() {
const valid = await validate()
if (!valid) return
…
}
</script>
<template>
<form @submit="send">
<input v-model="data.subject" :class="{ 'border-red': issues.subject }" />
<span v-if="issues.subject">{{ issues.subject[0] }}</span>
<textarea v-model="data.body" :class="{ 'border-red': issues.body }" />
<span v-if="issues.body">{{ issues.body[0] }}</span>
</form>
</template>
💡 Pro Tip: Consider creating reusable input components to display validation errors automatically. This eliminates repetition and ensures consistent styling across your forms.
const { validate, issues, clearIssues } = useValidation(data, schema)
validate(): validates and fills issues; returns true when validissues: reactive object that mirrors your data; failing fields contain arrays of error messagesclearIssues(): clears all issuesFAQs
Lightweight validation for Vue — just 40 lines of code.
We found that validation-composable 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.