@gryczka/wrongler
v4.0.2
Published
Wrangler with YOLO mode - auto-deploy on file changes
Downloads
377
Maintainers
Readme
Wrongler 🚀
Wrangler with YOLO mode - because sometimes you just gotta ship it
⚠️ WARNING: FOR FUN ONLY ⚠️
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.
Installation
# 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 wranglerWhat is YOLO Mode?
YOLO Mode watches your Worker files and automatically redeploys to Cloudflare's edge on every save. Perfect for rapid development iterations!
Features
- ✅ 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
Usage
Basic YOLO Mode
wrongler deploy --yoloThis will:
- Deploy your Worker initially
- Watch for file changes
- Automatically redeploy on save
- Show condensed deployment output with URLs
Verbose Output
wrongler deploy --yolo --verboseShows full deployment output instead of condensed mode.
With Environment
wrongler deploy --yolo --env productionWith Custom Entry Point
wrongler deploy src/worker.ts --yoloWith Custom Worker Name
wrongler deploy --yolo --name my-workerAll standard Wrangler deploy flags work with YOLO mode!
Example Output
🚀 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-ef1234567890Regular Wrangler Commands
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 commandsWhy "Wrongler"?
Because 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! 🎉
Differences from Wrangler
Wrongler adds the --yolo flag to the deploy command for automatic redeployment on file changes. All other commands work exactly the same as wrangler.
Development
Setup
git clone https://github.com/Gryczka/wrongler.git
cd wrongler
npm install
npm run buildTesting Locally
# Link globally
npm link
# Test in a Worker project
cd /path/to/your/worker
wrongler deployBuilding
npm run buildLicense
This 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
Credits
- Wrangler: Created and maintained by Cloudflare
- YOLO Mode: Added by Gryczka
- Inspired by: AWS SAM's
sam sync --watchfeature
Links
Disclaimer
This is an unofficial, experimental wrapper for fun purposes only. Not affiliated with or endorsed by Cloudflare.
⚠️ IMPORTANT:
- 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! 🎲
