[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73518":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":44,"readmeContent":45,"aiSummary":46,"trendingCount":16,"starSnapshotCount":16,"syncStatus":47,"lastSyncTime":48,"discoverSource":49},73518,"stack-auth","hexclave\u002Fstack-auth","hexclave","Open-source Auth0\u002FClerk alternative","https:\u002F\u002Fstack-auth.com",null,"TypeScript",6803,515,16,8,0,22,39.14,"Other",false,"dev",true,[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"auth","auth0","authentication","clerk","cognito","email-password","firebase-auth","keycloak","login","magic-link","nextjs","oauth","password","react","session-management","shadcn","signin","social-login","supabase-auth","typescript","2026-06-12 02:03:14","[![Stack Logo](\u002F.github\u002Fassets\u002Flogo.png)](https:\u002F\u002Fstack-auth.com)\n\n[![Ask DeepWiki](https:\u002F\u002Fdeepwiki.com\u002Fbadge.svg)](https:\u002F\u002Fdeepwiki.com\u002Fstack-auth\u002Fstack-auth)\n\n\u003Ch3 align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fdocs.stack-auth.com\">📘 Docs\u003C\u002Fa>\n  | \u003Ca href=\"https:\u002F\u002Fstack-auth.com\u002F\">☁️ Hosted Version\u003C\u002Fa>\n  | \u003Ca href=\"https:\u002F\u002Fdemo.stack-auth.com\u002F\">✨ Demo\u003C\u002Fa>\n  | \u003Ca href=\"https:\u002F\u002Fdiscord.stack-auth.com\">🎮 Discord\u003C\u002Fa>\n\u003C\u002Fh4>\n\n# Stack Auth: The open-source auth platform\n\nStack Auth is a managed user authentication solution. It is developer-friendly and fully open-source (licensed under MIT and AGPL).\n\nStack Auth gets you started in just five minutes, after which you'll be ready to use all of its features as you grow your project. Our managed service is completely optional and you can export your user data and self-host, for free, at any time.\n\nWe support Next.js, React, and JavaScript frontends, along with any backend that can use our [REST API](https:\u002F\u002Fdocs.stack-auth.com\u002Fapi\u002Foverview). Check out our [setup guide](https:\u002F\u002Fdocs.stack-auth.com\u002Fdocs\u002Fnext\u002Fgetting-started\u002Fsetup) to get started.\n\n\u003Cdiv align=\"center\">\n\u003Cimg alt=\"Stack Auth Setup\" src=\".github\u002Fassets\u002Fcreate-project.gif\" width=\"400\" \u002F>\n\u003C\u002Fdiv>\n\n## Table of contents\n\n\u003C!-- START doctoc generated TOC please keep comment here to allow auto update -->\n\u003C!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n\n- [How is this different from X?](#how-is-this-different-from-x)\n- [✨ Features](#-features)\n- [📦 Installation & Setup](#-installation--setup)\n- [🌱 Some community projects built with Stack Auth](#-some-community-projects-built-with-stack-auth)\n  - [Templates](#templates)\n  - [Examples](#examples)\n- [🏗 Development & Contribution](#-development--contribution)\n  - [Requirements](#requirements)\n  - [Setup](#setup)\n  - [Useful commands](#useful-commands)\n- [❤ Contributors](#-contributors)\n\n\u003C!-- END doctoc generated TOC please keep comment here to allow auto update -->\n\n## How is this different from X?\n\nAsk yourself about `X`:\n\n- Is `X` open-source?\n- Is `X` developer-friendly, well-documented, and lets you get started in minutes?\n- Besides authentication, does `X` also do authorization and user management (see feature list below)?\n\nIf you answered \"no\" to any of these questions, then that's how Stack Auth is different from `X`.\n\n## ✨ Features\n\nTo get notified first when we add new features, please subscribe to [our newsletter](https:\u002F\u002Fstack-auth.beehiiv.com\u002Fsubscribe).\n\n| | |\n|-|:-:|\n| \u003Ch3>`\u003CSignIn\u002F>` and `\u003CSignUp\u002F>`\u003C\u002Fh3> Authentication components that support OAuth, password credentials, and magic links, with shared development keys to make setup faster. All components support dark\u002Flight modes. | \u003Cimg alt=\"Sign-in component\" src=\".github\u002Fassets\u002Fdark-light-mode.png\" width=\"250px\"> |\n| \u003Ch3>Idiomatic Next.js APIs\u003C\u002Fh3> We build on server components, React hooks, and route handlers. | ![Dark\u002Flight mode](.github\u002Fassets\u002Fcomponents.png) |\n| \u003Ch3>User dashboard\u003C\u002Fh3> Dashboard to filter, analyze, and edit users. Replaces the first internal tool you would have to build. | ![User dashboard](.github\u002Fassets\u002Fdashboard.png) |\n| \u003Ch3>Account settings\u003C\u002Fh3> Lets users update their profile, verify their e-mail, or change their password. No setup required. | \u003Cimg alt=\"Account settings component\" src=\".github\u002Fassets\u002Faccount-settings.png\" width=\"300px\"> |\n| \u003Ch3>Multi-tenancy & teams\u003C\u002Fh3> Manage B2B customers with an organization structure that makes sense and scales to millions. | \u003Cimg alt=\"Selected team switcher component\" src=\".github\u002Fassets\u002Fteam-switcher.png\" width=\"400px\"> |\n| \u003Ch3>Role-based access control\u003C\u002Fh3> Define an arbitrary permission graph and assign it to users. Organizations can create org-specific roles. | \u003Cimg alt=\"RBAC\" src=\".github\u002Fassets\u002Fpermissions.png\"  width=\"400px\"> |\n| \u003Ch3>OAuth Connections\u003C\u002Fh3>Beyond login, Stack Auth can also manage access tokens for third-party APIs, such as Outlook and Google Calendar. It handles refreshing tokens and controlling scope, making access tokens accessible via a single function call. | \u003Cimg alt=\"OAuth tokens\" src=\".github\u002Fassets\u002Fconnected-accounts.png\"  width=\"250px\"> |\n| \u003Ch3>Passkeys\u003C\u002Fh3> Support for passwordless authentication using passkeys, allowing users to sign in securely with biometrics or security keys across all their devices. | \u003Cimg alt=\"OAuth tokens\" src=\".github\u002Fassets\u002Fpasskeys.png\"  width=\"400px\"> |\n| \u003Ch3>Impersonation\u003C\u002Fh3> Impersonate users for debugging and support, logging into their account as if you were them. | \u003Cimg alt=\"Webhooks\" src=\".github\u002Fassets\u002Fimpersonate.png\"  width=\"350px\"> |\n| \u003Ch3>Webhooks\u003C\u002Fh3> Get notified when users use your product, built on Svix. | \u003Cimg alt=\"Webhooks\" src=\".github\u002Fassets\u002Fstack-webhooks.png\"  width=\"300px\"> |\n| \u003Ch3>Automatic emails\u003C\u002Fh3> Send customizable emails on triggers such as sign-up, password reset, and email verification, editable with a WYSIWYG editor. | \u003Cimg alt=\"Email templates\" src=\".github\u002Fassets\u002Femail-editor.png\"  width=\"400px\"> |\n| \u003Ch3>User session & JWT handling\u003C\u002Fh3> Stack Auth manages refresh and access tokens, JWTs, and cookies, resulting in the best performance at no implementation cost. | \u003Cimg alt=\"User button\" src=\".github\u002Fassets\u002Fuser-button.png\"  width=\"400px\"> |\n| \u003Ch3>M2M authentication\u003C\u002Fh3> Use short-lived access tokens to authenticate your machines to other machines. | \u003Cimg src=\".github\u002Fassets\u002Fm2m-auth.png\" alt=\"M2M authentication\"  width=\"400px\"> |\n\n\n## 📦 Installation & Setup\n\nTo install Stack Auth in your Next.js project (for React, JavaScript, or other frameworks, see our [complete documentation](https:\u002F\u002Fdocs.stack-auth.com)):\n\n1. Run Stack Auth's installation wizard with the following command:\n    ```bash\n    npx @stackframe\u002Fstack-cli@latest init\n    ```\n\n2. Then, create an account on the [Stack Auth dashboard](https:\u002F\u002Fapp.stack-auth.com\u002Fprojects), create a new project with an API key, and copy its environment variables into the .env.local file of your Next.js project:\n    ```\n    NEXT_PUBLIC_STACK_PROJECT_ID=\u003Cyour-project-id>\n    NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY=\u003Cyour-publishable-client-key>\n    STACK_SECRET_SERVER_KEY=\u003Cyour-secret-server-key>\n    ```\n3. That's it! You can run your app with `npm run dev` and go to [http:\u002F\u002Flocalhost:3000\u002Fhandler\u002Fsignup](http:\u002F\u002Flocalhost:3000\u002Fhandler\u002Fsignup) to see the sign-up page. You can also check out the account settings page at [http:\u002F\u002Flocalhost:3000\u002Fhandler\u002Faccount-settings](http:\u002F\u002Flocalhost:3000\u002Fhandler\u002Faccount-settings).\n\nCheck out the [documentation](https:\u002F\u002Fdocs.stack-auth.com\u002Fgetting-started\u002Fsetup) for a more detailed guide.\n\n## 🌱 Some community projects built with Stack Auth\n\nHave your own? Happy to feature it if you create a PR or message us on [Discord](https:\u002F\u002Fdiscord.stack-auth.com).\n\n### Templates\n- [Stack Auth Template by Stack Auth Team](https:\u002F\u002Fgithub.com\u002Fstack-auth\u002Fstack-auth-template)\n- [Next SaaSkit by wolfgunblood](https:\u002F\u002Fgithub.com\u002Fwolfgunblood\u002Fnextjs-saaskit)\n- [SaaS Boilerplate by Robin Faraj](https:\u002F\u002Fgithub.com\u002Frobinfaraj\u002Fsaas-boilerplate)\n\n### Examples\n- [Stack Auth Example by career-tokens](https:\u002F\u002Fgithub.com\u002Fcareer-tokens\u002FStackYCAuth)\n- [Stack Auth Demo by the Stack Auth team](https:\u002F\u002Fgithub.com\u002Fstack-auth\u002Fstack-auth\u002Ftree\u002Fdev\u002Fexamples\u002Fdemo)\n- [Stack Auth E-Commerce Example by the Stack Auth team](https:\u002F\u002Fgithub.com\u002Fstack-auth\u002Fstack-auth\u002Ftree\u002Fdev\u002Fexamples\u002Fe-commerce)\n\n## 🏗 Development & Contribution\n\nThis is for you if you want to contribute to the Stack Auth project or run the Stack Auth dashboard locally.\n\n**Important**: Please read the [contribution guidelines](CONTRIBUTING.md) carefully and join [our Discord](https:\u002F\u002Fdiscord.stack-auth.com) if you'd like to help.\n\n### Requirements\n\n- Node v20\n- pnpm v9\n- Docker\n\n### Setup\n\nNote: 24GB+ of RAM is recommended for a smooth development experience.\n\nIn a new terminal:\n\n```sh\npnpm install\n\n# Build the packages and generate code. We only need to do this once, as `pnpm dev` will do this from now on\npnpm build:packages\npnpm codegen\n\n# Start the dependencies (DB, Inbucket, etc.) as Docker containers, seeding the DB with the Prisma schema\n# Make sure you have Docker (or OrbStack) installed and running\npnpm restart-deps\n\n# Start the dev server\npnpm dev\n\n# In a different terminal, run tests in watch mode\npnpm test # useful: --no-watch (disables watch mode) and --bail 1 (stops after the first failure) \n```\n\nYou can now open the dev launchpad at [http:\u002F\u002Flocalhost:8100](http:\u002F\u002Flocalhost:8100). From there, you can navigate to the dashboard at [http:\u002F\u002Flocalhost:8101](http:\u002F\u002Flocalhost:8101), API on port 8102, demo on port 8103, docs on port 8104, Inbucket (e-mails) on port 8105, and Prisma Studio on port 8106. See the dev launchpad for a list of all running services.\n\nYour IDE may show an error on all `@stackframe\u002FXYZ` imports. To fix this, simply restart the TypeScript language server; for example, in VSCode you can open the command palette (Ctrl+Shift+P) and run `Developer: Reload Window` or `TypeScript: Restart TS server`.\n\nPre-populated .env files for the setup below are available and used by default in `.env.development` in each of the packages. However, if you're creating a production build (eg. with `pnpm run build`), you must supply the environment variables manually (see below).\n\n### Useful commands\n\n```sh\n# NOTE:\n# Please see the dev launchpad (default: http:\u002F\u002Flocalhost:8100) for a list of all running services.\n\n# Installation commands\npnpm install: Installs dependencies\n\n# Types & linting commands\npnpm typecheck: Runs the TypeScript type checker. May require a build or dev server to run first.\npnpm lint: Runs the ESLint linter. Optionally, pass `--fix` to fix some of the linting errors. May require a build or dev server to run first.\n\n# Build commands\npnpm build: Builds all projects, including apps, packages, examples, and docs. Also runs code-generation tasks. Before you can run this, you will have to copy all `.env.development` files in the folders to `.env.production.local` or set the environment variables manually.\npnpm build:packages: Builds all the npm packages.\npnpm codegen: Runs all the code-generation tasks, eg. Prisma client and OpenAPI docs generation.\n\n# Development commands\npnpm dev: Runs the development servers of the main projects, excluding most examples. On the first run, requires the packages to be built and codegen to be run. After that, it will watch for file changes (including those in code-generation files). If you have to restart the development server for anything, that is a bug that you can report.\npnpm dev:full: Runs the development servers for all projects, including examples.\npnpm dev:basic: Runs the development servers only for the necessary services (backend and dashboard). Not recommended for most users, upgrade your machine instead.\n\n# Environment commands\npnpm start-deps: Starts the Docker dependencies (DB, Inbucket, etc.) as Docker containers, and initializes them with the seed script & migrations. Note: The started dependencies will be visible on the dev launchpad (port 8100 by default).\npnpm stop-deps: Stops the Docker dependencies (DB, Inbucket, etc.) and deletes the data on them.\npnpm restart-deps: Stops and starts the dependencies.\n\n# Database commands\npnpm db:migration-gen: Currently not used. Please generate Prisma migrations manually (or with AI).\npnpm db:reset: Resets the database to the initial state. Run automatically by `pnpm start-deps`.\npnpm db:init: Initializes the database with the seed script & migrations. Run automatically by `pnpm db:reset`.\npnpm db:seed: Re-seeds the database with the seed script. Run automatically by `pnpm db:init`.\npnpm db:migrate: Runs the migrations. Run automatically by `pnpm db:init`.\n\n# Testing commands\npnpm test \u003Cfile-filters>: Runs the tests. Pass `--bail 1` to make the test only run until the first failure. Pass `--no-watch` to run the tests once instead of in watch mode.\n\n# Various commands\npnpm explain-query: Paste a SQL query to get an explanation of the query plan, helping you debug performance issues.\npnpm verify-data-integrity: Verify the integrity of the data in the database by running a bunch of integrity checks. This should never fail at any point in time (unless you messed with the DB manually).\n```\n\nNote: When working with AI, you should keep a terminal tab with the dev server open so the AI can run queries against it.\n\n## ❤ Contributors\n\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fstack-auth\u002Fstack-auth\u002Fgraphs\u002Fcontributors\">\n  \u003Cimg src=\"https:\u002F\u002Fcontrib.rocks\u002Fimage?repo=stack-auth\u002Fstack&columns=9\" width=\"100%\" \u002F>\n\u003C\u002Fa>\n","Stack Auth 是一个开源的身份验证平台，旨在作为Auth0\u002FClerk的替代方案。它提供了包括OAuth、密码认证和魔法链接等多种登录方式，并且支持Next.js、React等前端框架及任何可以使用其REST API的后端技术。项目采用TypeScript编写，强调开发者友好性和文档完善性，使得用户能在五分钟内快速上手。此外，Stack Auth还提供了一个可选的托管服务，允许用户随时导出数据并自行托管。此项目非常适合需要灵活身份验证解决方案的应用场景，无论是个人开发者还是企业级应用都能从中受益。",2,"2026-06-01 03:37:11","high_star"]