Skip to content

CtrovalidateThe Modular Validation Suite

Isomorphic core logic. Platform-native controllers. Framework-headless hooks. Zero-dependency architecture with 100% logic coverage in v4.

Ctrovalidate Logo

Declarative Integration. Technical Precision

Define validation rules and custom messages directly in your markup. The browser adapter orchestrates the DOM state while the core engine executes the logic.

html
<form id="auth-form" novalidate>
  <div class="field-group">
    <input 
      type="password" 
      name="user_password"
      data-ctrovalidate-rules="required|minLength:8"
      data-ctrovalidate-message="Password required"
      data-ctrovalidate-minLength-message="Must be at least 8 characters"
    />
    <div class="error-container"></div>
  </div>
</form>
javascript
import { Ctrovalidate } from '@ctrovalidate/browser';

// Initialize the controller
// Initialize transparently
const validator = new Ctrovalidate(
  document.getElementById('auth-form'), 
  { realTime: true }
);

// Programmatic trigger (Recommended)
const isValid = await validator.validate();

v3.0.2 Technical Specifications

22
Atomic Rules
Universal logic primitives
JSON
Schema Support
Object-based configuration
< 5KB
Minified Size
Zero runtime dependencies
100%
Logic Coverage
Strict logic verification

Ecosystem Support

The ecosystem provides specialized adapters for every modern development workflow.

PackagePurposeDocumentation
@ctrovalidate/coreUniversal validation engine (Isomorphic)API Ref
@ctrovalidate/browserDOM-based controller (Post-v3 evolution)API Ref
@ctrovalidate/reactHeadless Hooks for React 18+Reference
@ctrovalidate/vueComposition API for Vue 3Reference
@ctrovalidate/svelteReactive Stores for SvelteReference
@ctrovalidate/nextServer Action & FormData utilitiesReference

Next Steps

Restoring the standard of documentation you expect. Technical, reliable, and precise.

bash
npm install @ctrovalidate/browser

Implementation Guides · API Reference · Migration Blueprint

Released under the MIT License.