ArkType Docs
TypeScript's 1:1 validator, optimized from editor to runtime
Full announcement: arktype.io/docs/blog/2.2
I couldn't be more hyped to see what you do with it.
β‘ arktype.io/docs/intro/setup
β github.com/arktypeio/arktype
π arktype.io/discord
If you want to support this work: github.com/sponsors/arktypeio
04.03.2026 19:40
π 1
π 0
π¬ 0
π 0
@ark/json-schema β Bidirectional JSON Schema
Parse JSON Schema into ArkType Types, and convert Types to JSON Schema. Huge thanks to @TizzySaurus
for building this one.
toJsonSchema() now supports configurable fallbacks, draft-07/2020-12 targets, and cyclic types.
04.03.2026 19:40
π 2
π 0
π¬ 2
π 0
Standard Schema validators can now be embedded directly in ArkType definitions.
Zod, Valibot, or anything else that implements the spec.
04.03.2026 19:40
π 5
π 0
π¬ 2
π 0
Type-safe regex via arkregex
Regex literals in your definitions now carry full type inference. x-prefix parses capture groups at runtime.
04.03.2026 19:40
π 1
π 0
π¬ 1
π 0
type.fn
Define runtime-validated functions using the same syntax you already know.
Defaults, optionals, variadics- it all works.
04.03.2026 19:40
π 1
π 0
π¬ 1
π 0
π’ArkType 2.2 is here.
This is a big one, and it's long overdue.
Validated functions, type-safe regex, bidirectional JSON Schema, and universal schema interop.
Here's what's new π§΅
04.03.2026 19:40
π 33
π 2
π¬ 1
π 0
strategy is summarized here:
x.com/ssalbdivad/s...
23.12.2025 19:16
π 1
π 0
π¬ 0
π 0
ArkType Playground
TypeScript's 1:1 validator, optimized from editor to runtime
π playground: arktype.io/playground
π docs: arktype.io
π discord: arktype.io/discord
β github: github.com/arktypeio/arktype
22.12.2025 19:06
π 3
π 0
π¬ 0
π 0
all you need to "learn" ArkType syntax:
1οΈβ£ start with a typescript keyword
2οΈβ£ .autocomplete to discover constraints
3οΈβ£ compose if needed with &, |, etc.
22.12.2025 19:06
π 20
π 1
π¬ 2
π 0
Yeah unfortunately without build-time transforms (which come with their own limitations), this is probably about as close as you will get to TypeScript at runtime.
18.12.2025 22:09
π 3
π 0
π¬ 1
π 0
tools are just introspectable functions...
what if you could define them like this?π€
18.12.2025 17:19
π 9
π 1
π¬ 1
π 0
π match docs: arktype.io/docs/match
π discord: arktype.io/discord
β github: github.com/arktypeio/ar...
17.12.2025 17:34
π 1
π 0
π¬ 0
π 0
wish TS had rust-style pattern matching?
(it already does)πͺ
17.12.2025 17:34
π 22
π 1
π¬ 2
π 1
π¨Standard JSON Schema v1 just droppedπ¨
π’libraries can now accept ArkType wherever they need JSON Schema
π’100% type-safe with inference built-in
π’day one support from AI SDK
π’TanStack AI and MCP SDK support imminent
16.12.2025 19:56
π 34
π 3
π¬ 3
π 1
πAnnouncing Standard JSON Schemaπ
The next spec in the Standard Schema family is here to bring library-agnostic JSON Schema to TS.
Let's make sure everyone sees itπ
16.12.2025 19:08
π 20
π 1
π¬ 1
π 0
Introducing β¨ Standard JSON Schema β¨
It's a sister spec to Standard Schema that provides a common interface for any entity that can be converted to JSON Schema
15.12.2025 23:28
π 68
π 6
π¬ 2
π 4
mission accomplished @mattpocock.com
11.12.2025 18:10
π 11
π 1
π¬ 0
π 0
BETRAYAL
10.12.2025 17:40
π 12
π 0
π¬ 0
π 0
π docs: arktype.io
π discord: arktype.io/discord
β github: github.com/arktypeio/arktype
09.12.2025 18:24
π 0
π 0
π¬ 0
π 0
"bUt StRiNgS aReN'T tYpE sAfE"
09.12.2025 18:24
π 3
π 0
π¬ 1
π 0
π docs: arktype.io
π discord: arktype.io/discord
β github: github.com/arktypeio/arktype
08.12.2025 18:57
π 2
π 0
π¬ 0
π 0
95% of ArkType syntax is just TypeScript.
The other 5% are extensions like this that are...
β
composable
β
consistent across data types
β
100% safe with helpful type-level error messages
08.12.2025 18:57
π 16
π 1
π¬ 1
π 1
π docs: arktype.io
π discord: arktype.io/discord
β github: github.com/arktypeio/arktype
05.12.2025 17:22
π 1
π 0
π¬ 0
π 0
once you go type("string") you never go z.back()
05.12.2025 17:22
π 16
π 2
π¬ 1
π 0
Yeah we considered that syntax but it was cleaner to separate them since it won't always be a string definition that goes there (could be a reference to another type) so for now it just makes it easier to always think about spreading the same way.
04.12.2025 21:52
π 1
π 0
π¬ 0
π 0
π docs: arktype.io/docs/blog/arkregex
π discord: arktype.io/discord
β github: github.com/arktypeio/arktype
02.12.2025 17:51
π 2
π 0
π¬ 0
π 0
Difficulty of Parsing Regex with TypeScript Types
------------------------------------------------------------
group associativity βββββββββββββββββββββββ
everything else ββ
02.12.2025 17:51
π 6
π 0
π¬ 2
π 1
π docs: arktype.io
π discord: arktype.io/discord
β github: github.com/arktypeio/arktype
01.12.2025 18:40
π 1
π 0
π¬ 0
π 0
In the next version of ArkType, any Standard Schema is a valid definition.
Zod migration is about to get a whole lot easierπ
01.12.2025 18:39
π 38
π 5
π¬ 3
π 0