schema-dsl

Progressive TypeScript schema DSL

Concise field rules · Progressive s API · Validation · Schema reuse · Export · i18n

schema-dsl logoschema-dsl logo

Progressive schema authoring

Define concise field rules with DSL strings, s('...') seed builders, or discoverable s.xxx() factories.

Validation runtime

Validate synchronously, asynchronously, or in batches with AJV-backed fallback and cache-aware runtime behavior.

Multi-format export

The same schema can be exported to MongoDB, MySQL, PostgreSQL and Markdown documents.

Internationalization

Built-in multi-language error messages and dynamic locale switching, suitable for sharing validation rules between the server and front-end.

Extensions and plugins

Add custom DSL types, formats, validators and packaged plugins across pure, seed-builder and namespace-factory entries.

TypeScript friendly

Provides TypeScript declarations and discoverable namespace factories for modern Node.js and TypeScript projects.