Skip to content
secondsky avatar

Bun Cloudflare Workers

Guide for building and deploying Cloudflare Workers with Bun, covering wrangler setup, bindings, and secure installs.

CCM score
52 of 100
skills.sh installs
425
GitHub stars
257
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers project scaffolding with bunx create-cloudflare, local dev via bun run dev, and production deploys via wrangler deploy
  • Includes worked patterns for KV, D1, Durable Objects, R2, Hono routing, Bun testing, and Miniflare
  • Enforces supply chain hygiene: post-install scripts blocked, a 7-day minimumReleaseAge cooldown, and Socket package audits
  • Designed for developers deploying edge APIs and serverless backends who already use Bun for tooling

Install

$ npx -y skills add secondsky/claude-skills --skill bun-cloudflare-workers -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Bun Cloudflare Workers

Build and deploy Cloudflare Workers using Bun for development.

Quick Start

# Create new Workers project
bunx create-cloudflare my-worker
cd my-worker

# Install dependencies
bun install

# Development
bun run dev

# Deploy
bun run deploy

Secure Installation

Scaffolding tools like bunx create-cloudflare download and execute remote code. Before running, follow supply chain security best practices:

  • Block post-install scripts — Bun disables them by default; allow specific packages via trustedDependencies in package.json
  • Cooldown period — Configure minimumReleaseAge in bunfig.toml to wait 7 days for new versions
  • Audit before installing — Run socket package score npm <pkg> or use socket npm install <pkg> to check packages

Load the dependency-upgrade skill for full security configuration including Socket CLI integration, cooldown setup, lockfile validation, and CI enforcement.

Project Setup

package.json

Details

Repository
github.com/secondsky/claude-skills
Categories
DevOps & Cloud, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the bun-cloudflare-workers skill do?

bun-cloudflare-workers guides an agent through building and deploying Cloudflare Workers with Bun for development. It covers wrangler setup, Hono routing, KV, D1, Durable Objects and R2 storage, plus Bun-based testing and production builds.

How do I install the bun-cloudflare-workers skill?

Run npx -y skills add secondsky/claude-skills --skill bun-cloudflare-workers -y in a project to install it. The skill then lets the agent scaffold a Workers project with bunx create-cloudflare and deploy it with wrangler.

Which Cloudflare bindings does bun-cloudflare-workers cover?

bun-cloudflare-workers includes worked examples for KV namespaces, D1 databases, Durable Objects and R2 buckets in its wrangler configuration. It also shows Cron-triggered scheduled Workers and how to handle environment variables and secrets safely.

Is bun-cloudflare-workers listed in the DevOps and Cloud category?

bun-cloudflare-workers sits in the DevOps and Cloud category on Claude Marketplaces. Its sibling skills there include azure-diagnostics and azure-deploy, but bun-cloudflare-workers focuses on Cloudflare Workers with Bun rather than Azure.

More from secondsky/claude-skills

All 116

Similar to Bun Cloudflare Workers

More DevOps & Cloud