convex-schema-validator

Installation
Summary

Type-safe database schema definition with indexes, validation, and migration strategies for Convex.

  • Supports 13+ validator types including strings, numbers, booleans, document references, arrays, objects, unions, and discriminated unions for flexible data modeling
  • Enables single-field and compound indexes plus full-text search indexes for optimized query performance
  • Provides optional and nullable field patterns with clear migration paths for adding required fields and backfilling data
  • Includes nested objects, arrays of objects, and record types for complex data structures with full TypeScript type inference
SKILL.md

Convex Schema Validator

Define and validate database schemas in Convex with proper typing, index configuration, optional fields, unions, and strategies for schema migrations.

Documentation Sources

Before implementing, do not assume; fetch the latest documentation:

Instructions

Basic Schema Definition

Related skills
Installs
2.2K
GitHub Stars
397
First Seen
Jan 24, 2026