Advertisement · 728 × 90

Posts by ArkType

Preview
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

1 month ago 1 0 0 0
Post image

@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.

1 month ago 2 0 2 0
Post image

Standard Schema validators can now be embedded directly in ArkType definitions.

Zod, Valibot, or anything else that implements the spec.

1 month ago 5 0 2 0
Post image

Type-safe regex via arkregex

Regex literals in your definitions now carry full type inference. x-prefix parses capture groups at runtime.

1 month ago 1 0 1 0
Post image

type.fn

Define runtime-validated functions using the same syntax you already know.

Defaults, optionals, variadics- it all works.

1 month ago 1 0 1 0
Post image

📢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 🧵

1 month ago 33 2 1 0

strategy is summarized here:

x.com/ssalbdivad/s...

3 months ago 1 0 0 0
Preview
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

3 months ago 3 0 0 0
Advertisement
Video

all you need to "learn" ArkType syntax:

1️⃣ start with a typescript keyword
2️⃣ .autocomplete to discover constraints
3️⃣ compose if needed with &, |, etc.

3 months ago 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.

3 months ago 3 0 1 0
Post image

tools are just introspectable functions...

what if you could define them like this?🤔

3 months ago 9 1 1 0

📚 match docs: arktype.io/docs/match
👋 discord: arktype.io/discord
⭐ github: github.com/arktypeio/ar...

3 months ago 1 0 0 0
Post image

wish TS had rust-style pattern matching?

(it already does)🪄

3 months ago 22 1 2 1
Preview
Standard JSON Schema A standardized JSON Schema representation that preserves inferred type information

read the full announcement:

standardschema.dev/json-schema

3 months ago 8 1 0 0
Post image

🚨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

3 months ago 34 3 3 1
Post image

🎉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🔁

3 months ago 20 1 1 0
Post image

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

3 months ago 68 6 2 4
Post image

mission accomplished @mattpocock.com

3 months ago 11 1 0 0
Advertisement

BETRAYAL

3 months ago 12 0 0 0

📚 docs: arktype.io
👋 discord: arktype.io/discord
⭐ github: github.com/arktypeio/arktype

3 months ago 0 0 0 0
Post image

"bUt StRiNgS aReN'T tYpE sAfE"

3 months ago 3 0 1 0

📚 docs: arktype.io
👋 discord: arktype.io/discord
⭐ github: github.com/arktypeio/arktype

3 months ago 2 0 0 0
Post image

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

3 months ago 16 1 1 1

📚 docs: arktype.io
👋 discord: arktype.io/discord
⭐ github: github.com/arktypeio/arktype

3 months ago 1 0 0 0
Post image

once you go type("string") you never go z.back()

3 months ago 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.

4 months ago 1 0 0 0
Advertisement

📚 docs: arktype.io/docs/blog/arkregex
👋 discord: arktype.io/discord
⭐ github: github.com/arktypeio/arktype

4 months ago 2 0 0 0
Post image

Difficulty of Parsing Regex with TypeScript Types
------------------------------------------------------------

group associativity ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
everything else ▒▒

4 months ago 6 0 2 1

📚 docs: arktype.io
👋 discord: arktype.io/discord
⭐ github: github.com/arktypeio/arktype

4 months ago 1 0 0 0
Post image

In the next version of ArkType, any Standard Schema is a valid definition.

Zod migration is about to get a whole lot easier🚀

4 months ago 38 5 3 0