This is a collection of plugins for Better Auth that were built by Nexirift with the intention of being used with Cosmos.
- Node.js v22.13.0 or greater
- Bun v1.2.2 or greater
- Local NPM registry
Our internal packages are not hosted on the public NPM registry, such as @nexirift/db. To use our internal projects, you will need to set up a local NPM registry. During our testing, we noticed that Next.js and shadcn/ui don't like Bun's linked packages.
- Install Verdaccio:
bun i -g verdaccio - Start the Verdaccio server locally:
verdaccio - Create an account:
bunx npm adduser --registry http://localhost:4873- Example:
developer|P@ssw0rd|developer@nexirift.com
- Example:
- Clone any
@nexirift/*packages using Git - Run
bun publishon the cloned repositories
More information: https://verdaccio.org/docs/setup-bun
- Clone this repository:
git clone https://github.com/Nexirift/better-auth-plugins.git - Install dependencies with
bun install - Build the source code using
bun run build