<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/build-a-serverless-api-using-cloudflare-workers-drizzle-orm-and-neon-crasia3jh" -->

---
title: Build a serverless API using Cloudflare Workers, Drizzle...
description: Step-by-step guide to building and deploying a serverless REST API using Cloudflare Workers, Hono.js, Drizzle ORM, and Neon (serverless Postgres). Covers...
canonical: https://daily.dev/posts/build-a-serverless-api-using-cloudflare-workers-drizzle-orm-and-neon-crasia3jh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Build a serverless API using Cloudflare Workers, Drizzle ORM, and Neon | daily.dev
og:description: Step-by-step guide to building and deploying a serverless REST API using Cloudflare Workers, Hono.js, Drizzle ORM, and Neon (serverless Postgres). Covers...
og:url: https://daily.dev/posts/build-a-serverless-api-using-cloudflare-workers-drizzle-orm-and-neon-crasia3jh
og:image: https://api.daily.dev/og/posts/CRAsIA3Jh.png
og:image:alt: Build a serverless API using Cloudflare Workers, Drizzle ORM, and Neon
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Build a serverless API using Cloudflare Workers, Drizzle ORM, and Neon

**[Neon](https://daily.dev/sources/neontech)** · 8 min read · 0 upvotes · 0 comments

## Summary

Step-by-step guide to building and deploying a serverless REST API using Cloudflare Workers, Hono.js, Drizzle ORM, and Neon (serverless Postgres). Covers project setup with create-cloudflare-cli, defining a database schema in TypeScript, generating and applying migrations with drizzle-kit, connecting to Neon from a Worker, and deploying with wrangler. Also shows how to use the Neon integration on Cloudflare to manage database credentials automatically.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://neon.com/blog/api-cf-drizzle-neon>

## Similar posts on daily.dev

- [Deploying Hono on Cloudflare Workers](https://daily.dev/posts/deploying-hono-on-cloudflare-workers-jkeddleft) · Flavio Copes · 1 upvotes · 0 comments
- [Astro SSR with D1 and Drizzle ORM](https://daily.dev/posts/astro-ssr-with-d1-and-drizzle-orm-mmodl4htl) · Flavio Copes · 0 upvotes · 0 comments
- [Neon for Herdr: A Neon pane in your Herdr workspace](https://daily.dev/posts/neon-for-herdr-a-neon-pane-in-your-herdr-workspace-9sfahsszl) · Neon · 19 upvotes · 1 comments
- [How to Deploy a Full-Stack Next.js App on Cloudflare Workers with GitHub Actions CI/CD](https://daily.dev/posts/how-to-deploy-a-full-stack-next-js-app-on-cloudflare-workers-with-github-actions-ci-cd-brfs1cbrn) · freeCodeCamp · 2 upvotes · 0 comments
- [Integrating Postgres and Auth the Easy Way: Daisy’s Neon Setup](https://daily.dev/posts/integrating-postgres-and-auth-the-easy-way-daisy-s-neon-setup-2kwtolnxo) · Neon · 0 upvotes · 0 comments

---

Tags: [#serverless](https://daily.dev/tags/serverless), [#cloudflare](https://daily.dev/tags/cloudflare)

[View this post on daily.dev](https://daily.dev/posts/build-a-serverless-api-using-cloudflare-workers-drizzle-orm-and-neon-crasia3jh)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Build a serverless API using Cloudflare Workers, Drizzle ORM, and Neon","url":"https://daily.dev/posts/build-a-serverless-api-using-cloudflare-workers-drizzle-orm-and-neon-crasia3jh","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/build-a-serverless-api-using-cloudflare-workers-drizzle-orm-and-neon-crasia3jh"},"datePublished":"2026-07-09T06:57:54.417Z","dateModified":"2026-07-09T07:06:05.752Z","description":"Step-by-step guide to building and deploying a serverless REST API using Cloudflare Workers, Hono.js, Drizzle ORM, and Neon (serverless Postgres). Covers...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7f894e6e89058849e572ec5496021f4e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7f894e6e89058849e572ec5496021f4e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Neon","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Neon","logo":"https://media.daily.dev/image/upload/s--65EDghou--/f_auto/v1724339118/logos/neontech","url":"https://daily.dev/sources/neontech"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/build-a-serverless-api-using-cloudflare-workers-drizzle-orm-and-neon-crasia3jh","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"serverless,cloudflare","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Neon","item":"https://daily.dev/sources/neontech"},{"@type":"ListItem","position":3,"name":"Build a serverless API using Cloudflare Workers, Drizzle ORM, and Neon"}]}
```

