{
 "kind": "tool",
 "slug": "better-sqlite3",
 "path": "tools/better-sqlite3/",
 "name": "better-sqlite3",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Databases, ORMs and clients",
   "tools/databases-orms/"
  ]
 ],
 "lead": "Fastest and simplest SQLite library for Node.js with synchronous API.",
 "chips": [
  {
   "label": "Databases, ORMs and clients",
   "path": "tools/databases-orms/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install better-sqlite3"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/WiseLibs/better-sqlite3"
  },
  {
   "label": "Website",
   "href": "http://github.com/WiseLibs/better-sqlite3"
  }
 ],
 "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/WiseLibs/better-sqlite3"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 14, 2026",
   "note": "Latest GitHub release Nov 14, 2026. ",
   "src": "https://github.com/WiseLibs/better-sqlite3"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "151 projects",
   "status": "info",
   "sub": "#6 of 120 in its category",
   "note": "Dependency in 151 public GitHub projects set up for AI coding agents that we scanned (2.4%).",
   "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 better-sqlite3 does",
   "parts": [
    {
     "t": "prose",
     "text": "Fastest and simplest SQLite library for Node.js with synchronous API."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "better-sqlite3 popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "72",
       "of": "/ 100",
       "l": "Gid Score, #294 overall"
      },
      {
       "n": "17.4M",
       "l": "downloads a week, npm"
      },
      {
       "n": "7,558",
       "l": "GitHub stars"
      },
      {
       "n": "151",
       "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 better-sqlite3 is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "better-sqlite3 is a dependency in 151 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.1% of the 4,867 JavaScript/TypeScript ones), #6 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 470; 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 Vitest (55.6%), tsx (45.7%), TypeScript (82.8%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "91 projects, 2.8%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "72 projects, 2.4%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "55 projects, 2.3%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "16 projects, 3.4%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "15 projects, 3.2%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "14 projects, 4.2%",
       "v": "OpenClaw",
       "path": "agents/openclaw/"
      },
      {
       "l": "14 projects, 4.1%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "11 projects, 3.9%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 55.6% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 45.7% of its projects",
       "v": "tsx",
       "path": "tools/tsx/"
      },
      {
       "l": "In 82.8% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 56.3% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 31.8% of its projects",
       "v": "Model Context Protocol SDK (JavaScript)",
       "path": "tools/modelcontextprotocol/"
      },
      {
       "l": "In 25.2% of its projects",
       "v": "Drizzle ORM",
       "path": "tools/drizzle-orm/"
      },
      {
       "l": "In 24.5% of its projects",
       "v": "Drizzle Kit",
       "path": "tools/drizzle-kit/"
      },
      {
       "l": "In 57.0% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about better-sqlite3",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/JoshuaWise",
        "Patreon: https://patreon.com/joshuawise",
        "Own page: https://www.paypal.me/joshuathomaswise",
        "9 GitHub sponsors"
       ]
      },
      {
       "title": "More in Databases, ORMs and clients",
       "path": "tools/databases-orms/",
       "items": [
        {
         "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/"
        },
        {
         "text": "aiosqlite",
         "path": "tools/aiosqlite/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "better-sqlite3",
       "me": true,
       "facts": [
        "MIT",
        "Gid 72",
        "17.4M/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": "Prisma",
       "why": "Modern ORM with intuitive schema, migrations, and type-safe database queries.",
       "path": "tools/prisma/",
       "facts": [
        "Apache-2.0",
        "Gid 64",
        "26M/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"
       ]
      },
      {
       "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 better-sqlite3 with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install better-sqlite3"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for better-sqlite3 yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm better-sqlite3"
  ],
  [
   "Category",
   "Databases, ORMs and clients"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "72.4"
  ],
  [
   "Rank in category",
   "#6 of 120"
  ],
  [
   "GitHub",
   "WiseLibs/better-sqlite3"
  ],
  [
   "Last change",
   "Nov 14, 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/wiselibs.png"
}