Model an API response
Create initial TypeScript interfaces while integrating a REST, webhook or third-party API.
Generate tool
Generate TypeScript interfaces from sample JSON locally in your browser. Review inferred optional fields and unions before use.
Your input and result are not sent to JSON Hearth or stored on a server.
When to use it
Type generation creates a starting model from example data, reducing repetitive typing while leaving application-specific decisions to you.
Create initial TypeScript interfaces while integrating a REST, webhook or third-party API.
Turn representative JSON into reusable types for tests and frontend development.
Expose object and array relationships in a form familiar to TypeScript developers.
Important limitations
Common questions
Not reliably from one example. Optionality requires knowledge of other valid payloads or an external contract.
TypeScript types help at development time, while JSON Schema can validate runtime data. They solve related but different problems.