/cloudflare-vm:hyperdrivefrom cloudflare-vm
Hyperdrive: Accelerates database queries from Workers via connection pooling, edge setup, query caching.
Ships in cloudflare-vm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Vendored from themusebook/skills (derived from cloudflare/skills, Apache-2.0). This snapshot may be outdated: confirm limits, pricing, API signatures and config options against https://developers.cloudflare.com/ before you cite them. When this file and the docs disagree, trust the docs.
When invoked: read every file in this skill's directory before answering, so you have the full reference: api.md, configuration.md, gotchas.md, patterns.md. Then answer the user's question (or, if none was given, summarise the product: what it is, config, API, patterns and gotchas). Related products are sibling skills, linked as ../<product>/.
Accelerates database queries from Workers via connection pooling, edge setup, query caching.
Worker → Edge (setup) → Pool (near DB) → Origin
↓ cached reads
Cache
# Create config
npx wrangler hyperdrive create my-db \
--connection-string="postgres://user:pass@host:5432/db"
# wrangler.jsonc
{
"compatibility_flags": ["nodejs_compat"],
"hyperdrive": [{"binding": "HYPERDRIVE", "id": "<ID>"}]
}
import { Client } from "pg";
export default {
async fetch(req: Request, env: Env): Promise<Response> {
const client = new Client({
connectionString: env.HYPERDRIVE.connectionString,
});
await client.connect();
const result = await client.query("SELECT * FROM users WHERE id = $1", [123]);
await client.end();
return Response.json(result.rows);
},
};
✅ Global access to single-region DBs, high read ratios, popular queries, connection-heavy loads ❌ Write-heavy, real-time data (<1s), single-region apps close to DB
💡 Pair with Smart Placement for Workers making multiple queries - executes near DB to minimize latency.
| Driver | Use When | Notes |
|---|---|---|
| pg (recommended) | General use, TypeScript, ecosystem compatibility | Stable, widely used, works with most ORMs |
| postgres.js | Advanced features, template literals, streaming | Lighter than pg, prepare: true is default |
| mysql2 | MySQL/MariaDB/PlanetScale | MySQL only, less mature support |
| New to Hyperdrive | Implementing | Troubleshooting |
|---|---|---|
| 1. README (this) | 1. configuration.md | 1. gotchas.md |
| 2. configuration.md | 2. api.md | 2. patterns.md |
| 3. api.md | 3. patterns.md | 3. api.md |
What SKILL.md sets; muted values are Claude Code's defaults
64 skills in this plugin
/agents-sdkCloudflare Agents SDK: Cloudflare Agents SDK enables building AI-powered agents on Durable Objects with state, WebSockets, SQL, scheduling, and AI integration./ai-gatewayCloudflare AI Gateway: Expert guidance for implementing Cloudflare AI Gateway - a universal gateway for AI model providers with analytics, caching, rate limiting, and routing capabilities./ai-searchCloudflare AI Search Reference: Expert guidance for implementing Cloudflare AI Search (formerly AutoRAG), Cloudflare's managed semantic search and RAG service.Other plugins' skills for the same job
npx claudepluginhub vmaia00/claude-specs --plugin cloudflare-vm