{"id":26869387,"url":"https://github.com/Zastinian/better-auth-typeorm","last_synced_at":"2025-03-31T06:01:26.669Z","repository":{"id":284677015,"uuid":"955713557","full_name":"Zastinian/better-auth-typeorm","owner":"Zastinian","description":"A typeorm adapter for better-auth","archived":false,"fork":false,"pushed_at":"2025-03-27T05:12:25.000Z","size":0,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T05:24:50.932Z","etag":null,"topics":["adapter","better-auth","typeorm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zastinian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-27T04:35:39.000Z","updated_at":"2025-03-27T05:17:12.000Z","dependencies_parsed_at":"2025-03-27T05:34:54.605Z","dependency_job_id":null,"html_url":"https://github.com/Zastinian/better-auth-typeorm","commit_stats":null,"previous_names":["zastinian/better-auth-typeorm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zastinian%2Fbetter-auth-typeorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zastinian%2Fbetter-auth-typeorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zastinian%2Fbetter-auth-typeorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zastinian%2Fbetter-auth-typeorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zastinian","download_url":"https://codeload.github.com/Zastinian/better-auth-typeorm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423731,"owners_count":20774820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adapter","better-auth","typeorm"],"created_at":"2025-03-31T06:01:25.655Z","updated_at":"2025-03-31T06:01:26.616Z","avatar_url":"https://github.com/Zastinian.png","language":"TypeScript","funding_links":[],"categories":["Adapters"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cp\u003e\n    \u003cstrong\u003e📦 @hedystia/better-auth-typeorm\u003c/strong\u003e\n  \u003c/p\u003e\n\n  \u003cp\u003e\n    \u003cstrong\u003eTypeORM adapter for Better Auth - Powerful database integration for your auth system! 🚀\u003c/strong\u003e\n  \u003c/p\u003e\n\n  \u003cp\u003e\n    \u003ca href=\"https://www.npmjs.com/package/@hedystia/better-auth-typeorm\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@hedystia/better-auth-typeorm.svg?style=flat-square\" alt=\"npm version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/@hedystia/better-auth-typeorm\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/@hedystia/better-auth-typeorm.svg?style=flat-square\" alt=\"npm downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Zastinian/better-auth-typeorm/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/Zastinian/better-auth-typeorm.svg?style=flat-square\" alt=\"license\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## 🌟 Features\n\n- 🗄️ **Database Agnostic**: Works with all TypeORM-supported databases (MySQL, PostgreSQL, SQLite, etc.)\n- 🔄 **CRUD Operations**: Full support for create, read, update, and delete operations\n- ⚡ **Efficient Queries**: Built-in pagination, sorting, and filtering support\n- 🔒 **Secure Operations**: Proper transaction handling and error management\n\n## 🚀 Quick Start\n\n1. Install the package:\n\n```bash\nnpm install @hedystia/better-auth-typeorm typeorm\n```\n\n2. Create your TypeORM DataSource configuration:\n\n```typescript\nimport { DataSource } from \"typeorm\";\nimport { migrations } from \"@hedystia/better-auth-typeorm\";\n\nexport const dataSource = new DataSource({\n  type: \"mysql\",\n  host: \"localhost\",\n  port: 3306,\n  username: \"your_username\",\n  password: \"your_password\",\n  database: \"your_database\",\n  migrations: [...migrations],\n  migrationsRun: true,\n});\n\nawait dataSource.initialize();\n```\n\n3. Set up your Better Auth configuration:\n\n```typescript\nimport { betterAuth } from \"better-auth\";\nimport { typeormAdapter } from \"@hedystia/better-auth-typeorm\";\nimport { dataSource } from \"./data-source\";\n\nexport const auth = betterAuth({\n  database: typeormAdapter(dataSource),\n});\n```\n\n## 🌟 Why use this adapter?\n\n- **Seamless Integration**: Direct mapping between Better Auth entities and TypeORM\n- **Flexible Database Support**: Use with any TypeORM-supported database\n- **Production Ready**: Built-in error handling and transaction support\n- **Performance Optimized**: Efficient query building and data transformation\n\n## 📝 License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n## 🙏 Acknowledgements\n\n- [TypeORM](https://typeorm.io/)\n- [Better Auth](https://github.com/better-auth/better-auth)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZastinian%2Fbetter-auth-typeorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FZastinian%2Fbetter-auth-typeorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZastinian%2Fbetter-auth-typeorm/lists"}