Typesmith is a Visual Studio Code extension that helps you quickly generate TypeScript or Python interfaces from JSON data. It's perfect for developers who need to scaffold data models from sample JSON or API responses.
🚀 Features
🔧 Convert JSON to TypeScript interfaces
🐍 Convert JSON to Python classes
📋 Copy generated code to clipboard instantly
💡 Intuitive webview panel with syntax highlighting
🎨 Clean UI, styled to feel native to VS Code
📸 Screenshots
🛠️ Requirements
There are no external dependencies. Just install and start using it inside VS Code.
⚙️ Extension Settings
This extension contributes no custom settings at the moment.
📦 How to Use
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
Search and run: Typesmith: Generate Interface
Paste your JSON in the panel
Select the output language (TypeScript or Python)
Hit Generate, then copy the result to your clipboard
🐞 Known Issues
Currently does not handle deeply nested arrays of mixed types