
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
validation-adapter
Advanced tools
Universal validation adapter that integrates various validation libraries like Zod, Valibot, and Yup
Status: Experimental
validation-adapter is a universal validation adapter that integrates different validators like Zod, Valibot, Yup, and more.
Create a universal validation adapter that generalizes different validation libraries like Zod, Valibot, etc. for use in libraries & applications requiring diverse validation strategies like feature-form.
import * as v from 'valibot';
import { createValidator } from 'validation-adapter';
import { vValidator } from 'validation-adapters/valibot';
import { zValidator } from 'validation-adapters/zod';
import * as z from 'zod';
const zodNameValidator = zValidator(
z
.string()
.min(2)
.max(10)
.regex(/^([^0-9]*)$/)
);
const valibotNameValidator = vValidator(
v.pipe(v.string(), v.minLength(2), v.maxLength(10), v.regex(/^([^0-9]*)$/))
);
const customValidator = createValidator([
{
key: 'custom',
validate: (cx) => {
if (cx.value !== 'CustomValue') {
cx.registerError({
code: 'custom-error',
message: 'Value must be CustomValue.'
});
}
}
}
]);
const combinedValidator = valibotNameValidator.clone().append(customValidator);
FAQs
Universal validation adapter that integrates various validation libraries like Zod, Valibot, and Yup
The npm package validation-adapter receives a total of 6,388 weekly downloads. As such, validation-adapter popularity was classified as popular.
We found that validation-adapter 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
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.