$npx skillfedfor your agent

cloudflare-workers-runtime-apis

Learn the core runtime APIs that power Cloudflare Workers development. This skill covers Fetch for making and handling HTTP requests, Streams for processing large payloads efficiently, Crypto for hashing and signing operations, Cache for response optimization, WebSockets for real-time connections, and text encoding utilities. Includes patterns for timeouts, retries, and error prevention.

Cloudflare Workers Runtime APIs teaches HTTP requests, streaming, cryptography, caching, WebSockets, and text encoding for Workers development.

AI-generated summary based on this skill's SKILL.md

★ 196  29 MITupdated by secondsky

Decision gist · record as of 2026-07-25

Cloudflare Workers Runtime APIs teaches HTTP requests, streaming, cryptography, caching, WebSockets, and text encoding for Workers development. Learn the core runtime APIs that power Cloudflare Workers development. This skill covers Fetch for making and handling HTTP requests, Streams for processing large payloads efficiently, Crypto for hashing and signing operations, Cache for response optimization, WebSockets for real-time connections, and text encoding utilities. Includes patterns for timeouts, retries, and error prevention.

manual: git clone https://github.com/secondsky/claude-skills → cp -r claude-skills/plugins/cloudflare-workers/skills/cloudflare-workers-runtime-apis ~/.claude/skills/cloudflare-workers-runtime-apis
plugins/cloudflare-workers/skills/cloudflare-workers-runtime-apis/SKILL.md · version da1a2479

Use it when

  • cloudflare-workers-runtime-apis includes the Crypto API for hashing, signing, and encryption.
  • cloudflare-workers-runtime-apis enables WebSocket connections paired with Durable Objects for real-time functionality.

Verify before relying

