https://github.com/pandas9/openauth-hono-nextjs-hyperdrive
Boilerplate for OpenAuth, Next.js, Hono, Hyperdrive, KV and Cloudflare Pages
https://github.com/pandas9/openauth-hono-nextjs-hyperdrive
cloudflare cloudflare-pages cloudflare-workers hono honojs hyperdrive nextjs openauth
Last synced: 6 months ago
JSON representation
Boilerplate for OpenAuth, Next.js, Hono, Hyperdrive, KV and Cloudflare Pages
- Host: GitHub
- URL: https://github.com/pandas9/openauth-hono-nextjs-hyperdrive
- Owner: pandas9
- Created: 2024-12-15T09:10:08.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-01-11T16:00:07.000Z (10 months ago)
- Last Synced: 2025-03-31T07:44:52.839Z (7 months ago)
- Topics: cloudflare, cloudflare-pages, cloudflare-workers, hono, honojs, hyperdrive, nextjs, openauth
- Language: TypeScript
- Homepage:
- Size: 529 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Boilerplate for OpenAuth, Next.js, Hono, Hyperdrive, KV and Cloudflare Pages
# Note
When I built this openauth wasn't a package on npm, you can safely delete it and just install it from npm
## What's included?
- Monorepo
- RPC, share API specifications between the server and the client
- Drizzle ORM
- OpenAuth
- Hono
- Hyperdrive
- KV
- Next.js
- Cloudflare Pages
- Rate limiting
- R2 file upload
## Setup
```bash
pnpm i
cd packages/openauth
bun run build
cd server
pnpm migrate
```
## Run
```bash
pnpm -r --parallel dev
```
## Recommended
- Use trigger.dev for more complex tasks such as video processing it's also great for queues https://trigger.dev/docs/queue-concurrency
## Why Cloudflare?
- Cheap and reliable
- Fast
- Easy to deploy
- Easy to manage
- Easy to scale
- Easy to use
## Why Hono?
- Fast
- Easy to use
- Better than Next.js API routes