drizzle-team/drizzle-orm — reverse-engineered prompt
Reverse engineered prompt
Build me a lightweight TypeScript ORM for JavaScript apps that feels close to writing SQL, but gives developers strong type help while they work.
I want people to define their database tables in code, then run relational queries or SQL style queries against PostgreSQL, MySQL, and SQLite. It should work well in Node.js, Bun, Deno, serverless functions, edge runtimes, Cloudflare Workers, and browser use cases where that makes sense. Keep it thin and fast, with no unnecessary services or data proxy in the middle.
Please also include a migration tool so developers can generate SQL migration files from schema changes and apply them to a database. If possible, include a simple studio experience for browsing and editing database data locally.
Make the developer experience clean, documented, and easy to use in a fresh TypeScript project. Look up current database driver docs online if you need to.
Want more depth? Deep Reverse