Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How this compares against Typebox? #42

Open
gunzip opened this issue Jun 13, 2024 · 1 comment
Open

How this compares against Typebox? #42

gunzip opened this issue Jun 13, 2024 · 1 comment

Comments

@gunzip
Copy link

gunzip commented Jun 13, 2024

I see there's a similar peoject here: https://github.com/sinclairzx81/typebox and wonder how the two compare.

@crobinson42
Copy link

@gunzip I've been using suretype in production since 2022 in a Koa.js server with ~90mil requests per month and have had zero issues with suretype. When i was evaluating js/ts runtime validation libs suretype performed the best (vs Zod & Yup). I use the extractJsonSchema and parse each request into JSON schema which suretype will use with AJV for runtime validation. I also publish the api docs in JSON schema at runtime which provides great DX - I don't need to remember to update or compile json schema to publish the api docs, just write the endpoint schemas in suretype and deploy 👌 .

Personal note, it's still baffling to me today why more people don't talk about or use suretype! Great lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants