MCPcopy Create free account
hub / github.com/TheBinaryGuy/next-hono-lucia

github.com/TheBinaryGuy/next-hono-lucia @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
76 symbols 321 edges 73 files ⚖ MIT 0 documented · 0% updated 16mo ago★ 347

Browse by type

Functions 69 Types & classes 7
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Hono x Lucia

This is a Next.js template that uses Hono as the API framework and Lucia for authentication. This also uses hono's Zod to OpenAPI package to generate OpenAPI schema available at /api/swagger.json and the editor / playground at /api/scalar.

Uses:

Getting Started (Development Environment)

  • Clone this template using:
pnpm create next-app your-app-name -e https://github.com/TheBinaryGuy/next-hono-lucia
  • Create a database on your local postgres instance called example.
  • Then run the following commands:
cd your-app-name
pnpm db:migrate
pnpm dev
  • That's it!

Environment Variables

Name Description
NEXT_PUBLIC_DOMAIN The domain of the website, defaults to localhost:3000
DATABASE_URL Postgres connection string, defaults to postgres://postgres@localhost/example
EMAIL_FROM Email from address, defaults to "Example hey@example.com"
EMAIL_PROVIDER Email provider, console, smtp, resend, default is console
RESEND_API_KEY If email provider is resend, get your key from resend.com
SMTP_HOST If email provider is smtp
SMTP_PORT If email provider is smtp, defaults to 587
SMTP_USERNAME If email provider is smtp
SMTP_PASSWORD If email provider is smtp
SMTP_SECURE If email provider is smtp, true or 1, defaults to true
STANDALONE If you want standalone output, set this to 1, if you are using the provided Dockerfile then this is already taken care of, defaults to 0

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 68
Interface 5
Class 2
Method 1

Languages

TypeScript100%

Modules by API surface

src/components/ui/form.tsx7 symbols
src/lib/utils.server.tsx6 symbols
src/components/ui/card.tsx6 symbols
src/components/ui/input-otp.tsx4 symbols
src/server/error.ts3 symbols
src/lib/routes.ts3 symbols
src/components/ui/sheet.tsx3 symbols
src/components/theme-toggle.tsx3 symbols
src/components/auth-provider.tsx3 symbols
src/lib/utils.ts2 symbols
src/hooks/use-mobile.tsx2 symbols
src/components/ui/sidebar.tsx2 symbols

For agents

$ claude mcp add next-hono-lucia \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page