{"repo":"justrach/dhi-old","free":true,"listed":false,"github":"https://github.com/justrach/dhi-old","clone":"git clone https://github.com/justrach/dhi-old.git","description":"DHI: High-Performance, WebAssembly-Powered TypeScript Validator","language":"TypeScript","stars":14,"topics":["nextjs","nextjs15","rust","validator","wasm"],"license":"Apache-2.0","category":"saas-starters-boilerplates","readme_excerpt":"DHI 🚀 DHI — High‑Performance TypeScript Validation DHI is a blazing‑fast TypeScript validation library with two faces: - A modern, typed‑first API (recommended) - A familiar Zod‑like facade for easy migration It’s built for applications that validate large datasets efficiently while preserving compile‑time type safety and a great DX. 🚀 Performance at a glance DHI significantly outperforms other validation libraries through two complementary approaches: DHI outperforms general‑purpose validators by combining JS fast paths (iterative deep‑object validators, array‑of‑object fast path) with a fused per‑schema JS validator that collapses multiple property reads into a single monomorphic function. - Typed‑first API (recommended): fast, type‑safe, zero WASM overhead - WASM/Rust (optional): batch primitives and deep trees with cross‑language optimizations Comprehensive Benchmark Results TypeScript-First API Performance Benchmarks run on Mac Studio with Bun runtime 📖 Usage TypeScript-First API (Recommended) DHI provides compile-time type safety similar to Yup's approach: typescript // Yup approach import { object, number, string, ObjectSchema } from 'yup'; interface Person { name: string; age?: number; sex: 'male' 'female' 'other' null; } const yupSchema: ObjectSchema = object({ name: string().defined(), age: number().optional(), sex: string ().nullable().defined(), }); // DHI approach (1.43x faster) import { object, string, number, optional, nullable, type ObjectSchema } from 'dhi","default_branch":null,"files":null,"tree":[],"storefront":"/r/justrach","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/justrach/dhi-old/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}