开源的用户管理解决方案,自带前端组件和管理后台。
Go to file
Zai Shi 04599b40e5
Moved dialogs to shadcn & Improved auth methods dashboard design (#35)
* added sidebar

* add side-bar layout

* fixed small bugs, adding mobile sidebar

* fixed mobile sidebar

* added mobile breadcrumb

* improved project switcher order

* fixed eslint

* added typography

* added page layout, removed unused data

* new page layout

* removed unused files

* updated urls dialog

* added async switch

* fixed display bug

* speed up animation, reduced card shadow

* AsyncSwitch -> Switch, AsyncButton -> Button

* updated page layout

* updated typography

* fixed bugs

* fixed bugs

* improved user page layout

* added link component

* removed page loading indicators

* moved avatar to top right

* providers->auth-methods

* removed loading indicator

* updated auth methods layout

* updated oauth provider styling

* added new oauth providers setting design

* updated confirmation dialog

* fixed documentation link

* switched zod to yup

* added provider setting dialog

* fixed create project bug

* updated provider settings

* added form dialog

* added form dialog to domains

* improved etam settings page

* updated production mode

* fixed bugs

* reduced transition speed
2024-05-13 17:52:21 +02:00
.changeset Bump package versions 2024-04-21 15:40:13 +02:00
.github/workflows --frozen-lockfile 2024-05-05 18:28:27 +02:00
.vscode Move code (initial commit) 2024-02-28 14:35:30 +01:00
apps CRUD schemas (#28) 2024-05-12 20:29:14 +02:00
assets added dashbord to readme 2024-04-17 09:42:01 +02:00
docs Update GitHub link 2024-05-12 20:43:41 +02:00
eslint-configs Move code (initial commit) 2024-02-28 14:35:30 +01:00
packages Moved dialogs to shadcn & Improved auth methods dashboard design (#35) 2024-05-13 17:52:21 +02:00
.gitignore Move code (initial commit) 2024-02-28 14:35:30 +01:00
dependencies.compose.yaml Docker compose dependencies (#20) 2024-05-04 15:42:41 +02:00
LICENSE Update license files 2024-05-04 15:52:49 +02:00
package.json Prepend @stackframe/ to all package names 2024-05-09 16:17:49 +02:00
pnpm-lock.yaml Moved dialogs to shadcn & Improved auth methods dashboard design (#35) 2024-05-13 17:52:21 +02:00
pnpm-workspace.yaml added demo app, renamed nextjs folder to dev, added docusaurus to turbo 2024-02-28 18:08:23 +01:00
README.md Organizations & RBAC (#22) 2024-05-08 12:43:56 +02:00
turbo.json Basic Unit Tests (#15) 2024-04-24 14:24:56 +02:00
vercel.json Increase function timeout 2024-04-21 16:47:23 +02:00

Stack Logo

📘 Documentation | Demo | Website | Discord

Stack is an open-source, self-hostable, and highly customizable authentication and user management system.

We provide frontend and backend libraries for Next.js, React, and JavaScript. You can set it up in one minute and scale with the project as it grows.

Here are some of the components you get out-of-the-box:

Stack Sign Up Page

Here is the user/project management dashboard:

Stack Dashboard

Features

  • Composable React components & hooks
  • OAuth (Google, Facebook, GitHub, etc.)
  • Email and password authentication (with email verification and password reset)
  • Easy to set up with proxied providers (no need to sign up and create OAuth endpoints yourself on all the providers)
  • User management & analytics
  • User-associated metadata with client-/server-specific permissions
  • Out-of-the-box Dark/Light mode support
  • suports switching out the underlying UI library, support MUI Joy out of the box
  • 100% open-source!

Currently, only Next.js is supported, but we are working on adding other frameworks.

Vision

We all know how much overhead there is when starting a new project. Developers need to handle so many things that aren't even part of their core business, like user authentication, user profiles, payments, dashboards, hosting, and more. Our vision is to build a full-stack framework that handles all of this out-of-the-box with less than 10 minutes of setup, so developers can focus on what they really want to build. Authentication is the first step towards this vision.

Roadmap

  • Feature-rich email/notification system
  • React, React Native, and Vue.js support
  • Python backend library
  • SSO/SAML integration

Installation

To get started with Stack, you need to create a Next.js project using the App router. Then, you can install Stack by running the following command:

npm install @stackframe/stack

For setup, refer to our documentation.

Development

This is for you if you want to contribute to the Stack project.

Setup

Make sure you have pnpm installed alongside Node v20. Next, ensure you created .env.local files by copying .env in each sub-package in the packages folder and filling out the variables. You will need to start a Postgres database; you can do this with the following command:

docker run -it --rm -e POSTGRES_PASSWORD=password -p "5432:5432" postgres

Then:

pnpm install

# Run code generation (repeat this after eg. changing the Prisma schema)
pnpm run codegen

# After starting a Postgres database and filling the corresponding variables in .env.local, push the schema to the database:
# for production databases, use `deploy` instead. See: https://www.prisma.io/docs/orm/prisma-migrate/understanding-prisma-migrate/mental-model#prisma-migrate-in-a-staging-and-production-environment
pnpm run prisma:server migrate reset


# Start the dev server
pnpm run dev

You can also open Prisma Studio to see the database interface and edit data directly:

pnpm run prisma:server studio

Database migrations

If you make changes to the Prisma schema, you need to run the following command to create a migration:

pnpm run prisma:server migrate dev