Tag: zod
4 articles
· llm / openai
LLM structured outputs: JSON mode, function calling, and Zod
Grammar-constrained sampling is the only reliable LLM primitive. How OpenAI, Anthropic, Zod, and Vercel AI SDK v6 compare — and where each still fails you.
· zod / arktype
Zod vs ArkType: TypeScript Schema Validation Showdown
ArkType parses 15× faster than Zod v4 and mirrors TypeScript syntax. Zod: 20M downloads, 50+ integrations. Real benchmarks, snippets, one recommendation.
· astro / mdx
How to write good Astro frontmatter (and validate it)
Add a Zod schema to src/content.config.ts. Frontmatter fields get TypeScript types and build-time validation — no extra dependencies, no runtime surprises.
· zod / valibot
Zod vs Valibot: Schema-Validation Tradeoffs in 2026
Valibot shrinks your form validator 12× over Zod — but Zod wins on ecosystem, i18n, and Astro Actions. Real bundle numbers, real code, one recommendation.