TypeScript's 1:1 validator, optimized from editor to runtime ⛵ ⭐github.com/arktypeio/arktype 👋arktype.io/discord

📢Introducing ArkRegex📢 a drop in replacement for new RegExp() with types ⬇️
102
393
3,128
732,427
zod4 is 5x faster than zod3 for object validation. arktype is 20x faster than zod4.
29
37
1,155
98,302
zod: 819ms fast zod: 404ms arktype: 16ms conclusion: just use arktype
26
43
889
116,851
the days of untyped regex are numbered
32
33
839
104,250
Investigating a TypeScript caching issue that could have a *massive* impact for validators like ArkType, Zod and Valibot. For projects that heavily rely on schema inference like tRPC, fixing this could have a bigger impact than tsgo. Trigger Warning: O(3^N)
21
37
789
82,543
As of this post, ArkType 2.0 is available and fully stable🎉 (🔗⬇️) Bring your types to runtime like never before and validate 100x faster. All with no build step and DX that is 100% guaranteed to blow your mind🤯
24
57
732
94,757
choose your hover
19
16
592
70,757
who says TS devs can't have nice things?
26
24
558
43,959
you can just infer regex
25
31
503
51,090
1️⃣ start with a typescript keyword 2️⃣ .autocomplete the rest
9
14
436
38,259
tHaNkS fOR 7k⭐ (hope this isn't too insensitive)
4
5
428
26,122
So we've established ArkType is a lot faster than Zod. What about Yup? If somehow you are still using it in 2025, your validation could be 3000x faster🤡
23
18
405
47,350
‼️Update on TypeScript's O(3^N) scaling‼️ @AndaristRake's PR has been merged! If you are struggling with slow types and use one or more of... ✅ a schema library like Zod, Valibot or ArkType ✅ chained methods like .merge ✅ tRPC The nightly TS build may be a huge W.
8
18
389
26,118
Introducing ArkType 2.1, the first pattern matcher to bring the power of type syntax to JS. Fully type-safe and up to 100x faster than ts-pattern🧵
13
26
355
41,265
We tested TS Go with ArkType's stress tests: 📈5x faster 📉30% less memory ✅99% correct Even the craziest types in our repo were perfect on day one🤯
4
6
353
32,811
new to typescript? here's a handy little type for parsing regular expressions:
21
12
324
20,642
1️⃣ridiculously good DX 2️⃣better tsserver performance 3️⃣insanely fast runtime validation 4️⃣well-documented and easy to learn 5️⃣power features like generics and HKTs 6️⃣deep introspection + transformation 7️⃣serializable definitions 8️⃣human-readable errors by default Choose 8.
12
10
278
31,170
Announcing @ark/json-schema, a robust JSON Schema parser for ArkType🔒 If JSON Schema is your source of truth and you want validators that are... 1⃣ crazy fast 2⃣ introspectable 3⃣ great at summarizing errors today is your lucky day!
6
15
273
11,632
Need JSON Schema for your validator? Just call toJsonSchema- it's built-in to every type👍
15
7
268
18,251
Ever wished you could just use your TypeScript types at runtime? With ArkType, you finally can. All the power of the type system, fully introspectable from native JS- the possibilities are endless🔥
Wow, @arktypeio is gorgeous. Love the simplicity
4
13
246
31,447
ArkType 2.2 will automatically validate and infer your regular expressions. All from TypeScript types🤯
6
15
245
16,432
As of this morning, TS Go can check our repo with zero errors— in 2.5 seconds🤯 That includes... ⚡500 cyclic types in the background of this image ⚡dozens of other inference stress tests ⚡1k+ unit tests w/ complex type assertions
5
7
240
14,137
DO YOU GUYS HAVE ANY IDEA HOW FAST OUR TYPES ARE ABOUT TO GET!?🤯
Today we're thrilled to announce our effort to port the TypeScript compiler and language service to native code, gaining a 10x speed boost in build times and editor responsiveness! devblogs.microsoft.com/types…
6
5
231
12,439
I'll take "meticulously typed regex features you probably didn't know existed" for $500
4
6
224
11,401
Merging 10 object schemas in ArkType: TS 5.8 - 1.6M instantiations TS 5.9 - 18K instantiations
3
4
221
10,239
As TypeScript developers, we rely on our types to know our code will work. But as our types become complex, how do we know they work? Unfortunately, existing type testing tools are limited by static analysis- until now. Introducing @arktype/attest🎉 github.com/arktypeio/arktype…
8
23
206
39,170
🌶️hover clarity is a huge part of typescript dx
7
4
206
15,498
📈ArkType just surpassed 1M downloads/month📈 If you still haven't tried it, your friends are now laughing behind your back (statistically speaking).
7
6
199
16,113
Oh, did you guys think we were JOKING when we said we inferred TypeScript syntax 1:1? We were NOT joking.
6
9
177
12,623
arkregex is a standalone, type-only package that adds types to RegExp. if you prefer... 🔎 clarity over opacity 🔒 safety over crashing using it should be the easiest win of your life. announcement: arktype.io/docs/blog/arkrege…
4
3
182
26,186
2.2 is gonna be an absolute banger. Coming next week...🤫🔒
9
6
180
15,141
All of ArkType boils down to a single question- how close can we get to TypeScript at runtime?🔬
10
9
180
16,038
Replying to @slmn_sh
unironically same strategy used to run DOOM (but highly optimized)
4
180
9,827
Autocomplete just landed in tsgo🙌
2
2
174
8,057
Like type-safe environment variables? Now there's a better way to get them with arkenv⛵❤️
3
5
169
8,634
pov: your typescript runtime schemas are smarter than python's static type system
Our type checker can solve Diophantine equations via the Python type system (this isn't a joke, it actually works)
3
7
162
10,930
It's ready.
5
11
163
19,311
ArkType is the only validator that can understand how your types relate to one another and optimize them automatically. That means it can... ✍️describe itself succinctly 🤖skip redundant logic ⚡implicitly discriminate all unions 🔒fail-fast on bad types
2
10
159
6,098
Replying to @PhongGT
we thought about it and concluded that if you haven't already installed arkregex your project is garbage
1
151
8,574
Want to know our secret for writing fast types? Just build a benchmarking library and spend two years optimizing them.
2
3
147
10,363
⚠️TRADE OFFER ⚠️ you define: clean, type-safe schemas you get: clean, human-readable error messages
7
6
151
7,573
"any sufficiently advanced typescript types are indistinguishable from magic" - Arthur C. Clark, 1962
3
8
145
7,469
ArkType is fast. Really fast. But in 2025, our value as developers depends on going deeper than ever before. What matters most is having tools you love to work with so when the time comes, you're ready to lock the f in. With the ArkType Playground, that DX is one click away.
7
7
144
6,046
1️⃣s-tier DX 2️⃣ridiculous tsserver perf 3️⃣insanely fast runtime validation 4️⃣great documentation 5️⃣power features (generics and HKTs) 6️⃣deep introspectability 7️⃣serializable definitions 8️⃣human-readable errors 9️⃣universal composability 🔟easy to learn Choose 10.
5
6
145
8,466
arkregex is ridiculously optimized. even expressions like this are inferred instantly. but what about the most extreme cases?🧵
3
2
144
8,538
want 100x faster validation but still not sold on type-safe strings? just don't use them.
5
2
137
22,035
Why does ArkType use "strings" over .chaining()? ✅Inferred 1:1 so you hover less ✅Easily serialized ✅Concise (~30-50% shorter than Zod) ✅Typos === type errors
5
10
140
7,967
ArkType schemas👉👈JSON-serializable TypeScript
8
10
133
9,230
huge shoutout to @convex for their generous support of arktype🙇 also rumor has it their types are about to get even faster...
5
4
131
10,505
⚠️trade offer⚠️ i receive: JSON Schema you receive: lightning-fast validation and clear errors
6
4
127
5,936
problem: switch statements are garbage solution: pnpm i arktype
9
4
129
9,440
In 2019, five syllables changed how we think about TypeScript schemas: Parse, don't validate. In 2025, we're proud to introduce a new era for runtime validation: Vibe, don't parse. Available today in arktype@2.1.42069🚀
6
6
127
5,560
attest is the only assertion library that can snapshot TypeScript autocomplete results📷
5
12
124
8,732
when @ahejlsberg puts your types on blast😳
8
5
115
19,685
typemaxxing has been achieved internally
6
2
113
6,154
Type-safe functions in pure JS- no JSDoc required. Want runtime checks? Just enable them. Should we ship this in 2.2?🤔
10
4
117
11,322
new RegExp(): ❌types 😴tired arkregex: ✅types 🫨wired
2
10
117
2,654
If you like reading simple TypeScript types more than complex regex, keep an eye out for our next release👀
4
2
115
6,778
Why do we reduce every ArkType schema to its simplest form? ⚡optimally discriminated unions 🔒fail-fast on unsatisfiable types ✨clear descriptions and errors
3
2
112
6,964
What if JavaScript function signatures were introspectable and enforced at runtime? Coming this week in ArkType 2.2.
10
4
111
5,389
ArkType can already infer 100 cyclic types in 100ms. With TS Go, it will be 10ms. That is less time than a single Zod .extend today🤯
3
1
107
5,281
Today feels like a good day to add syntactic pattern matching to JavaScript...
3
6
108
9,058
If you are a TypeScript developer who... 🪄thinks typed strings are a party trick 🥸has never defined a schema using ArkType you may be underestimating just how different it is from the half-baked PathString APIs you're used to. The bar is native-quality DX. Full stop.
5
6
108
7,919
Validating dates has never been easier📅🎆
6
2
110
7,872
Replying to @adeldotdo
nsfw
5
3
106
1,905
we're so back🥹
4
1
99
3,426
Replying to @theo
typed regex got us over the edge😎
📢Introducing ArkRegex📢 a drop in replacement for new RegExp() with types ⬇️
3
100
9,565
Every part of ArkType's API is designed to mirror TypeScript as closely as possible. Learning it is less like learning a new library and more like waiting for that parallel to click😌
4
3
99
4,503
Do you ever use branded types? They're great for enforcing constraints that TypeScript can't, but can sometimes feel unwieldy. Luckily, using them with ArkType couldn't be simpler👌
4
5
96
3,961
imagine using untyped regex in 2025
6
2
96
4,803
ArkType's `.toJsonSchema()`... ✅exists on every Type ✅great defaults ✅granularly configurable
3
8
94
4,668
Zod is a great library. It is not realistic to be as proficient with a new validator on your first day using it, even with good docs and an intuitive API. That doesn't mean there aren't significant benefits.
3
2
95
7,962
STAND READY FOR MY ARRIVAL, WORM
7
1
92
3,347
Actual footage of the 11 devs who responded ArkType

ALT Man Body GIF

not too shabby, thanks y'all 😇
3
1
91
3,531
bUt sTriNgs CaNt bE TypEsAfe
2
3
91
6,348
Meet .map(), ArkType's most powerful API for deriving schemas. Transform keys, values and more with a single call.
2
6
91
3,747
At this rate, it will take Zod 4 *days* to catch up to ArkType on npm. Hope you're ready to grind @colinhacks
100k downloads/week for the beta?! sure why not! 😅
1
1
86
4,714
soon
5
2
86
3,596
want to add your own keywords to arktype? you don't need a feature request- you need a scope🧑‍🍳
4
4
85
4,233
How to use ArkType: 1️⃣ write typescript 2️⃣ use it in editor 3️⃣ use it at runtime
3
2
86
4,110
We won't be able to ship 2.2 this week. We really wanted to, but turns out regex types come with a few edge cases. Sorry, everyone. We'll do all we can to ship type-level regex that is as robust as our core parser ASAP🙏
2
82
5,849
Bringing TypeScript to runtime is about more than just validation. ArkType 2.1.0 will ship this week, including optimized syntactic pattern matching🔥
3
8
86
2,735
What if instead of hitting instantiation limits on cyclic types, your validator could pass them to optimized, type-safe generics? Everything you've been told about the limitations of TypeScript is a lie- you just have to be willing to think a bit of outside the box0️⃣1️⃣📦
4
10
83
33,035
Wish TypeScript could error on extra properties? So do we. Here's how you can do it in ArkType🧵
3
6
82
6,248
"don't worry babe. with Standard Schema, developers won't have to choose"
3
2
83
5,538
crazy good prompt for cleaning up your types: "rewrite my zod schemas with arktype"
3
2
81
5,375
pov: your string types have better errors than the language they're defined in
1
4
80
2,898
📈ArkType now has >100k weekly npm downloads📈 If you were waiting for docs/stability to try it, now's the perfect time👇
4
2
79
6,085
Branding your schemas has never been easier🧑‍🍳
3
4
78
4,937
🔥@t3dotgg's video on @arktype/attest is an amazing intro to type benchmarking- what it is, when you'd use it and who it's important for. If you haven't already seen it, you're missing out: Video: piped.video/watch?v=AEA0K77q… GitHub: github.com/arktypeio/arktype…
It's finally possible to benchmark your TypeScript code thanks to @arktypeio and I HAD to make video about it
9
73
14,961
z.z.z.z.z.z.z.z💤
4
3
77
5,136
if you're wondering how to do something with ArkType, just ask: how do i do it with TypeScript?
1
1
77
4,574
⛵shipping something big today...
2
1
77
2,358
@ssalbdivad and @Andarist are looking into this now. We will let you know once me learn more and, god willing, have a PR soon🙏
4
76
5,338
in the latest version of arktype: validate regex keys and props with arkregex🤟
2
2
76
2,601
Steps for discriminating a union in ArkType: 1. Define a union
3
2
74
4,041
turns out having type syntax at runtime is pretty nice
2
1
72
3,976
Most validators use chained().methods(). Why "strings"? ✅Inferred 1:1 so you hover less ✅Easily serialized ✅Concise (about half the length of equivalent Zod on average) ✅Typos === type errors Not convinced? Try it yourself, then let us know why! github.com/arktypeio/arktype
3
4
73
19,584
you can just hover things
1
1
72
2,935