FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Valibot Has a Free API You're Not Using
NewsWeb Development

Valibot Has a Free API You're Not Using

via Dev.to WebdevAlex Spinov4h ago

Valibot is a schema validation library that's 98% smaller than Zod. At just 0.5KB minified, it's the lightest validation library with full TypeScript inference. Why Valibot over Zod? Zod: 13.5KB minified (monolithic) Valibot: 0.5-5KB (tree-shakeable — you only ship what you use) The Free APIs You're Missing 1. Modular Design — Import Only What You Need import { object , string , number , email , minLength , parse } from " valibot " ; const UserSchema = object ({ name : string ([ minLength ( 2 )]), email : string ([ email ()]), age : number (), }); const user = parse ( UserSchema , data ); // Only the functions you import end up in your bundle 2. pipe() — Composable Validation Pipelines import { pipe , string , transform , regex , toLowerCase , trim } from " valibot " ; const Slug = pipe ( string (), trim (), toLowerCase (), regex ( /^ [ a-z0-9- ] +$/ ), ); const Price = pipe ( string (), transform (( s ) => parseFloat ( s )), number (), minValue ( 0 ), ); 3. variant() — Discriminated U

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles

telecheck and tyms past
News

telecheck and tyms past

Lobsters • 4h ago

What Organizations Know About Themselves
News

What Organizations Know About Themselves

Medium Programming • 4h ago

News

Making HNSW actually work with WHERE clauses

Lobsters • 5h ago

Stop Using Claude Code Like a Chat Window
News

Stop Using Claude Code Like a Chat Window

Medium Programming • 6h ago

The Pixel 10a doesn’t have a camera bump, and it’s great
News

The Pixel 10a doesn’t have a camera bump, and it’s great

TechCrunch • 7h ago

Discover More Articles