DHI Hero

DHIधि - Intellect, understanding, wisdom

High-performance TypeScript validation library powered by WebAssembly

Unmatched Performance

Execution Time
1,000,000 validations
DHI2661.79ms
Zod5832.30ms
Validations per Second
Higher is better
DHI375,687
Zod175,360

Features

WebAssembly-Powered
Ultra-fast performance using WebAssembly technology
TypeScript-First
Seamless integration with TypeScript for strong typing
Familiar API
Similar to Zod, making it easy to adopt

Simple to Use

import { dhi } from 'dhi';

const UserSchema = await dhi.object({
  name: dhi.string(),
  age: dhi.number(),
  email: dhi.string(),
  tags: dhi.array(dhi.string())
});

Try It Yourself!

Compare DHI and Zod performance in real-time with your own data

DHI Schema

Zod Schema

Running validation on 1,000,000 iterations
DHI Results

Time: 0.00ms

Ops/sec: 0

Valid: Not run

Zod Results

Time: 0.00ms

Ops/sec: 0

Valid: Not run