cloudflare-hyperdrive

Connect Cloudflare Workers to PostgreSQL and MySQL databases via Hyperdrive.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/brendadeeznuts1111/tier-1380-omega --skill cloudflare-hyperdrive-brendadeeznuts1111
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-hyperdrive
Source: https://github.com/brendadeeznuts1111/tier-1380-omega/tree/main/skills/cloudflare-hyperdrive
Command: npx skills add https://github.com/brendadeeznuts1111/tier-1380-omega --skill cloudflare-hyperdrive-brendadeeznuts1111

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill enables Cloudflare Workers to connect to existing PostgreSQL and MySQL databases efficiently, overcoming latency and connection limitations.

Core Features & Use Cases

  • Global Connection Pooling: Reduces latency by pooling connections near your database, accessible from Workers worldwide.
  • Query Caching: Caches read queries at the edge, significantly reducing database load and speeding up responses.
  • ORM Integration: Supports Drizzle ORM and Prisma ORM for type-safe database interactions.
  • Use Case: Connect your Worker application to your existing production PostgreSQL database hosted on AWS RDS, ensuring fast, low-latency data access for users globally, with automatic caching of frequently read data.

Quick Start

Use the cloudflare-hyperdrive skill to create a new Hyperdrive configuration for your PostgreSQL database.

Frequently Asked Questions about cloudflare-hyperdrive

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect Cloudflare Workers to a PostgreSQL database without high latency?

Use Cloudflare Hyperdrive to connect Workers to PostgreSQL databases using global connection pooling. It reduces latency by pooling connections near your database, enabling fast data access from Workers worldwide.

Does Hyperdrive work with Drizzle ORM and Prisma for database connections?

Yes, Hyperdrive supports ORM integrations with both Drizzle ORM and Prisma. This allows you to maintain type-safe database interactions while benefiting from Hyperdrive's global connection pooling and edge caching.

How do I resolve TLS errors when connecting Cloudflare Workers to MySQL?

Hyperdrive addresses common MySQL and PostgreSQL connection issues including TLS errors. It also handles connection pool exhaustion and nodejs_compat flag requirements to ensure stable database connectivity from Workers.

What is the best way to reduce database load for read queries in Cloudflare Workers?

The best way to reduce database load is using Hyperdrive's query caching. It caches read queries at the edge, significantly speeding up responses and reducing the number of direct read requests hitting your PostgreSQL or MySQL database.

Can I use Hyperdrive to connect Workers to an existing AWS RDS PostgreSQL instance?

Yes, you can connect Worker applications to existing production PostgreSQL databases hosted on AWS RDS. Hyperdrive ensures fast, low-latency global data access and automatically caches frequently read data from your RDS instance.

Why am I hitting connection pool exhaustion with Cloudflare Workers and PostgreSQL?

Connection pool exhaustion happens when Workers open too many direct database connections. Hyperdrive solves this by maintaining a global connection pool near your PostgreSQL database, preventing exhaustion and managing connections efficiently.