Cloudflare Hyperdrive
БесплатноБез исполняемых скриптовНе проверенCloudflare Hyperdrive connection usage rules
от ThePrimeagen★ 239 звёзд на GitHubОб этом скилле
Cloudflare Hyperdrive
Rules
- Create a new database client/connection inside each Worker invocation (
fetch,queue,scheduled, or Durable Object method); never create global clients or driver pools (new Pool(),createPool()). Hyperdrive manages the shared origin pool. - Use the Hyperdrive binding directly: Postgres uses
env.HYPERDRIVE.connectionString - Let Hyperdrive manage connection lifecycle: keep transactions short, avoid long-lived pinned connections, and do not call
client.end()/connection.end()for routine per-request cleanup.
Example 1: PostgreSQL (Hyperdrive handles pooling)
import { Client } from "pg";
export default {
async fetch(_request, env): Promise<Response> {
const client = new Client({
connectionString: env.HYPERDRIVE.connectionString,
});
await client.connect();
const result = await client.query("SELECT NOW() AS now");
return Response.json(result.rows[0]);
},
} satisfies ExportedHandler<{ HYPERDRIVE: Hyperdrive }>;
Установить Cloudflare Hyperdrive в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Cloudflare Hyperdrive?
Cloudflare Hyperdrive connection usage rules
Как установить скилл Cloudflare Hyperdrive?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Cloudflare Hyperdrive запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic