{
 "kind": "tool",
 "slug": "drizzle-kit",
 "path": "tools/drizzle-kit/",
 "name": "Drizzle Kit",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Databases, ORMs and clients",
   "tools/databases-orms/"
  ]
 ],
 "lead": "CLI migration tool for Drizzle ORM that auto-generates SQL migrations intelligently.",
 "chips": [
  {
   "label": "Databases, ORMs and clients",
   "path": "tools/databases-orms/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install drizzle-kit"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/drizzle-team/drizzle-orm"
  },
  {
   "label": "Website",
   "href": "https://orm.drizzle.team"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/drizzle-team/drizzle-orm"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 20, 2026",
   "note": "Latest GitHub release Oct 8, 2026. ",
   "src": "https://github.com/drizzle-team/drizzle-orm"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "244 projects",
   "status": "info",
   "sub": "#4 of 120 in its category",
   "note": "Dependency in 244 public GitHub projects set up for AI coding agents that we scanned (3.9%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "yes",
   "sub": "llms.txt",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": "https://orm.drizzle.team/llms.txt"
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Drizzle Kit does",
   "parts": [
    {
     "t": "prose",
     "text": "Drizzle Kit is the command-line half of Drizzle: it reads the TypeScript schema you already wrote for the ORM, then either writes SQL migration files from it or applies the change straight to the database."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Drizzle Kit popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "86",
       "of": "/ 100",
       "l": "Gid Score, #35 overall"
      },
      {
       "n": "41.6M",
       "l": "downloads a week, npm"
      },
      {
       "n": "36.4K",
       "l": "GitHub stars"
      },
      {
       "n": "244",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Drizzle Kit is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Drizzle Kit is a dependency in 244 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (5.0% of the 4,867 JavaScript/TypeScript ones), #4 of 120 in databases, orms and clients.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 792; those are left out of every share on this page.",
      "Projects that use it most often also use Drizzle ORM (98.0%), Zod (78.3%), Class Variance Authority (55.3%).",
      "It is more common in projects set up for OpenCode (7.3%) than for OpenClaw (3.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "142 projects, 4.3%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "109 projects, 4.5%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "109 projects, 3.6%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "25 projects, 7.3%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "18 projects, 3.8%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "16 projects, 3.4%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "11 projects, 3.9%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "10 projects, 3.0%",
       "v": "OpenClaw",
       "path": "agents/openclaw/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 98.0% of its projects",
       "v": "Drizzle ORM",
       "path": "tools/drizzle-orm/"
      },
      {
       "l": "In 78.3% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 55.3% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 52.9% of its projects",
       "v": "tsx",
       "path": "tools/tsx/"
      },
      {
       "l": "In 59.4% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 76.6% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 59.0% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 51.6% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Drizzle Kit in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Migration files or a direct push",
       "v": "The README describes two paths. Kit can write SQL migration files for you to commit and apply later, or it can apply the schema change to the database directly."
      },
      {
       "l": "Structural SQL comes from a schema diff",
       "v": "Storyie uses <code>drizzle-kit generate</code> for every structural change: new tables and columns, type changes, indexes and foreign keys. Kit compares the schema with its previous state and writes the SQL, so no one hand-writes DDL."
      },
      {
       "l": "Blank migrations for data changes",
       "v": "<code>generate --custom</code> skips the diff and creates an empty SQL file for you to fill in by hand. Storyie used these files for seed rows, back-fills, row copies and Stripe price updates."
      },
      {
       "l": "Postgres Row-Level Security since Kit v0.27.0",
       "v": "According to the release note, Kit v0.27.0 added Row-Level Security support for PostgreSQL. It covers managing roles and policies and enabling RLS for tables and views."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "No migrate-down command",
       "v": "Storyie notes that Kit has no way to migrate down. Their fallbacks: <code>drizzle-kit drop</code> for files that have been generated but not applied, a forward fix for applied ones, and Supabase point-in-time recovery for data loss."
      },
      {
       "l": "Supabase needs the roles provider flag",
       "v": "Storyie calls <code>entities.roles.provider: \"supabase\"</code> in the config \"not optional\". Without it, they write, the generated SQL can clash with Supabase's roles or produce malformed policy statements."
      },
      {
       "l": "Generated SQL still needs a read",
       "v": "Storyie reviews every auto-generated file before committing. Their reason: the diff can produce something unexpected, such as recreating a column where you expected an in-place change."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Schema example from the Drizzle overview (shown beside a migration.sql tab)"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Typescript",
       "code": "// manage your schema\nexport const countries = pgTable ( 'countries' , {\nid : serial () .primaryKey () ,\nname : varchar ({ length : 256 }) ,\n});\nexport const cities = pgTable ( 'cities' , {\nid : serial () .primaryKey () ,\nname : varchar ({ length : 256 }) ,\ncountryId : integer ( 'country_id' ) .references (() => countries .id) ,\n});"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Drizzle Kit",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/drizzle-team",
        "68 GitHub sponsors"
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "drizzle-orm: TypeScript ORM",
        "zod: Schema validation",
        "tailwind-merge: Tailwind class merging",
        "class-variance-authority: Component variants",
        "clsx: className builder",
        "tsx: TypeScript runner"
       ]
      },
      {
       "title": "More in Databases, ORMs and clients",
       "path": "tools/databases-orms/",
       "items": [
        {
         "text": "pg",
         "path": "tools/pg/"
        },
        {
         "text": "Drizzle ORM",
         "path": "tools/drizzle-orm/"
        },
        {
         "text": "Prisma",
         "path": "tools/prisma/"
        },
        {
         "text": "SQLAlchemy",
         "path": "tools/sqlalchemy/"
        },
        {
         "text": "better-sqlite3",
         "path": "tools/better-sqlite3/"
        },
        {
         "text": "psycopg2",
         "path": "tools/psycopg2-binary/"
        },
        {
         "text": "Alembic",
         "path": "tools/alembic/"
        },
        {
         "text": "Neon Serverless Driver",
         "path": "tools/neondatabase/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Drizzle Kit",
       "me": true,
       "facts": [
        "MIT",
        "Gid 86",
        "41.6M/wk"
       ]
      }
     ],
     "more": "Compare Drizzle Kit with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install drizzle-kit"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Drizzle Kit\n- Make structural changes in the TypeScript schema, then run `drizzle-kit generate` to write the SQL migration. Do not hand-write DDL for schema changes.\n- Put data changes (seeds, back-fills, row copies) in files from `drizzle-kit generate --custom`. Never mix DDL and DML in one migration.\n- Read every generated SQL file before committing. Watch for a column being recreated where you expected an in-place alteration.\n- Write custom migration SQL so it is safe to re-run, for example with `ON CONFLICT DO NOTHING`.\n- On Supabase, set `entities.roles.provider: \"supabase\"` in `drizzle.config.ts`, and declare RLS in the schema with `.enableRLS()` so policies generate with the table.\n- There is no migrate-down command. Use `drizzle-kit drop` only for generated files that have not been applied. Fix applied migrations with a new forward migration.\n- For Expo SQLite, OP SQLite or React Native, follow the Get Started guide for migrations.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm drizzle-kit"
  ],
  [
   "Category",
   "Databases, ORMs and clients"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "0.45.4, October 8, 2026"
  ],
  [
   "On GitHub since",
   "June 2021"
  ],
  [
   "Gid Score",
   "85.8"
  ],
  [
   "Rank in category",
   "#4 of 120"
  ],
  [
   "GitHub",
   "drizzle-team/drizzle-orm"
  ],
  [
   "Last change",
   "Nov 20, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/drizzle-team.png"
}