Read SKILL.md below before installing (11 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

secondsky/claude-skills/cloudflare-workers-runtime-apis · repository language: TypeScript

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How to make HTTP requests in cloudflare workers?

cloudflare-workers-runtime-apis provides the Fetch API for making HTTP requests. Use the `fetch()` function to send requests and handle responses. You can set headers, configure timeouts with `AbortController`, implement retry patterns, and process response bodies as text, JSON, or streams. The Fetch API is the primary method for outbound HTTP communication in Workers.

What cryptographic operations does cloudflare-workers-runtime-apis support?

cloudflare-workers-runtime-apis includes the Crypto API for hashing, signing, and encryption. Perform HMAC signing, SHA hashing, and other cryptographic operations using the Web Crypto standard. These operations are useful for authentication, data integrity verification, and secure transformations within your Workers scripts.

How do I implement real-time features using WebSockets and Durable Objects?

cloudflare-workers-runtime-apis enables WebSocket connections paired with Durable Objects for real-time functionality. Use WebSocket hibernation to maintain persistent connections efficiently, and leverage Durable Objects as a coordination layer for state management and message broadcasting across multiple client connections.

What's the best way to process large data streams in cloudflare workers?

cloudflare-workers-runtime-apis provides the Streams API for handling large payloads efficiently. Use `ReadableStream` and `TransformStream` to process data incrementally without loading entire files into memory. Combine streaming with the Cache API to optimize response delivery and reduce bandwidth consumption.

How can I optimize response caching in cloudflare-workers-runtime-apis?

cloudflare-workers-runtime-apis includes the Cache API for response optimization. Store and retrieve cached responses using cache keys, set appropriate TTLs, and implement cache invalidation strategies. This reduces origin requests and improves performance for frequently accessed content.

What common runtime errors should I prevent in cloudflare workers?

cloudflare-workers-runtime-apis documentation covers preventing errors like "body already read" when accessing request/response bodies multiple times. Use proper error handling for fetch timeouts, AbortController signals, and stream processing failures. Implement defensive patterns to avoid runtime exceptions in production Workers.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Cloudflare Workers Runtime APIs

Master the Workers runtime APIs: Fetch, Streams, Crypto, Cache, WebSockets, and text encoding.

Quick Reference

API Purpose Common Use
Fetch HTTP requests External APIs, proxying
Streams Data streaming Large files, real-time
Crypto Cryptography Hashing, signing, encryption
Cache Response caching Performance optimization
WebSockets Real-time connections Chat, live updates
Encoding Text encoding UTF-8, Base64

Quick Start: Fetch API

```typescript export default { async fetch(request: Request, env: Env): Promise<Response> { // Basic fetch const response = await fetch('https://api.example.com/data');

// With options
const postResponse = await fetch('https://api.example.com/users', {

(truncated - see the full file via the links below)

File tree — 11 files
plugins/cloudflare-workers/skills/cloudflare-workers-runtime-apis/SKILL.md
plugins/cloudflare-workers/skills/cloudflare-workers-runtime-apis/references/cache-api.md
plugins/cloudflare-workers/skills/cloudflare-workers-runtime-apis/references/crypto-api.md
plugins/cloudflare-workers/skills/cloudflare-workers-runtime-apis/references/encoding-api.md
plugins/cloudflare-workers/skills/cloudflare-workers-runtime-apis/references/fetch-api.md
plugins/cloudflare-workers/skills/cloudflare-workers-runtime-apis/references/streams-api.md
plugins/cloudflare-workers/skills/cloudflare-workers-runtime-apis/references/websockets.md
plugins/cloudflare-workers/skills/cloudflare-workers-runtime-apis/templates/crypto-operations.ts
plugins/cloudflare-workers/skills/cloudflare-workers-runtime-apis/templates/fetch-patterns.ts
plugins/cloudflare-workers/skills/cloudflare-workers-runtime-apis/templates/stream-processing.ts
plugins/cloudflare-workers/skills/cloudflare-workers-runtime-apis/templates/websocket-handler.ts

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Learn how to make HTTP requests and handle responses in Cloudflare Workers”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

cloudflare-workers-security
by secondsky · secondsky/claude-skills

Cloudflare Workers Security delivers production patterns for protecting APIs and Workers through authentication verification, request rate limiting, input validation, and security headers. It covers JWT and API key validation, CORS configuration, and defends against common vulnerabilities like injection, XSS, and unauthorized access.

MITupdated Jul 2026
★ 196repo stars
agents-sdk
by cloudflare · cloudflare/skills

Agents SDK equips you to create intelligent agents on Cloudflare Workers with built-in state persistence, callable RPC methods, task scheduling, and durable workflows. It covers agent lifecycle management, WebSocket communication, chat integration, MCP server connectivity, and observability—all with comprehensive Cloudflare documentation as your primary reference.

Apache-2.0updated Jul 2026
★ 2,499repo stars
cloudflare-workers-performance
by secondsky · secondsky/claude-skills

Master performance tuning for Cloudflare Workers through CPU optimization, memory management, and strategic caching. Learn to profile hot paths, stream large payloads, batch operations, and minimize cold starts while staying within platform limits.

MITupdated Jul 2026
★ 196repo stars
cloudflare-mcp-server
by secondsky · secondsky/claude-skills

Create Model Context Protocol servers running on Cloudflare Workers using TypeScript. Define tools, resources, and prompts that AI agents can invoke, with support for multiple transports including WebSocket and HTTP. Includes templates, deployment guides, and Durable Objects integration for stateful applications.

MITupdated Jul 2026
★ 196repo stars
Cloudflare Worker
by majesticlabs-dev · majesticlabs-dev/majestic-marketplace

Master TypeScript development on Cloudflare Workers, from stateless edge functions to real-time coordination with Durable Objects. Learn storage patterns for KV, D1, R2, and Queues, plus Hono framework integration and deployment via wrangler CLI.

no license declared → metadata onlyupdated May 2026
★ 44repo stars
cloudflare-workers-observability
by secondsky · secondsky/claude-skills

Cloudflare Workers Observability equips you with structured logging, custom metrics via Analytics Engine, real-time log streaming through Tail Workers, and alerting capabilities for production deployments. The skill covers critical patterns for request context tracking, sensitive data redaction, log sampling, and error prevention across all observability components.

MITupdated Jul 2026
★ 196repo stars

More skills streaming-data (MIT) · cloudflare-zero-trust-access (MIT)

Tags
http-client-utilitiesreal-time-communicationcryptographic-operationsresponse-optimizationdata-transformationerror-preventionperformance-patternsrequest-handlingbinary-data-processingapi-integration