
arktypeio/arktype
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
TypeScript の最小値、最速のバリデータ。 1つのプロンプト.
概要
Docs · Benchmarks · プレコンパイル · Zod から移行; 遊び場 Discord TypeScript 独自の構文で定義を書く — 1:1 を継承し、ランタイムで検証します。 標準スキーマ(tRPC、Hono、React Hook Form、Drizzle、AI SDK、MCP SDKなど)を取り扱っているもの。 Zod、Varibot、TypeBox、Yup、Joi、Effect Schema、JSON Schemaのマイグレーションガイドを参照してください。 - — インストール、エディタのセットアップ、および最初のタイプ - — ビルド時にタイプをコンパイルする @ark/aot - 速度、起動、およびバンドルサイズ、メソッドと再実行コマンド - ゾド、Valibot、TypeBox、Yup、Joi、Effect Schema、およびJSON Schema - - — arktype.io/llms のスキルとMarkdown docs - — リリースノートとアップグレード 2.x arktype は ark バイナリ (init, migrate, スキル, チェック / 発光/@ark/aot 経由で宣言) を出荷します.
概要(AI 翻訳)
ドキュメント · ベンチマーク · プレコンパイル · ゾッドからの移行 · プレイグラウンド · ディスコード
クイックスタート
TypeScript 独自の構文で定義を書く — 1:1 を継承し、ランタイムで検証します。 標準スキーマ(tRPC、Hono、React Hook Form、Drizzle、AI SDK、MCP SDKなど)を取り扱っているもの。
#1つのプロンプトで移行する
1。 ArkTypeエージェントスキルを追加します。
- あなたのコーディングの代理店に尋ねて下さい:
Zod、Varibot、TypeBox、Yup、Joi、Effect Schema、JSON Schemaのマイグレーションガイドを参照してください。
ドキュメント
-Get start - インストール、エディタのセットアップ、および最初のタイプ
- Precompile — [
@ark/aot] でビルド時にタイプをコンパイルする - Benchmarks — 速度、起動、およびバンドルサイズ、メソッドと再実行コマンド
- マイグレーションガイド — Zod、Varibot、TypeBox、Yup、Joi、Effect Schema、JSON Schemaから
- エージェント — arktype.io/llms.txt のスキルとマークダウンのドキュメント -3.0の新機能 — リリースノートと2.xのアップグレード
##CLI
[arktype] バイナリ[[[init]]、[[skill]]、 [check]/ [emit/ [[[declare]]]]) を[[[[[[@ark/aot]]]]]]) で出荷します.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Docs · Benchmarks · Precompile · Migrate from Zod · Playground · Discord
Quick start
npm install arktype
Write definitions in TypeScript’s own syntax — inferred 1:1 and validated at runtime. Works with anything that takes Standard Schema (tRPC, Hono, React Hook Form, Drizzle, AI SDK, MCP SDK, and more).
import { type } from "arktype"
const User = type({
name: "string > 0",
email: "string.email",
"age?": "number.integer >= 0"
})
// { name: string; email: string; age?: number }
type User = typeof User.infer
const out = User({ name: "Ada", email: "ada@", age: -1 })
if (out instanceof type.errors) {
// email must be an email address
// age must be non-negative
console.error(out.summary)
} else {
// out is a User
console.log(out.name)
}
Migrate with one prompt
-
Add the ArkType agent skill:
npx skills add arktypeio/arktype -
Ask your coding agent:
Migrate this project from Zod to ArkType.
See the migration guide for Zod, Valibot, TypeBox, Yup, Joi, Effect Schema, and JSON Schema.
Docs
- Get started — installation, editor setup, and your first type
- Precompile — compile Types at build time with
@ark/aot - Benchmarks — speed, startup, and bundle size, with methods and rerun commands
- Migration guide — from Zod, Valibot, TypeBox, Yup, Joi, Effect Schema, and JSON Schema
- With agents — the skill and Markdown docs at arktype.io/llms.txt
- What’s new in 3.0 — release notes and upgrading from 2.x
CLI
arktype ships the ark binary (init, migrate, skill, and check / emit / declare via @ark/aot). Inside an installed project, run pnpm exec ark (or npx arktype everywhere — ark on npm is an unrelated package):
npx arktype init # create ark.json and install the bundled skill
npx arktype migrate # install the skill and print a migration prompt
npx arktype check # run @ark/aot --check
Contributions
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add arktypeio/arktype