惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

I
InfoQ
S
SegmentFault 最新的问题
N
Netflix TechBlog - Medium
B
Blog
Jina AI
Jina AI
人人都是产品经理
人人都是产品经理
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 聂微东
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
V2EX
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
大猫的无限游戏
大猫的无限游戏
U
Unit 42
J
Java Code Geeks
IT之家
IT之家
aimingoo的专栏
aimingoo的专栏
博客园 - 叶小钗
T
The Blog of Author Tim Ferriss
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
腾讯CDC

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Why I stopped copy-pasting JSON into online converters an...
Jop · 2026-06-14 · via DEV Community
Cover image for Why I stopped copy-pasting JSON into online converters and built TypeMorph

Jop

Why I stopped copy-pasting JSON into online converters and built TypeMorph

Every developer has done it. You grab a JSON response from an API, paste it into some random online tool, and get a TypeScript interface back. Fast, convenient — and potentially a huge security mistake.

I did this for years before I realized what I was actually doing: sending production API responses, internal data models, and sometimes customer data to servers I knew nothing about.

So I built TypeMorph (https://typemorph.dev) — a schema conversion tool that runs 100% in your browser. No servers. No uploads. Your data never leaves your machine.

The problem with online converters

Most "free" online converters are not actually free. You're paying with your data.

When you paste a JSON payload into a third-party tool:

  • That payload hits their servers
  • It may be logged, stored, or analyzed
  • If it contains PII or proprietary business logic, you just leaked it

For personal projects this might be fine. But for a startup or enterprise team? One slip and you've violated your own data handling policies.

What TypeMorph does differently

TypeMorph uses a single AST pipeline that runs entirely in your browser:

JSON / YAML / OpenAPI / JSON Schema
└─► inferSchema() → Schema AST
└─► generators → 160+ output formats

Everything is client-side. There is no backend. The conversion happens in your tab and stays there.

160+ output formats

TypeMorph doesn't just do TypeScript. Paste one JSON object and get:

  • Validation schemas: Zod, Yup, Valibot, ArkType, Joi
  • Languages: Go, Rust, Python (Pydantic), Java, Kotlin, Swift, C#, Dart
  • Databases: Prisma, Drizzle, Kysely, MySQL, PostgreSQL, MongoDB
  • API: OpenAPI, Postman, Protobuf, GraphQL
  • Frontend: React Props, Vue Props, Pinia, Redux Slice

And it's not dumb code generation. The Zod generator applies semantic validators automatically:

// Input JSON: { "email": "user@example.com", "age": 28, "score": 94 }

// TypeMorph output:
export const rootSchema = z.object({
email: z.string().email(), // detected from field name
age: z.number().int().min(0).max(150), // semantic range
score: z.number().min(0).max(100), // semantic range
});

Schema Quality Score

TypeMorph grades your schema A–F and tells you why:

  • Fields typed as any
  • Missing format constraints (uuid, email, datetime…)
  • Mixed naming conventions (camelCase vs snake_case)
  • Overly deep nesting

It's like a linter for your data model.

Breaking Change Detector

Paste two versions of a schema and TypeMorph tells you exactly what broke:

0% compatible · 7 breaking · 1 info

❌ id REMOVED — Required field 'id' was removed
❌ name REMOVED — Required field 'name' was removed
⚠️ user_id ADDED — New required field. Existing payloads will be invalid

This alone has saved me from shipping breaking API changes more than once.

VS Code Extension

Last week I shipped a VS Code extension so you don't even need to open a browser.

Ctrl+Shift+T on any JSON file → pick a format → output appears in a side panel.

Install it from the VS Code Marketplace (https://marketplace.visualstudio.com/items?itemName=TypeMorph.typemorph-vscode).

CLI for CI pipelines

npm install -g typemorph-cli

typemorph zod schema.json # convert to Zod
typemorph quality schema.json # schema quality score
typemorph diff v1.json v2.json # breaking change detection

Try it

If you've ever pasted company data into a random online tool and immediately felt uneasy about it — TypeMorph is for you.

What output formats do you wish existed? Drop them in the comments.

ents.