DEV Community

Cover image for [Typia] I made realtime demo site of 20,000x faster validation (+200x faster JSON stringify)

[Typia] I made realtime demo site of 20,000x faster validation (+200x faster JSON stringify)

Jeongho Nam on June 25, 2023

Preface https://typia.io/playground I've made a playground website to help you understand how typia works with AoT compilation. In her...
Collapse
 
devgancode profile image
Ganesh Patil •

Interesting Stuff. ✨

Collapse
 
g33knoob profile image
G33kNoob •

Noted, seem interesting
Anyway can i use typia for js based project? Like joi validator,very interesting if you can make the tutorial too

Collapse
 
samchon profile image
Jeongho Nam •

Only possible in TypeScript with strictNullChecks option.

Collapse
 
mindplay profile image
Rasmus Schultz •

How does this compare to something like deepkit.io ?

Collapse
 
samchon profile image
Jeongho Nam • • Edited

This is my answer. It does not perform enough test, therefore stability is not ensured

github.com/samchon/test-deepkit-ty...

Collapse
 
guridocodigo profile image
Guri do Código • • Edited

Image description

I really liked the library.
however, as I found it not very intuitive and apparently there are many methods that seem to do very similar things, I had a hard time understanding the use of each one.

So I decided to document the differences and create tests for Typia, at least the ones I think are most necessary for me.

The tests that I will do will follow the table sent.

Collapse
 
michael_bhavel profile image
Michael Bhavel • • Edited

Thanks for sharing, very interesting and helpful for me.
Can Typia be used for a JavaScript project? I'm particularly curious if it can be used as a Joi authenticator.

Collapse
 
samchon profile image
Jeongho Nam •

Only possible in TypeScript. If you want to utilize it JS, only possible when importing an external module built by TypeScript.

Collapse
 
idodidodi profile image
Ido Ayal •

Sounds amazing. Can you give an example how this is used inside a project or a real life example?

Collapse
 
samchon profile image
Jeongho Nam •

nestia.io/docs/core/TypedBody

In real life, typia often be used by NestJS with nestia

Collapse
 
elanza48 profile image
Elanza-48 •

Currently using zod. Will tryout this lib. Tnx!