Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

A serverless API starter on Cloudflare Workers with Hono, Drizzle ORM, and Neon Postgres—Type-safe schema, edge-first routing, and zero-cold-start DX.

License

Notifications You must be signed in to change notification settings

pg56714/hono-drizzle-neon-starter

Repository files navigation

hono-drizzle-neon-starter

A serverless API starter on Cloudflare Workers with Hono, Drizzle ORM, and Neon Postgres—Type-safe schema, edge-first routing, and zero-cold-start DX.

repo preview

bun install
bun run dev
bun run build
bun run preview
bun run deploy

bun i zod
bun i @hono/zod-validator

zod → The core validation library (for defining schemas).

@hono/zod-validator → Hono’s glue code that connects those schemas to route requests.

File creation order: index -> book -> client

connect to neon postgresql

bun i drizzle-orm @neondatabase/serverless dotenv
bun i -D drizzle-kit
bun run db:generate to generate the schema
bun run db:migrate to migrate the schema

About

A serverless API starter on Cloudflare Workers with Hono, Drizzle ORM, and Neon Postgres—Type-safe schema, edge-first routing, and zero-cold-start DX.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published