{
 "kind": "tool",
 "slug": "sql-js",
 "path": "tools/sql-js/",
 "name": "SQL.js",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Databases, ORMs and clients",
   "tools/databases-orms/"
  ]
 ],
 "lead": "SQLite database compiled to JavaScript, run SQL in browser without server.",
 "chips": [
  {
   "label": "Databases, ORMs and clients",
   "path": "tools/databases-orms/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install sql.js"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/sql-js/sql.js"
  },
  {
   "label": "Website",
   "href": "http://github.com/sql-js/sql.js"
  }
 ],
 "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/sql-js/sql.js"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 19, 2026",
   "note": "Latest GitHub release Nov 19, 2026. ",
   "src": "https://github.com/sql-js/sql.js"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "33 projects",
   "status": "info",
   "sub": "#18 of 120 in its category",
   "note": "Dependency in 33 public GitHub projects set up for AI coding agents that we scanned (0.5%).",
   "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 SQL.js does",
   "parts": [
    {
     "t": "prose",
     "text": "SQLite database compiled to JavaScript, run SQL in browser without server."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "SQL.js popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "72",
       "of": "/ 100",
       "l": "Gid Score, #324 overall"
      },
      {
       "n": "7.2M",
       "l": "downloads a week, npm"
      },
      {
       "n": "13.7K",
       "l": "GitHub stars"
      },
      {
       "n": "33",
       "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 SQL.js is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "SQL.js is a dependency in 33 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.7% of the 4,867 JavaScript/TypeScript ones), #18 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 164; those are left out of every share on this page.",
      "The most used alternative in our scan is better-sqlite3 (151 projects).",
      "Projects that use it most often also use Express (42.4%), Ajv (39.4%), c8 (39.4%).",
      "It is more common in projects set up for Kiro (6.4%) than for Cursor (0.6%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "26 projects, 0.8%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "23 projects, 0.8%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "14 projects, 3.0%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "14 projects, 0.6%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "9 projects, 6.4%",
       "v": "Kiro",
       "path": "agents/kiro/"
      },
      {
       "l": "8 projects, 2.3%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "8 projects, 1.7%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "6 projects, 1.8%",
       "v": "OpenClaw",
       "path": "agents/openclaw/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 42.4% of its projects",
       "v": "Express",
       "path": "tools/express/"
      },
      {
       "l": "In 39.4% of its projects",
       "v": "Ajv",
       "path": "tools/ajv/"
      },
      {
       "l": "In 39.4% of its projects",
       "v": "c8",
       "path": "tools/c8/"
      },
      {
       "l": "In 39.4% of its projects",
       "v": "uuid",
       "path": "tools/uuid/"
      },
      {
       "l": "In 36.4% of its projects",
       "v": "Model Context Protocol SDK (JavaScript)",
       "path": "tools/modelcontextprotocol/"
      },
      {
       "l": "In 30.3% of its projects",
       "v": "Axios",
       "path": "tools/axios/"
      },
      {
       "l": "In 30.3% of its projects",
       "v": "bcryptjs",
       "path": "tools/bcryptjs/"
      },
      {
       "l": "In 30.3% of its projects",
       "v": "js-yaml",
       "path": "tools/js-yaml/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about SQL.js",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "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": "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/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "SQL.js",
       "me": true,
       "facts": [
        "MIT",
        "Gid 72",
        "7.2M/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": "PGlite",
       "why": "Run PostgreSQL in the browser or Node.js via WebAssembly with no external dependencies.",
       "path": "tools/electric-sql-pglite/",
       "facts": [
        "Apache-2.0",
        "Gid 74",
        "44M/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 SQL.js with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install sql.js"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for SQL.js yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm sql.js"
  ],
  [
   "Category",
   "Databases, ORMs and clients"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "71.5"
  ],
  [
   "Rank in category",
   "#18 of 120"
  ],
  [
   "GitHub",
   "sql-js/sql.js"
  ],
  [
   "Last change",
   "Nov 19, 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/sql-js.png"
}