qmetrics.net

quicktype

Type and serializer generator from JSON, Schema, and GraphQL

quicktype screenshot

Quicktype infers strongly typed models and serializers from JSON samples, JSON Schema, TypeScript, or GraphQL. Output targets many programming languages via the web app, CLI, or JavaScript API.

Overview

Quicktype turns sample JSON, schemas, TypeScript definitions, or GraphQL queries into language-specific types, serializers, and validators. It merges multiple samples to refine nullability, unions, enums, and numeric widths, and maps awkward JSON keys to legal identifier names with matching encode logic.

You can start in the browser at app.quicktype.io, install the CLI globally with npm, or call quicktype-core from Node or bundled applications. A typical workflow generates a schema from examples, reviews it, commits it, and regenerates code during builds.

Supported outputs span mainstream languages plus JSON Schema, prop-types, and similar targets. The tool recognizes UUIDs, timestamps, URLs, map-like objects, and union shapes, emitting idiomatic code per language including helper marshal functions where needed.

The project also supports custom renderers, MCP exposure for coding agents, and offline use in the web UI without sending samples over the network. TypeScript consumers use typed language-name options when selecting targets at runtime.

Key features

  • JSON and JSON Schema inputs
  • GraphQL and TypeScript sources
  • Twenty-five plus target languages
  • Browser, CLI, and Node API usage
  • Multi-sample type merging
  • Custom language renderers
  • MCP integration for AI agents
  • Offline-capable web application

Use cases

  • API client type generation
  • Build-time schema-driven codegen
  • GraphQL client model creation
  • Safe JSON parsing in mobile apps
  • Agent-assisted type scaffolding

Tags

Similar software

Prettier

Opinionated multi-language code formatter

Prettier enforces consistent style by parsing code and reprinting it with fixed rules and line wrapping. It supports many web and data languages.

  • AST-based consistent reprinting
  • Wide language and plugin support
  • Editor and CI integration
JavaScriptDetails →
★ 52.5k⟳ yesterdayMIT

Oxc

Rust-based JavaScript and TypeScript compiler toolkit

Oxc bundles a parser, linter, formatter, transformer, resolver, and minifier for JavaScript and TypeScript. Oxlint and Oxfmt run via npx for everyday lint and format tasks.

  • Oxlint ESLint-compatible linter
  • Oxfmt Prettier-compatible formatter
  • JavaScript and TypeScript parser
RustLinux, macOSDetails →
★ 23.7k⟳ todayMIT

PHP Parser

PHP library for parsing and manipulating PHP ASTs

A PHP package that parses PHP source into an abstract syntax tree for analysis and code transformation. It targets static analysis and programmatic rewriting workflows.

  • PHP 7 and 8 AST parsing
  • Partial parse on invalid code
  • AST dump and pretty-print
PHPDetails →
★ 17.5k⟳ 5 days agoBSD-3-Clause

typescript-eslint

ESLint tooling for linting TypeScript codebases

typescript-eslint connects ESLint to TypeScript syntax and ships parser services plus lint rules. It enables standard and type-aware linting for JavaScript and TypeScript projects.

  • TypeScript parser for ESLint
  • Parser services for other tools
  • Large standard rule catalog
TypeScriptDetails →
★ 16.5k⟳ todayMIT

laravel-ide-helper

Laravel IDE helper and PHPDoc generator package

A Composer package for Laravel apps that builds helper files and PHPDoc so IDEs can autocomplete facades, models, fluent APIs, and container bindings from your project source.

  • Facade PHPDoc via ide-helper:generate
  • Model property docs from database schema
  • PhpStorm meta for container bindings
PHPDetails →
★ 15k⟳ 1 month agoMIT

JavaParser

Java source parser and abstract syntax tree toolkit

JavaParser builds an AST for Java source from early language versions through current releases. Optional symbol resolution links code elements to declarations for analysis and refactoring.

  • Java 1 through modern syntax parsing
  • Programmatic AST traversal
  • Optional JavaSymbolSolver module
JavaDetails →
★ 6.2k⟳ 2 days agoApache-2.0 · open core