{
 "kind": "tool",
 "slug": "planetscale-database",
 "path": "tools/planetscale-database/",
 "name": "PlanetScale Database Driver",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Databases, ORMs and clients",
   "tools/databases-orms/"
  ]
 ],
 "lead": "Fetch API-compatible driver for PlanetScale MySQL databases.",
 "chips": [
  {
   "label": "Databases, ORMs and clients",
   "path": "tools/databases-orms/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @planetscale/database"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/planetscale/database-js"
  },
  {
   "label": "Website",
   "href": "https://github.com/planetscale/database-js#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "Apache-2.0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/planetscale/database-js"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Oct 30, 2026",
   "note": "Latest GitHub release Sep 24, 2026. ",
   "src": "https://github.com/planetscale/database-js"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "1 projects",
   "status": "info",
   "sub": "#99 of 120 in its category",
   "note": "Dependency in 1 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "6 skills by others",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What PlanetScale Database Driver does",
   "parts": [
    {
     "t": "prose",
     "text": "Fetch API-compatible driver for PlanetScale MySQL databases."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "PlanetScale Database Driver popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "41",
       "of": "/ 100",
       "l": "Gid Score, #3022 overall"
      },
      {
       "n": "849K",
       "l": "downloads a week, npm"
      },
      {
       "n": "1,206",
       "l": "GitHub stars"
      },
      {
       "n": "1",
       "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 PlanetScale Database Driver is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "PlanetScale Database Driver joined the catalog on its public numbers (848,510 downloads a week on npm and 1,206 GitHub stars), not on our project count: it is a dependency in 7 public GitHub projects of our scan, 1 of them set up for AI coding agents.",
      "The most used alternative in our scan is pg (298 projects).",
      "Projects that use it most often also use AWS SDK for JavaScript (S3) (100.0%), Vercel Postgres (100.0%), mysql2 (100.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 100.0% of its projects",
       "v": "AWS SDK for JavaScript (S3)",
       "path": "tools/aws-sdk-client-s3/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "Vercel Postgres",
       "path": "tools/vercel-postgres/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "mysql2",
       "path": "tools/mysql2/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "pg",
       "path": "tools/pg/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 85.7% of its projects",
       "v": "ClickHouse JS client",
       "path": "tools/clickhouse-client/"
      },
      {
       "l": "In 85.7% of its projects",
       "v": "Elasticsearch JavaScript client",
       "path": "tools/elastic-elasticsearch/"
      },
      {
       "l": "In 85.7% of its projects",
       "v": "Transformers.js",
       "path": "tools/huggingface/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about PlanetScale Database Driver",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "database-lookup: Queries documented public database APIs with explicit endpoints, filters, pagination, and provenance. Used when a scientific, regulatory, fi",
        "database-security: Use for authorized database security assessment covering PostgreSQL/MySQL/MSSQL/Mongo/Redis exposure, authz, UDF/command paths, and misconfi",
        "database-migration: Execute database migrations across ORMs and platforms with zero-downtime strategies, data transformation, and rollback procedures. Use when",
        "database-optimizer: Optimizes database queries and improves performance across PostgreSQL and MySQL systems. Use when investigating slow queries, analyzing exec",
        "database-optimizer: Use when investigating slow queries, analyzing execution plans, or optimizing database performance. Invoke for index design, query rewrites,",
        "database-optimization: Query optimization, indexing strategies, and database performance tuning for PostgreSQL and MySQL"
       ]
      },
      {
       "title": "More in Databases, ORMs and clients",
       "path": "tools/databases-orms/",
       "items": [
        {
         "text": "Drizzle ORM",
         "path": "tools/drizzle-orm/"
        },
        {
         "text": "Prisma",
         "path": "tools/prisma/"
        },
        {
         "text": "Drizzle Kit",
         "path": "tools/drizzle-kit/"
        },
        {
         "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": "PlanetScale Database Driver",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 41",
        "849K/wk"
       ]
      },
      {
       "name": "pg",
       "why": "PostgreSQL client for Node.js with pure JavaScript and libpq API compatibility.",
       "path": "tools/pg/",
       "facts": [
        "MIT",
        "Gid 81",
        "106M/wk"
       ]
      },
      {
       "name": "mysql2",
       "why": "Fast MySQL driver with native protocol implementation, prepared statements and SSL.",
       "path": "tools/mysql2/",
       "facts": [
        "MIT",
        "Gid 66",
        "25.6M/wk"
       ]
      }
     ],
     "more": "Compare PlanetScale Database Driver with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @planetscale/database"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for PlanetScale Database Driver yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @planetscale/database"
  ],
  [
   "Category",
   "Databases, ORMs and clients"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "41.0"
  ],
  [
   "Rank in category",
   "#99 of 120"
  ],
  [
   "GitHub",
   "planetscale/database-js"
  ],
  [
   "Last change",
   "Oct 30, 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/planetscale.png"
}