{
 "kind": "tool",
 "slug": "electric-sql-pglite",
 "path": "tools/electric-sql-pglite/",
 "name": "PGlite",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Databases, ORMs and clients",
   "tools/databases-orms/"
  ]
 ],
 "lead": "Run PostgreSQL in the browser or Node.js via WebAssembly with no external dependencies.",
 "chips": [
  {
   "label": "Databases, ORMs and clients",
   "path": "tools/databases-orms/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @electric-sql/pglite"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/electric-sql/pglite"
  },
  {
   "label": "Website",
   "href": "https://pglite.dev"
  }
 ],
 "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/electric-sql/pglite"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Nov 23, 2026. ",
   "src": "https://github.com/electric-sql/pglite"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "38 projects",
   "status": "info",
   "sub": "#16 of 120 in its category",
   "note": "Dependency in 38 public GitHub projects set up for AI coding agents that we scanned (0.6%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "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 PGlite does",
   "parts": [
    {
     "t": "prose",
     "text": "Run PostgreSQL in the browser or Node.js via WebAssembly with no external dependencies."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "PGlite popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "74",
       "of": "/ 100",
       "l": "Gid Score, #223 overall"
      },
      {
       "n": "44M",
       "l": "downloads a week, npm"
      },
      {
       "n": "16.4K",
       "l": "GitHub stars"
      },
      {
       "n": "38",
       "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 PGlite is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "PGlite is a dependency in 38 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.8% of the 4,867 JavaScript/TypeScript ones), #16 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 94; those are left out of every share on this page.",
      "The most used alternative in our scan is pg (298 projects).",
      "Projects that use it most often also use Zod (78.9%), postgres (42.1%), TypeScript (94.7%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "30 projects, 0.9%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "11 projects, 0.5%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "10 projects, 0.3%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "6 projects, 1.3%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 78.9% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 42.1% of its projects",
       "v": "postgres",
       "path": "tools/postgres/"
      },
      {
       "l": "In 94.7% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 39.5% of its projects",
       "v": "AI SDK",
       "path": "tools/ai/"
      },
      {
       "l": "In 39.5% of its projects",
       "v": "Drizzle ORM",
       "path": "tools/drizzle-orm/"
      },
      {
       "l": "In 36.8% of its projects",
       "v": "AWS SDK for JavaScript (S3)",
       "path": "tools/aws-sdk-client-s3/"
      },
      {
       "l": "In 36.8% of its projects",
       "v": "Drizzle Kit",
       "path": "tools/drizzle-kit/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "Playwright (JavaScript)",
       "path": "tools/playwright-test/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about PGlite",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Databases, ORMs and clients",
       "path": "tools/databases-orms/",
       "items": [
        {
         "text": "Prisma",
         "path": "tools/prisma/"
        },
        {
         "text": "Drizzle Kit",
         "path": "tools/drizzle-kit/"
        },
        {
         "text": "SQLAlchemy",
         "path": "tools/sqlalchemy/"
        },
        {
         "text": "psycopg2",
         "path": "tools/psycopg2-binary/"
        },
        {
         "text": "Alembic",
         "path": "tools/alembic/"
        },
        {
         "text": "Neon Serverless Driver",
         "path": "tools/neondatabase/"
        },
        {
         "text": "psycopg",
         "path": "tools/psycopg/"
        },
        {
         "text": "asyncpg",
         "path": "tools/asyncpg/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "PGlite",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 74",
        "44M/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": "Drizzle ORM",
       "why": "TypeScript ORM for SQL databases with type safety and zero-runtime overhead.",
       "path": "tools/drizzle-orm/",
       "facts": [
        "Apache-2.0",
        "Gid 86",
        "49.6M/wk"
       ]
      },
      {
       "name": "better-sqlite3",
       "why": "Fastest and simplest SQLite library for Node.js with synchronous API.",
       "path": "tools/better-sqlite3/",
       "facts": [
        "MIT",
        "Gid 72",
        "17.4M/wk"
       ]
      },
      {
       "name": "libSQL Client",
       "why": "TypeScript/JavaScript driver for libSQL databases with modern async/await support.",
       "path": "tools/libsql-client/",
       "facts": [
        "MIT",
        "Gid 55",
        "6.1M/wk"
       ]
      },
      {
       "name": "Mongoose",
       "why": "MongoDB object modeling library providing schema validation and query building.",
       "path": "tools/mongoose/",
       "facts": [
        "MIT",
        "Gid 73",
        "9.4M/wk"
       ]
      },
      {
       "name": "SQL.js",
       "why": "SQLite database compiled to JavaScript, run SQL in browser without server.",
       "path": "tools/sql-js/",
       "facts": [
        "MIT",
        "Gid 72",
        "7.2M/wk"
       ]
      },
      {
       "name": "sqlite3",
       "why": "Asynchronous, non-blocking SQLite3 database bindings for Node.js.",
       "path": "tools/sqlite3/",
       "facts": [
        "BSD-3-Clause",
        "Gid 58",
        "2.9M/wk"
       ]
      }
     ],
     "more": "Compare PGlite with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @electric-sql/pglite"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for PGlite yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @electric-sql/pglite"
  ],
  [
   "Category",
   "Databases, ORMs and clients"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "74.4"
  ],
  [
   "Rank in category",
   "#16 of 120"
  ],
  [
   "GitHub",
   "electric-sql/pglite"
  ],
  [
   "Last change",
   "Nov 23, 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/electric-sql.png"
}