$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 built this because I frequently need to convert API responses into typed interfaces. Existing tools were either slow, required a server, or didn't handle edge cases well. This solves that with pure client-side code and smart type inference.

~/features$

Features

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

Technical highlights

  • Smart type unification
  • int vs float distinction
  • Mixed array handling
  • Edge cases: reserved keywords, invalid names, deep nesting
  • 51 unit tests