{
 "kind": "tool",
 "slug": "polar-sh-better-auth",
 "path": "tools/polar-sh-better-auth/",
 "name": "Polar better-auth",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Auth and security libraries",
   "tools/auth-security/"
  ]
 ],
 "lead": "Polar integration for better-auth authentication framework.",
 "chips": [
  {
   "label": "Auth and security libraries",
   "path": "tools/auth-security/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @polar-sh/better-auth"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/polarsource/polar"
  }
 ],
 "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 GitHub.",
   "src": "https://github.com/polarsource/polar"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 20, 2026. ",
   "src": "https://github.com/polarsource/polar"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "6 projects",
   "status": "info",
   "sub": "#68 of 141 in its category",
   "note": "Dependency in 6 public GitHub projects set up for AI coding agents that we scanned (0.1%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "2 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 Polar better-auth does",
   "parts": [
    {
     "t": "prose",
     "text": "Polar integration for better-auth authentication framework."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Polar better-auth popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "46",
       "of": "/ 100",
       "l": "Gid Score, #2371 overall"
      },
      {
       "n": "53.1K",
       "l": "downloads a week, npm"
      },
      {
       "n": "10.5K",
       "l": "GitHub stars"
      },
      {
       "n": "6",
       "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 Polar better-auth is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Polar better-auth is a dependency in 6 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 58 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is NextAuth.js (150 projects).",
      "Projects that use it most often also use Polar SDK (100.0%), Better Auth (100.0%), Zod (100.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "5 projects, 0.2%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 100.0% of its projects",
       "v": "Polar SDK",
       "path": "tools/polar-sh-sdk/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "Better Auth",
       "path": "tools/better-auth/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 98.3% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 98.3% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 98.3% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 96.6% of its projects",
       "v": "TanStack Query",
       "path": "tools/tanstack-react-query/"
      },
      {
       "l": "In 96.6% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Polar better-auth",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "better-auth-best-practices: Configure Better Auth server and client, set up database adapters, manage sessions, add plugins, and handle environment variables. Use when",
        "better-auth: Implement authentication and authorization with Better Auth - a framework-agnostic TypeScript authentication framework. Features include ema"
       ]
      },
      {
       "title": "More in Auth and security libraries",
       "path": "tools/auth-security/",
       "items": [
        {
         "text": "bcryptjs",
         "path": "tools/bcryptjs/"
        },
        {
         "text": "jsonwebtoken",
         "path": "tools/jsonwebtoken/"
        },
        {
         "text": "cryptography",
         "path": "tools/cryptography/"
        },
        {
         "text": "PyJWT",
         "path": "tools/pyjwt/"
        },
        {
         "text": "jose",
         "path": "tools/jose/"
        },
        {
         "text": "Better Auth",
         "path": "tools/better-auth/"
        },
        {
         "text": "DOMPurify",
         "path": "tools/dompurify/"
        },
        {
         "text": "Helmet",
         "path": "tools/helmet/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Polar better-auth",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 46",
        "53.1K/wk"
       ]
      },
      {
       "name": "NextAuth.js",
       "why": "Complete open-source authentication solution designed for Next.js applications.",
       "path": "tools/next-auth/",
       "facts": [
        "ISC",
        "Gid 75",
        "9.4M/wk"
       ]
      },
      {
       "name": "Clerk",
       "why": "Modern authentication and user management SDK for Next.js and React.",
       "path": "tools/clerk/",
       "facts": [
        "MIT",
        "Gid 62",
        "4.1M/wk"
       ]
      },
      {
       "name": "Passport.js",
       "why": "Modular authentication middleware for Node.js supporting OAuth, JWT and local strategies.",
       "path": "tools/passport/",
       "facts": [
        "MIT",
        "Gid 69",
        "10.5M/wk"
       ]
      }
     ],
     "more": "Compare Polar better-auth with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @polar-sh/better-auth"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Polar better-auth yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @polar-sh/better-auth"
  ],
  [
   "Category",
   "Auth and security libraries"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "46.5"
  ],
  [
   "Rank in category",
   "#68 of 141"
  ],
  [
   "GitHub",
   "polarsource/polar"
  ],
  [
   "Last change",
   "Nov 24, 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/polarsource.png"
}