AA

arktypeio/arktype

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

7.9천 stars 품질 73 트렌드 86MIT

TypeScript의 가장 작고 빠른 검증기. 1개의 신속한.

개요

Docs  ·  벤치 마크  ·  Precompile  ·  Zod  ·  놀이터  ·  Discord TypeScript의 자체 구문에서 정의 쓰기 — inferred 1:1 and validated at runtime. Standard Schema(tRPC, Hono, React Hook Form, Drizzle, AI SDK, MCP SDK 등)를 포함한 모든 작업을 수행합니다. Zod, Valibot, TypeBox, Yup, Joi, Effect Schema 및 JSON Schema에 대한 마이그레이션 가이드를 참조하십시오. - - 설치, 편집기 설정 및 첫 번째 유형 - - @ark/aot - - - 속도, 시작 및 번들 크기, 방법 및 재 실행 명령 - - - - Zod, Valibot, TypeBox, Yup, Joi, Effect Schema 및 JSON Schema - - - arktype.io/llms.txt에서 기술 및 Markdown docs - 릴리스 노트 및 2.x에서 업그레이드 arktype 배는 ark 바이너리 (init, migrate, 기술, 및 체크 / 방출 / @ark / aot를 통해 선언).

개요(AI 번역)

사이트맵  ·  벤치 마크  ·  기타 제품  ·  Zod에서 마이그레이션  ·  팟캐스트  ·  관련 제품

빠른 시작

TypeScript의 자체 구문에서 정의 쓰기 — inferred 1:1 and validated at runtime. Standard Schema(tRPC, Hono, React Hook Form, Drizzle, AI SDK, MCP SDK 등)를 포함한 모든 작업을 수행합니다.

한 프롬프트로 마이그레이션

  1. ArkType 대리인 기술을 추가하십시오:

  2. 당신의 기호화 대리인을 요구하십시오:

Zod, Valibot, TypeBox, Yup, Joi, Effect Schema 및 JSON Schema에 대한 마이그레이션 가이드를 참조하십시오.

문서

-Get start — 설치, 편집기 설정 및 첫 번째 유형

  • Precompile - @ark/aot와 빌드 시간에 입력을 컴파일
  • Benchmarks - 속도, 시작 및 번들 크기, 방법 및 실행 명령
  • ** 마이그레이션 가이드 ** - Zod, Valibot, TypeBox, Yup, Joi, Effect Schema 및 JSON Schema에서
  • ** 에이전트 ** - arktype.io/llms.txt에서 기술 및 Markdown docs
  • ** 3.0**의 새로운 기능 — 2.x에서 노트 및 업그레이드

클립

arktype ark] 이진 ([T3]]], migrate], 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

  1. Add the ArkType agent skill:

    npx skills add arktypeio/arktype
    
  2. 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

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

GitHub에서 전체 README 보기

추천 도구

다른 키워드를 입력하거나 필터를 제거해 보세요.

설치

npx skillfish add arktypeio/arktype
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →