Dh

Dhi – 520x faster data validation for Python, 77x faster for TypeScript

Hacker News

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 card

Actual performance

5points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Missing: mac, agents, macos
66%66% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
59%59% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
AppSumoStrong fit for a featured deal · Missing: plus, platform, intuitive
50%50% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
46%46% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
35%35% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
22%22% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
13%13% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

En
Encrypt Data Between Python and TypeScript (AES-GCM and RSA-OAEP)31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Encrypt Data Between Python and TypeScript (AES-GCM and RSA-OAEP)

Hacker News1
A
A Python Libary That Simplifies Data Validation50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Python Libary That Simplifies Data Validation

Hacker News8
Fo
FormData validation for TypeScript (Zod's most requested feature)26%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

FormData validation for TypeScript (Zod's most requested feature)

Hacker News1
Li
Lisp implementation in modern Java, Go, C#, TypeScript, Python56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Lisp implementation in modern Java, Go, C#, TypeScript, Python

Hacker News128
Va
Valito-Progressive validation for Python based on typehints & dataclass34%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Valito-Progressive validation for Python based on typehints & dataclass

Hacker News2
Ko
Koerce - Python Pattern Matching and Validation, faster than Pydantic47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Koerce - Python Pattern Matching and Validation, faster than Pydantic

Hacker News2
Py
Pydantic – Data validation using Python 3.6 type hinting36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pydantic – Data validation using Python 3.6 type hinting

Hacker News120
Co
Compile Python libraries for TypeScript with type completion (umo)61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Compile Python libraries for TypeScript with type completion (umo)

Hacker News1
Va
Validr – The fastest data validation library in python60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Validr – The fastest data validation library in python

Hacker News3
We
WebRTC-Echoes: Interop for C#, C++, Python, TypeScript, Go and Servers65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

WebRTC-Echoes: Interop for C#, C++, Python, TypeScript, Go and Servers

Hacker News5