Skip to content

Welcome to ZyraForm

Build type-safe forms with schema validation, offline-first sync, and React Hook Form-like APIs

ZyraForm is a comprehensive Swift package that combines the best of modern form development:

  • πŸ”„ PowerSync Integration: Offline-first database synchronization
  • βœ… Zod-like Validation: Type-safe schema validation with intuitive APIs
  • πŸ“ React Hook Form Patterns: Familiar form state management and error handling
  • πŸ—„οΈ Drizzle ORM Compatibility: Generate migrations and schema definitions
  • 🎯 Type Safety: End-to-end type inference from schema to component
  • ⚑ Zero Runtime Overhead: Identical performance to manual implementations

🎯 Schema-Driven

Define your schema once, generate forms, validation, and database migrations automatically.

πŸ›‘οΈ Type-Safe

Compile-time type checking ensures your forms match your schema exactly.

πŸ“‘ Offline-First

Built on PowerSync for seamless offline functionality with automatic sync.

βœ… Validation Rules

Comprehensive validation library with email, URL, regex, custom validators, and more.

🎭 Conditional Fields

Show/hide fields based on other field values, just like React Hook Form’s watch API.

🍎 SwiftUI Ready

Native SwiftUI integration with reactive updates and automatic UI refreshing.

ZyraForm’s three core components work together seamlessly:

  1. ExtendedTable - Define your schema once with validation, metadata, and code generation
  2. PowerSyncForm - Create forms with automatic validation based on your schema
  3. GenericPowerSyncService - Perform CRUD operations on any table

Learn more about the architecture β†’

πŸ“‰ 90%+ Less Code: Define your schema once, generate everything automatically
⚑ Faster Development: Build forms in minutes, not hours
πŸš€ Zero Runtime Overhead: Query execution identical to manual implementations
πŸ‘‹ Familiar Syntax: React Hook Form + Zod patterns you already know
πŸ›‘οΈ Type Safe: Compile-time type safety from schema to component

Learn more about ZyraForm β†’

Ready to get started? Follow these guides:

  1. Installation - Set up ZyraForm in your project
  2. Quick Start - Build your first form in minutes
  3. Schema Definition - Learn the fluent API
  4. Form Components - Create interactive forms
  5. CRUD Operations - Manage your data

πŸš€ Ready to build better forms? Get started with ZyraForm β†’