cloudflare-hyperdrive

Connect Cloudflare Workers to PostgreSQL and MySQL databases via Hyperdrive.

3|Updated Nov 14, 2025
One-click install
npx skills add https://github.com/evolv3ai/claude-skills-archive --skill cloudflare-hyperdrive-evolv3ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-hyperdrive
Source: https://github.com/evolv3ai/claude-skills-archive/tree/main/skills/cloudflare-hyperdrive
Command: npx skills add https://github.com/evolv3ai/claude-skills-archive --skill cloudflare-hyperdrive-evolv3ai

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 PostgreSQL and MySQL databases efficiently, overcoming latency and connection pooling challenges.

Core Features & Use Cases

  • Global Connection Pooling: Reduces latency and connection overhead by pooling connections at the edge.
  • Query Caching: Caches read queries at the edge for faster responses.
  • ORM Integration: Supports Drizzle ORM and Prisma ORM for seamless development.
  • Use Case: Connect your Worker application to an existing AWS RDS PostgreSQL database, ensuring fast, reliable data access for your users worldwide.

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?

You can connect Cloudflare Workers to PostgreSQL using Hyperdrive to enable global connection pooling and query caching, which reduces connection overhead and latency at the edge.

Can I use Prisma or Drizzle ORM with Cloudflare Workers and Hyperdrive?

Yes, Hyperdrive supports integration with both Prisma ORM and Drizzle ORM, allowing you to use these tools for database operations within your Cloudflare Workers applications.

How do I configure Hyperdrive for a MySQL or PostgreSQL database using wrangler?

You can configure Hyperdrive by using the wrangler CLI to create a new configuration for your PostgreSQL or MySQL database, establishing the connection string for your Worker.

Why does my Cloudflare Workers database connection fail without nodejs_compat enabled?

Database connections through Hyperdrive often require the nodejs_compat compatibility flag in your wrangler configuration to properly support the underlying database drivers.

What is the best way to manage connection pooling and pool sizing for Cloudflare Workers?

Using Hyperdrive handles global connection pooling automatically, but you must correctly configure pool sizing and use waitUntil for connection cleanup to prevent dropped connections.

Does Hyperdrive cache database queries for Cloudflare Workers?

Yes, Hyperdrive caches read queries at the edge, which significantly speeds up response times for your Cloudflare Workers applications accessing PostgreSQL or MySQL databases.