{"library":"mikro-orm-better-auth","type":"library","category":null,"description":"mikro-orm-better-auth is an adapter for the 'better-auth' authentication library, specifically designed to integrate with MikroORM. It provides a robust database layer for better-auth, abstracting common CRUD operations and transactional support through MikroORM's `EntityManager`. A key differentiator is its `createSchema` implementation, which leverages `ts-morph` to generate MikroORM entity files automatically. These generated entities are intelligently patched in-place on regeneration, preserving user-owned code like custom imports, decorators, methods, and comments, while only updating generator-managed fields and decorators. The current stable version is 1.1.1, released in March 2026, indicating active development with a focus on stability and feature enhancements. It is primarily SQL-oriented, utilizing MikroORM's SQL entity manager, and defers native join support for future development.","language":"javascript","status":"active","version":"1.1.1","tags":["javascript","better-auth","mikro-orm","adapter","authentication","typescript"],"install":[{"cmd":"npm install mikro-orm-better-auth","imports":["import { mikroOrmAdapter } from 'mikro-orm-better-auth';","import { betterAuth } from 'better-auth';","import { RequestContext } from '@mikro-orm/core';"]},{"cmd":"yarn add mikro-orm-better-auth","imports":[]},{"cmd":"pnpm add mikro-orm-better-auth","imports":[]}],"homepage":null,"github":"https://github.com/xudongcc/mikro-orm-better-auth","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mikro-orm-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/mikro-orm-better-auth/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}