Generate TypeScript interfaces from YAML
When you have YAML configuration or API schemas and need TypeScript types for your project, this chain converts YAML to JSON, formats it, and generates TypeScript interface definitions automatically.
What it solves
Convert a YAML document to TypeScript interface definitions, using JSON as an intermediate format.
Input → Output
YAML Converter input → JSON to TypeScript output across 3 steps.
Runs in
2–3 minutes · fully local in your browser.
Before you start
- A valid YAML document
The pipeline
-
Convert between YAML and JSON online. Free, private, and 100% client-side.
-
Format, minify, or sort JSON online. Free, private, and 100% client-side.
Params: mode=format
-
Infer TypeScript interfaces from JSON. Free, private, 100% client-side.
Runs locally in your browser. The recipe defines the pipeline only — your input never leaves this tab.
▶Run this workflow
Enter your input below and click Run. All processing happens locally in your browser — nothing is uploaded.
Pipeline progress
- YAML Converteryaml-convert
- JSON Formatterjson-format
- JSON to TypeScriptjson-to-ts
Sample input
name: uencoder version: 1 features: - encode - decode
Expected output
interface Result {
name: string;
version: number;
features: string[];
} This pair is executed against the real tools at build time (tests/unit/recipes.test.ts) — the expected output is verified, not illustrative.
Related workflows
You might also need
Workflows sharing tools or topics with this recipe.