Sufyan Jami
cd ..
~/projects/json-type-generator$

JSON Type Generator

Paste JSON on the left, get typed code on the right. No server, no dependencies beyond the build toolchain.

~/built-with$
[sveltekit][typescript][tailwind css][vitest]
~/why$

Why I built this

I convert API responses into typed interfaces constantly, and I wanted that to work offline in a tab I already had open. Keeping it client-side meant most of the work went into type inference: unifying mixed arrays, telling ints from floats, and handling reserved keywords.

~/features$

Features

  • ›Real-time JSON -> TS / C# conversion
  • ›Editable output
  • ›Format JSON
  • ›Upload .json file
  • ›Download (.ts / .cs)
  • ›Copy to clipboard
~/highlights$

Technical highlights

  • ✓Type unification across mixed value types
  • ✓int vs float distinction
  • ✓Mixed array handling
  • ✓Edge cases: reserved keywords, invalid names, deep nesting
  • ✓51 unit tests