Home / Companies / Neon / Blog / Post Details
Content Deep Dive

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

Blog post from Neon

Post Details
Company
Date Published
Author
Mahmoud Abdelwahab
Word Count
1,556
Company Posts That Month
16
Language
English
Hacker News Points
-
Post removed?
No
Summary

You can build a serverless API using Cloudflare Workers, Drizzle ORM, and Neon by following this guide. You'll start by setting up a new project with create-cloudflare-cli, which will generate the initial code for your worker. Next, you'll add Hono.js to handle different HTTP methods, and then set up a Neon Postgres instance that can automatically scale based on demand. Drizzle ORM is used to define the database schema in TypeScript, and you'll generate database migrations using the `drizzle-orm` package. You'll also connect to the database from your worker and deploy it using wrangler. Finally, you'll use the Neon integration on Cloudflare to simplify credential management and redeploy your worker automatically.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Serverless 9 754 147 59 +46%
Secrets Management 1 945 102 63 +67%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.