Cloudflare Worker Base Stack

•
117
•

Scaffolds and optimizes Cloudflare Workers using Hono routing, Vite integration, and production-tested deployment patterns.

This skill provides a robust foundation for building serverless applications on the Cloudflare platform, integrating Hono for efficient routing and Vite for a modern development experience. It is specifically designed to prevent eight common production pitfalls, such as routing conflicts between static assets and API endpoints, HMR race conditions, and export syntax errors. By leveraging the latest Wrangler v4 features like auto-provisioning for D1/R2/KV and Workers RPC, this skill ensures developers can deploy high-performance edge applications that are resilient to common failure modes and billing surprises.

주요 기능

01Pre-configured Hono routing with production-tested boilerplate and TypeScript support.
02Integrated Vite plugin configuration for seamless local development and HMR stability.
03Support for Wrangler v4 auto-provisioning of R2 buckets, D1 databases, and KV namespaces.
04117 GitHub stars
05Modern implementation patterns for Workers RPC and ES Module worker formats.
06Automated prevention of 'run_worker_first' routing conflicts and SPA fallback issues.

사용 사례

01Migrating legacy Cloudflare Workers to modern ES Module syntax with automated resource binding.
02Scaffolding a full-stack serverless application with a Vite-powered frontend and Hono API.
03Configuring complex edge routing where static assets must coexist with dynamic API endpoints.