Wrangler with YOLO mode - because sometimes you just gotta ship it
This project is called WRONGler for a reason.
- 🎲 DO NOT use this for serious/production work
- 🎪 This is a fun side project and experimental wrapper
- 💥 YOLO deploy is exactly what it sounds like - use at your own risk
- 🎢 Automatic deployments on every save can go hilariously wrong
- 🤡 No warranties, no guarantees, just pure YOLO energy
If you're looking for a reliable, production-ready deployment tool, use Wrangler directly. If you want to live dangerously and have some fun, welcome aboard! 🎉
Wrongler is a lightweight wrapper around Cloudflare's Wrangler that adds YOLO Mode - automatic redeployment on file changes, inspired by AWS SAM's sam sync --watch.
# Install wrongler
npm install -g @gryczka/wrongler
# wrongler requires wrangler as a peer dependency
npm install -g wranglerOr use both together:
npm install -g @gryczka/wrongler wranglerYOLO Mode watches your Worker files and automatically redeploys to Cloudflare's edge on every save. Perfect for rapid development iterations!
- ✅ Auto-deploy on save - 50ms debounce for rapid changes
- ✅ Smart file watching - Excludes build artifacts automatically
- ✅ Condensed output - Clean, minimal deployment info
- ✅ Error resilient - Stays in watch mode even if deployment fails
- ✅ Graceful shutdown - Clean exit on Ctrl+C
wrongler deploy --yoloThis will:
- Deploy your Worker initially
- Watch for file changes
- Automatically redeploy on save
- Show condensed deployment output with URLs
wrongler deploy --yolo --verboseShows full deployment output instead of condensed mode.
wrongler deploy --yolo --env productionwrongler deploy src/worker.ts --yolowrongler deploy --yolo --name my-workerAll standard Wrangler deploy flags work with YOLO mode!
🚀 YOLO Mode activated - watching for changes...
Watching:
- wrangler.toml
- index.js
- /project/dir
~ index.js
[4:41:34 PM] Deployment #1 starting...
[4:41:40 PM] ✓ Deployment #1 (5732ms)
└─ Worker: https://my-worker.account.workers.dev
└─ Preview: https://982b47f4-my-worker.account.workers.dev
└─ Version: 982b47f4-5d2d-471b-a084-508acc7a2bc4
~ index.js
[4:41:45 PM] Deployment #2 starting...
[4:41:50 PM] ✓ Deployment #2 (4823ms)
└─ Worker: https://my-worker.account.workers.dev
└─ Preview: https://a8b2c3d4-my-worker.account.workers.dev
└─ Version: a8b2c3d4-e5f6-7890-abcd-ef1234567890
Wrongler is a drop-in replacement for Wrangler. All commands work exactly the same:
wrongler dev
wrongler deploy
wrongler tail
wrongler kv:key put
# ... all other wrangler commandsBecause adding auto-deploy on save is either brilliantly right or hilariously wrong depending on your perspective. It's called WRONG-ler because:
- Every file save triggers a deployment (what could go wrong? 😅)
- No confirmation, no safety nets, just pure deployment chaos
- It's the tool equivalent of "hold my beer and watch this"
Use YOLO deploy solely for fun and at your own risk. YOLO! 🎉
Wrongler adds the --yolo flag to the deploy command for automatic redeployment on file changes. All other commands work exactly the same as wrangler.
git clone https://github.com/Gryczka/wrongler.git
cd wrongler
npm install
npm run build# Link globally
npm link
# Test in a Worker project
cd /path/to/your/worker
wrongler deploynpm run buildThis project maintains the same dual MIT OR Apache-2.0 license as the original Wrangler project.
- MIT License: See LICENSE-MIT
- Apache 2.0 License: See LICENSE-APACHE
- Wrangler: Created and maintained by Cloudflare
- YOLO Mode: Added by Gryczka
- Inspired by: AWS SAM's
sam sync --watchfeature
This is an unofficial, experimental wrapper for fun purposes only. Not affiliated with or endorsed by Cloudflare.
- This project is for entertainment and experimentation
- Not intended for production or serious development work
- Use at your own risk - automatic deployments can have unexpected consequences
- When in doubt, use official Wrangler instead
Made with ☕ and YOLO spirit - but seriously, don't use this for anything important! 🎲