type-safe-form-validation
CommunityType-safe forms with runtime validation
Authorvishalsachdev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
A comprehensive pattern for building type-safe forms and API validation using Zod, with automatic error formatting, runtime type checks, and TypeScript integration for end-to-end form validation.
Core Features & Use Cases
- Single Source of Truth: One schema for all validation needs.
- Type Inference: TS types inferred from Zod schemas.
- Runtime Validation: Validate on client and server.
- User-Friendly Errors: Formatted error messages for UIs.
- Composable Schemas: Build complex validations from simpler parts.
- API Integration: Validate both requests and responses.
Quick Start
Define your Zod schemas in lib/validation.ts, generate TS types, and use a helper to format errors for display in the UI.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: type-safe-form-validation Download link: https://github.com/vishalsachdev/claude-skills/archive/main.zip#type-safe-form-validation Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.