cloudflare-static-assets

Community

Unified static assets for Cloudflare Workers

Authoratman-33
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill resolves asset serving inconsistencies between local development and Cloudflare Workers by enabling unified access to static assets.

Core Features & Use Cases

  • Unified access to static assets across environments using the ASSETS binding and fallback logic.
  • Configures wrangler.jsonc assets binding to serve files from the public directory and references usage in React Router apps.
  • Provides TypeScript utilities (fetchStaticAsset, fetchStaticJSON, fetchStaticText) that auto-switch between Cloudflare ASSETS and standard fetch, ensuring cross-environment compatibility.
  • Use Case: A React Router application deployed on Cloudflare Workers can fetch public assets like /data/config.json reliably in both development and production.

Quick Start

Configure wrangler.jsonc with the assets directory and binding, implement the static assets utilities, and start using fetchStaticJSON or fetchStaticText to load assets in routes.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cloudflare-static-assets
Download link: https://github.com/atman-33/skills/archive/main.zip#cloudflare-static-assets

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.