How glideapps/quicktype works
quicktype is a code generator: users provide JSON samples, JSON Schema, TypeScript, or GraphQL input and select a target language; the product infers or reads a model and emits typed models and serializers. The graph separates input adapters, type modeling, generation infrastructure, and target-language implementations. The README documents the API workflow and supported capabilities; sampled source and the SOURCE INDEX support several internal links, but unsampled modules are not treated as inspected.
Main entry points: Inputs.ts InputData · Run.ts quicktype API · TargetLanguage.ts Language selection · ConvenienceRenderer.ts Convenience renderer
Components 20
Input adapters
- InputData
packages/quicktype-core/src/input/Inputs.ts - JSON samples
packages/quicktype-core/src/input/Inference.ts - JSON Schema
packages/quicktype-core/src/input/JSONSchemaInput.ts - TypeScript input
packages/quicktype-typescript-input/src/index.ts - GraphQL input
packages/quicktype-graphql-input/src/index.ts - Schema fetching
packages/quicktype-core/src/input/FetchingJSONSchemaStore.ts
Type modeling
- Type inference
packages/quicktype-core/src/input/Inference.ts - Type graph
packages/quicktype-core/src/Type/TypeGraph.ts - Type operations
packages/quicktype-core/src/Type/TypeUtils.ts - Graph rewrites
packages/quicktype-core/src/rewrites
Generation core
- quicktype API
packages/quicktype-core/src/Run.ts - Language selection
packages/quicktype-core/src/TargetLanguage.ts - Name assignment
packages/quicktype-core/src/Naming.ts - Renderer framework
packages/quicktype-core/src/Renderer.ts - Convenience renderer
packages/quicktype-core/src/ConvenienceRenderer.ts - Output serialization
packages/quicktype-core/src/Source.ts
Target languages
- Language registry
packages/quicktype-core/src/language/All.ts - Language renderers
packages/quicktype-core/src/language
Other components
- User
- Generated code
Connections 24
- User → InputData: provides inputs
README.md - User → quicktype API: selects options
README.md - InputData → JSON samples: accepts samples
README.md - InputData → JSON Schema: accepts schemas
README.md - InputData → TypeScript input: accepts TypeScript
README.md - InputData → GraphQL input: accepts GraphQL
README.md - JSON Schema → Schema fetching: fetches references
- quicktype API → InputData: consumes input
README.md - quicktype API → Type inference: builds types
README.md - JSON samples → Type inference: infers types
packages/quicktype-core/src/input/Inference.ts - Type inference → Type graph: constructs graph
packages/quicktype-core/src/input/Inference.ts - Type graph → Type operations: supports operations
packages/quicktype-core/src/Type/TypeUtils.ts - quicktype API → Graph rewrites: transforms types
- quicktype API → Language selection: selects target
README.md - Language selection → Language registry: resolves language
- Language registry → Language renderers: registers targets
- Language selection → Renderer framework: creates renderer
packages/quicktype-core/src/TargetLanguage.ts - Renderer framework → Convenience renderer: extends rendering
packages/quicktype-core/src/ConvenienceRenderer.ts - Convenience renderer → Type graph: reads types
packages/quicktype-core/src/ConvenienceRenderer.ts - Convenience renderer → Name assignment: assigns names
packages/quicktype-core/src/ConvenienceRenderer.ts - Language renderers → Convenience renderer: uses framework
packages/quicktype-core/src/language/CJSON/CJSONRenderer.ts - Renderer framework → Output serialization: emits sources
packages/quicktype-core/src/Renderer.ts - Language selection → Output serialization: serializes output
packages/quicktype-core/src/TargetLanguage.ts - Output serialization → Generated code: produces code
README.md