{"repo":"zpg6/better-auth-cloudflare","free":true,"listed":false,"github":"https://github.com/zpg6/better-auth-cloudflare","clone":"git clone https://github.com/zpg6/better-auth-cloudflare.git","description":"Seamlessly integrate better-auth with Cloudflare Workers, D1, Hyperdrive, KV, R2, and geolocation services. CLI for project generation, automated resource provisioning on Cloudflare, and database migrations. Supports Next.js, Hono, and more!","language":"TypeScript","stars":574,"topics":["better-auth","d1","nextjs","workers","workers-kv","opennextjs","drizzle","drizzle-orm","r2","cf"],"license":"MIT","category":"databases-storage","readme_excerpt":"better-auth-cloudflare Seamlessly integrate Better Auth with Cloudflare Workers, D1, Hyperdrive, KV, R2, and geolocation services. LIVE DEMOS : - OpenNextJS : https://better-auth-cloudflare.zpg6.workers.dev - Hono : https://better-auth-cloudflare-hono.zpg6.workers.dev Demo implementations are available in the examples/ directory for OpenNextJS ◆ and Hono 🔥 , along with recommended scripts for generating database schema, migrating, and more. The library is compatible with any framework that runs on Cloudflare Workers. Features - 🗄️ Database Integration : Support for D1 (SQLite), Postgres, and MySQL databases via Drizzle ORM, or native D1 without Drizzle. - 🚀 Hyperdrive Support : Connect to Postgres and MySQL databases through Cloudflare Hyperdrive. - 🔌 KV Storage Integration : Optionally use Cloudflare KV for secondary storage (e.g., session caching). - 📁 R2 File Storage : Upload, download, and manage user files with Cloudflare R2 object storage and database tracking. - 📍 Automatic Geolocation Tracking : Enrich user sessions with location data derived from Cloudflare. - 🌐 Cloudflare IP Detection : Utilize Cloudflare's IP detection headers out-of-the-box. - 🔍 Rich Client-Side Context : Access timezone, city, country, region, and more via the client plugin. - 📦 CLI : Tools for getting started quickly with Hono or Next.js, managing database schema, and more. Roadmap - [x] IP Detection - [x] Geolocation - [x] D1 - [x] Hyperdrive (Postgres/MySQL) - [x] KV - [x] R2 - [ ] Cl","default_branch":null,"files":null,"tree":[],"storefront":"/r/zpg6","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zpg6/better-auth-cloudflare/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}