Comments

Hey

I'm thrilled to launch TypeSwitch today!

Manual database migrations or LLM client swaps are the kind of tasks engineering teams put off for months. Rewriting hundreds of database query lines or LLM API calls is tedious, time-consuming, and highly prone to silent runtime bugs.

TypeSwitch is a local CLI utility that automates these code migrations in minutes:

📂 ORM Migrator (orm-migrate): Translates schema.prisma definitions into idiomatic Drizzle schema.ts. It scans your codebase, refactors PrismaClient queries into Drizzle's relational API, and swaps package dependencies.
🤖 Model Migrator (model-migrate): Translates OpenAI SDK calls to Anthropic Claude messages API, automatically handles system prompt hoisting, aligns role alternations, and sets up vector re-indexing scripts.