HN.zip

Show HN: ArkType 3.0 – Set-theoretic precompiled TS validator

ibrary author here!since our last major release, agentic dev has drastically shifted the trade offs between a purely dynamic library import and an extra build step that can optimize bundle size and startup time.arktype 3.0's headline feature is `@ark/aot`, which allows users to opt into a precompilation process that fully leverages the capabilities of our set-theoretic type system to output JS that is 15x faster to validate, 21x smaller and 63x quicker to start than Zod 4.in our internal tests, agents have generally been successful in one shotting a migration, so testing it out on a branch is cheap!would love to hear your thoughts and answer any questions.thanks, David

32 points by - 7 comments

7 Comments

[3 hidden]5 mins ago
I've mostly stayed away from ArkType because of the compile times. But I wonder if that still makes sense with the Go rewrite.
[3 hidden]5 mins ago
ArkType is one of my favorite things in Typescript. It's elegent, reasonably terse, and fully utilizes the capabilities of Typescript to do things that is nearly impossible in other languages to do safely.
[3 hidden]5 mins ago
thanks so much :-)
[3 hidden]5 mins ago
I'm particular excited for how well this plays with Bun's new AOT. One of the biggest hurdles for me where runtime codegen for type validation.
[3 hidden]5 mins ago
totally, @ark/aot should produce much better artifacts for Bun AOT than any dynamic solution.
[3 hidden]5 mins ago
Is this related to ArkTS in any way?
[3 hidden]5 mins ago
it is not and this is actually my first time learning of it!

I was already aware of an Ark UI in the ecosystem so I guess people just really like arks ¯\_(ツ)_/¯