{"repo":"alwaysnomads/better-hono","free":true,"listed":false,"github":"https://github.com/alwaysnomads/better-hono","clone":"git clone https://github.com/alwaysnomads/better-hono.git","description":"Minimal starter template using Hono, Better-Auth, Drizzle ORM, and Cloudflare Workers — powered by Bun.","language":"TypeScript","stars":373,"topics":["better-auth","cloudflare-workers","drizzle-orm","honojs"],"license":"MIT","category":"databases-storage","readme_excerpt":"Better-Hono Hono + Better-Auth + Drizzle + Cloudflare Workers A minimal template to kickstart projects with: - Hono – Fast web framework - Better Auth – Authentication system - Drizzle ORM – Database management - Cloudflare Workers – Edge deployment - Bun – Fast JavaScript runtime - Docker – Local database development Clean setup for authentication, database, and deployment. Getting Started 1. Clone the repository: 2. Install dependencies: 3. Setup your environment: - .env : Used by your application (e.g., in Drizzle). - .dev.vars : Used by Wrangler when running the local server. Edit both files with your environment variables. 4. Start the database (if needed): Or connect to a cloud database like Neon. Make sure your .env and .dev.vars point to the correct database URL. 5. Push database schema and generate types: 6. Start the development server: The development server runs on port 3000 by default for easier integration with Better-Auth, you can change it at the wrangler.jsonc file. OpenAPI documentation for Better-Auth is available at http://localhost:3000/api/auth/reference. You can remove the OpenAPI plugin if not needed by editing src/lib/auth.ts . Thanks to w3cj! This template is heavily inspired by w3cj's hono-open-api-starter, even using parts of their code. Make sure to check out their repository! Available Commands Command Description --------------------- ------------------------------------ bun run dev Start local server (Wrangler) bun run deploy Deploy to Cloudfla","default_branch":null,"files":null,"tree":[],"storefront":"/r/alwaysnomads","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alwaysnomads/better-hono/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."}