bun-cloudflare-workers

Featured

This skill should be used when the user asks about "Cloudflare Workers with Bun", "deploying Bun to Workers", "wrangler with Bun", "edge deployment", "Bun to Cloudflare", or building and deploying applications to Cloudflare Workers using Bun.

DevOps & Infrastructure 221 stars 31 forks Updated today MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
78
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Bun Cloudflare Workers Build and deploy Cloudflare Workers using Bun for development. ## Quick Start ```bash # 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 ```json { "scripts": { "dev": "wrangler dev", "deploy": "wrangler deploy", "build": "bun build src/index.ts --outdir=dist --target=browser" }, "devDependencies": { "@cloudflare/workers-types": "^4.20260408.0", "wrangler": "^4.81.0" } } ``` ### wrangler.toml ```toml name = "my-worker" main = "src/index.ts" compatibility_date = "2024-01-01" # Use Bun for local dev [dev] local_protocol = "http" # Bindings [[kv_namespaces]] binding = "KV" id = "xxx" [[d1_database...

Details

Author
secondsky
Repository
secondsky/claude-skills
Created
10 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category