Dhi – 520x faster data validation for Python, 77x faster for TypeScript
Dhi – 520x faster data validation for Python, 77x faster for TypeScript
Hi HN! I built dhi, a data validation library that uses Zig to compile to both native C (Python) and SIMD WASM (TypeScript). Key points: - Drop-in API compatibility with Pydantic (Python) and Zod (TypeScript) - Python: 24.9M validations/sec (520x faster than Pydantic V2) - TypeScript: up to 77x faster than Zod on invalid data - 28KB WASM bundle, zero JS runtime overhead I'd love feedback on the API surface, benchmarks, and real-world integration pain points. If you're curious, the repo has full benchmarks and examples.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Encrypt Data Between Python and TypeScript (AES-GCM and RSA-OAEP)
A Python Libary That Simplifies Data Validation
FormData validation for TypeScript (Zod's most requested feature)
Lisp implementation in modern Java, Go, C#, TypeScript, Python
Valito-Progressive validation for Python based on typehints & dataclass
Koerce - Python Pattern Matching and Validation, faster than Pydantic
Pydantic – Data validation using Python 3.6 type hinting
Compile Python libraries for TypeScript with type completion (umo)
Validr – The fastest data validation library in python
WebRTC-Echoes: Interop for C#, C++, Python, TypeScript, Go and Servers