drizzle-orm

Enable type-safe SQL-first data access in TypeScript applications.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/pau-vega/react-router-drizzle --skill drizzle-orm-pau-vega
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drizzle-orm
Source: https://github.com/pau-vega/react-router-drizzle/tree/main/.agents/skills/drizzle-orm
Command: npx skills add https://github.com/pau-vega/react-router-drizzle --skill drizzle-orm-pau-vega

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enable type-safe, SQL-first data access in TypeScript applications.

Core Features & Use Cases

  • High-performance, type-safe queries with compile-time inference for improved safety.
  • SQL-level control and powerful patterns including raw SQL, migrations, and relations.
  • Use cases include building data-intensive backends, edge runtimes, and serverless apps with predictable typing.

Quick Start

Install drizzle-orm and configure a minimal drizzle client to begin writing type-safe queries.

Frequently Asked Questions about drizzle-orm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get compile-time type inference for SQL queries in TypeScript?

You achieve compile-time type inference for SQL queries by using a TypeScript ORM that delivers zero runtime overhead, ensuring your applications have predictable typing without sacrificing performance.

What is the best way to manage SQL-driven migrations in a TypeScript backend?

SQL-driven migrations are managed through first-class raw SQL support and dedicated migration patterns, allowing you to maintain strict schema control and type safety across modern Node.js environments.

Does this type-safe ORM work with edge runtime environments?

Yes, this type-safe ORM explicitly supports edge runtime environments, enabling high-performance, SQL-first data access for serverless applications without imposing heavy runtime dependencies.

Can I use raw SQL while maintaining type safety in TypeScript?

Yes, you can write first-class raw SQL queries while maintaining strong type inference, providing SQL-level control and allowing powerful patterns for data-intensive backends without losing predictable typing.

Why choose a SQL-first ORM over other TypeScript data access tools?

A SQL-first ORM provides SQL-level control, zero runtime dependencies, and compile-time type inference, making it ideal for high-performance queries and edge runtimes where other tools might introduce unnecessary overhead.