{"library":"surreal-better-auth","type":"library","category":null,"description":"This package provides an official adapter for integrating SurrealDB with the Better Auth authentication library. It enables `better-auth` to persist user and session data within a SurrealDB instance, leveraging its capabilities for authentication flows. The current stable version is `1.0.0`, with a `2.0.0-beta` series actively under development, indicating a continuous release cadence. A key differentiator is its compliance with `better-auth`'s `createAdapter` utility, ensuring full compatibility with core features like CLI-based schema generation. It also offers advanced ID generation options, including `sdk.UUIDv4` and `sdk.UUIDv7`, providing flexibility in how records are identified within SurrealDB. The library is designed for modern JavaScript/TypeScript environments, requiring Node.js >=20.0.0 or Bun >=1.2.0, and relies on peer dependencies for `surrealdb` and `better-auth`.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","adapter","auth","authentication","database","better-auth","better-auth-adapter","surreal-better-auth","surrealdb-better-auth","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install surreal-better-auth","imports":["import { createSurrealDBAdapter } from 'surreal-better-auth';","import type { SurrealDBAdapterOptions } from 'surreal-better-auth';","import type { BetterAuthAdapter } from 'better-auth';"]},{"cmd":"yarn add surreal-better-auth","imports":[]},{"cmd":"pnpm add surreal-better-auth","imports":[]}],"homepage":null,"github":"https://github.com/oskar-gmerek/surreal-better-auth","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/surreal-better-auth","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/surreal-better-auth/compatibility"}}