Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

quicktype

$ quicktype Official Low Risk
quicktype · Database & Data · Apache-2.0 · macos / linux / windows

quicktype infers structural types from sample JSON payloads, JSON Schema (--src-lang schema), or GraphQL queries and emits idiomatic types and runtime marshalers for TypeScript, Go, Rust, Python, Swift, Kotlin, and Java via -l and -o.

FCRS-1.0 Score
87 /100
Good
Medium Confidence
Zero-Friction Install
brew install quicktype
CLI vs MCP Decision CLI Only

Deterministically infers nested unions, optional fields, and serializers from sample JSON (quicktype data.json -l ts), avoiding manual type transcription mistakes.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Fully non-interactive CLI accepting stdin or --src files, --src-lang, -l target language, --just-types, and stdout by default.

  • Non-interactive codegen to stdout or -o
  • Supports --src-lang schema and --just-types
Trust & Safety 23 / 25

Read-only stdout emission by default; only writes to disk when -o is explicitly passed.

  • Stdout default; explicit -o for file writes
Setup & Portability 13 / 15

Available via Homebrew, npm, and npx across macOS, Linux, and Windows.

  • Available via brew install quicktype and npm
Utility & Efficiency 14 / 15

Saves substantial agent context and eliminates field-typing bugs when scaffolding DTOs across 20+ languages.

  • Multi-language type & serializer inference from JSON/Schema/GraphQL
Maintenance & Lineage 8 / 10

Maintained under glideapps/quicktype with Apache-2.0 license.

  • glideapps/quicktype repository under Apache-2.0
Docs & Verifiability 8 / 10

Clear README and --help documenting language-specific flags (--just-types, --package, --top-level).

  • Documented CLI flags in README and --help

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None; processes local JSON/Schema files or piped stdin.

Side Effects
Read-Only Local Write
Cost & Quotas

Apache-2.0 open-source CLI; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# quicktype Agent Rules
- Preview generated code on stdout (omit `-o`) or pass `--just-types` first before writing into source directories.
- Specify `--src-lang schema` explicitly when inputting a JSON Schema rather than sample JSON.

Agent-Ready Command Recipes

Safe Read-Only Queries

Preview generated TypeScript types on stdout
quicktype data.json -l ts --just-types

Infers TypeScript interfaces from data.json and prints them to stdout without writing files.

Controlled Writes & Previews

Generate Go structs from a JSON Schema file
quicktype --src-lang schema schema.json -l go -o types.go

Generates Go structs and JSON tags from a JSON Schema and saves them to types.go.

Strengths for Agents

  • + Infers nested optional fields, enums, and union types accurately from multiple JSON samples.
  • + --just-types produces clean interfaces without bulky runtime helper code when desired.
  • + Outputs to stdout by default when -o is omitted.

Caveats & Pitfalls

  • ! Generated runtime validator boilerplate can be verbose in some languages unless --just-types is passed.
  • ! Passing a JSON Schema without --src-lang schema treats the schema itself as sample JSON data.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI