📢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 🧵
David Blass
@ssalbdivad.dev
author @arktype.io, cocreator Standard Schema, cofounder pullfrog.com ⛵🐸🌱
all you need to "learn" ArkType syntax: 1️⃣ start with a typescript keyword 2️⃣ .autocomplete to discover constraints 3️⃣ compose if needed with &, |, etc.
tools are just introspectable functions... what if you could define them like this?🤔
🚨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
🎉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🔁
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
the typescript ecosystem *desperately* needs type performance tooling. it's not an overstatement to say this is one of the biggest leaps in that area in the history of the language🙇
⚔️introducing TypeSlayer⚔️ A #typescript type performance benchmarking and analysis tool. A summation of everything learned from the benchmarking required to make the Doom project happen. It's got MCP support, Perfetto, Speedscope, Treemap, duplicate package detection, and more.
sounds fake but I'm starting a company with my nemesis Colin P. Zod and our first hire is @AndaristRake and our first product is now in beta
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
In the next version of ArkType, any Standard Schema is a valid definition. Zod migration is about to get a whole lot easier🚀
agonized for a long time on syntax to return a regex's capture groups rather than just validating the input string... what do you think?
coming in ArkType 2.2... e(x)ec mode for regex literals🧑🍳
📈arkregex just hit 100k installs/week📈 if you're still using untyped RegExp() you may as well just write raw .js
problem: your RegExp is beyond human comprehension solution: pnpm i arkregex
I'll take "meticulously typed regex features you probably didn't know existed" for $500
in the latest version of arktype: regex properties and index signatures from arkregex🔒
arkregex is ridiculously optimized. even expressions like this are inferred instantly. but what about the most extreme cases?🧵
I am looking for a full-time job. Being independent in open source for 3.5+ years has been wonderful. I've gotten done most of the high-level goals I wanted to, and miss having people & structure around me. If you know of a role for a staff-level TypeScript+web developer, let me know! 🙂
my abusive relationship with typescript's type system continues
📢Introducing ArkRegex📢 a drop in replacement for new RegExp() with types ⬇️
📢Introducing ArkRegex📢 a drop in replacement for new RegExp() with types ⬇️