ArkType: runtime validators parsed from TypeScript-like syntax, tested against many compiler setups
TypeScript's 1:1 validator, optimized from editor to runtime
At a glance
- What is it?
- ArkType is an MIT-licensed runtime validation library that turns type-safe syntax into optimized validators for JSON payloads and forms, in the same role as Zod. Version 2.2.9 shipped on 2026-10-20. The GitHub page is thin on usage, so the decision rests on the docs site and on how much its type-heavy codebase matters to you.
- Who is it for?
- ArkType fits a TypeScript team that validates JSON payloads or form input at the edges of its code, wants validators written in syntax close to its types, and is happy to learn the API from arktype.io rather than the repository. It is a weaker fit for a project on CommonJS tooling that cannot check the published build first, or for a contributor expecting a quick first patch in the core.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 2 days ago.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- arktypeio/arktype7,894 ★ · +28
| Repository | 2026-09-22 | 2026-11-22 |
|---|---|---|
| arktypeio/arktype | 7.9k | 7.9k |
28 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Validators parsed from type syntax, checked at the edges of your code
ArkType calls itself TypeScript's 1:1 validator, optimized from editor to runtime. The working definition is narrower: a runtime validation library that parses optimized validators from familiar, type-safe syntax. You write a definition in syntax that reads like a TypeScript type, and ArkType turns it into a validator that checks real data against it at runtime.
The intended job is checking data you do not control: JSON payloads arriving from an API, form submissions, anything crossing the boundary into your code. The README places it next to Zod for that role. That framing is useful for deciding whether ArkType belongs in a project at all. If your code never parses untrusted input, it has nothing to do. If it does, ArkType sits where a Zod schema would sit, and the question becomes which syntax and which runtime behaviour you prefer.
The GitHub page shows a video, not the API
Readers looking for a schema example on GitHub will find a looping demo video and a link to arktype.io. The README carries no install command, no code sample and no table of supported constraints, so evaluating ArkType means reading the docs site. The package itself is published to npm as arktype, and the latest release tag is [email protected] from 2026-10-20.
The practical consequence is that comparisons people search for, ArkType against Zod 4, Valibot or TypeBox, are not settled anywhere in the repository's front page. The README offers one comparison, the similarity to Zod for boundary checks, and no speed or bundle-size figures. A team choosing between these libraries has to write the same schema in each and measure on its own data. Treat any number quoted without a benchmark you can rerun with suspicion, because the project page does not supply one.
Every pull request runs benchmarks and a V8 internals check
The root package.json defines prChecks as lint, then buildRepo, then testRepoWithBenches. buildRepo removes old output with rmBuild, builds every package except @ark/docs, and then builds the docs as well. testRepoWithBenches runs typecheckRepo (tsc --incremental), testRepo, bench, testTypedLoose, testTsCompat and testTsVersions in sequence.
testRepo itself chains the plain mocha tests, testV8, the integration tests for the arktype package and the @ark/attest test suite. testV8 runs node --allow-natives-syntax ./ark/repo/testV8.js, a flag that exposes V8 internals to the script. For users, the value is that benchmarks run in the same script that gates every pull request. For contributors, it means a patch goes through a long pipeline before it can merge.
Type tests across TypeScript versions and module resolution modes
A validator that infers static types can break on a compiler upgrade even when its runtime code is unchanged. ArkType's scripts address that directly. testTsVersions runs ark/repo/testTsVersions.ts, testTsCompat compiles two separate projects under ark/repo/tsCompat, and testTypedLoose reruns the typed tests with the tsconfig switched off and module set to NodeNext.
The split between test and testTyped matters here. The default test script runs testTyped with --skipTypes, so a quick local run checks values but not types; testTyped without that flag checks both. The attest tooling lives in ark/attest and has its own CLI at ark/attest/cli/cli.ts, published as @ark/attest and @arktype/attest, both at 0.58.0 on 2026-10-22. Which TypeScript versions are covered is decided in testTsVersions.ts, so check that file against the compiler version your project pins before upgrading either one.
ESM by default, with CommonJS built behind ARKTYPE_CJS
The workspace declares type module, and the ordinary build script builds every package except the docs. A separate script, buildCjs, sets ARKTYPE_CJS=1 and rebuilds every package for CommonJS. That environment variable is the switch between the two builds inside the repository.
For an application still on CommonJS, this is a point to verify rather than assume. The repository can produce a CommonJS build, but how the published arktype package exposes it is something to confirm by inspecting the package you install from npm. A project using NodeNext module resolution has a closer match to what the repository tests, since testTypedLoose runs with module and moduleResolution set to NodeNext.
Generic-heavy internals make the core hard to patch
The README is direct about the cost of contributing. Depending on your familiarity with type systems and TypeScript generics, some parts of the codebase may be hard to jump into. Outside pull requests are welcome, planned work is tracked in a GitHub project, and issues labelled external-contributor-friendly are the suggested starting point.
For a team that adopts ArkType and hits a bug in type inference, this has a consequence. Fixing it locally may require understanding the generic machinery behind the 1:1 mapping its tagline promises, and the maintainers ask for an issue before any non-trivial fix or feature so that time is not spent on a change they cannot merge. Plan on reporting and waiting rather than patching, unless someone on your team already writes advanced TypeScript types. The repository also carries an AGENTS.md at the root, alongside .github/CONTRIBUTING.md.
A full-time project funded through GitHub Sponsors
ArkType is released under the MIT licence, which allows commercial use with the licence notice kept. The root package.json lists David Blass as author, and the README says the team has worked on the project full-time for multiple years, funded in part through GitHub Sponsors. get-convex appears as the one ArkSponsor, with individual sponsors listed below it.
Activity is steady: the last push to main was on 2026-11-03, [email protected] shipped on 2026-10-20, and the attest packages followed two days later. The maintainer can be reached on Discord through arktype.io/discord, and conduct issues go to the Code of Conduct contact address. For a company relying on ArkType in production, the funding model is part of the risk picture: development time depends on sponsorship, so check the sponsorship situation the way you would check any supplier.
Editorial conclusion
ArkType fits a TypeScript team that validates JSON payloads or form input at the edges of its code, wants validators written in syntax close to its types, and is happy to learn the API from arktype.io rather than the repository. It is a weaker fit for a project on CommonJS tooling that cannot check the published build first, or for a contributor expecting a quick first patch in the core. Before switching from Zod, port two or three real schemas from your codebase and run them against your own payloads.
Frequently asked questions
Is ArkType an alternative to Zod?
Yes. ArkType is a runtime validation library for checking external data such as JSON payloads or forms at the boundaries of your code, a role its README describes as similar to Zod.
Is ArkType faster than Zod?
ArkType parses optimized validators from type-safe syntax, and its pull request checks run a bench script and a V8 test. The README publishes no head-to-head figures, so measure with your own schemas.
What should I use instead of ArkType?
The ArkType README names Zod as the library it is similar to for validating JSON payloads and forms at the edges of your code. Both cover the same job with different syntax.
Official sources
Where developers are discussing it
Posts on Hacker News, dev.to and Lobsters that link to this repository, found by our scan of those communities. 1 in the last 30 days; newest first.
- I Compared 6 TypeScript Validation Libraries. Here's What Surprised Me 🤔dev.to · Oct 28, 2026 · 79 points · 39 comments
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/arktypeio-arktype)Star history chart for your README
[](https://hysenlabs.com/projects/arktypeio-arktype)Was this useful?