You are assisting with migrating Cloudflare Workers applications to Bun. This involves converting edge runtime APIs, replacing Cloudflare bindings, and adapting from edge to server deployment.
Cloudflare Workers use bindings for KV, R2, D1, etc. These need to be replaced:
| Runtime | Edge (V8 isolates) | Server (JavaScriptCore) | | Deployment | Global edge network | Traditional hosting | | Cold Start | 0ms | Minimal with Bun | | Execution Time | Limited (CPU time) | Unlimited | | Storage | KV, R2, D1, DO | Redis, S3, PostgreSQL, etc. | | Cost Model | Per-request | Server/container costs |
Перенесите рабочие процессы Cloudflare в Bun с анализом совместимости во время выполнения. Используйте при преобразовании Workers в Bun, переходе от привязок Cloudflare или переходе от периферийного развертывания к серверному. Источник: daleseo/bun-skills.