• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Tibia Outfit Generator on Cloudflare Edge (Worker)

gunz

GunzOT Owner
Premium User
Joined
Dec 30, 2007
Messages
539
Solutions
5
Reaction score
221
Hello everyone šŸ‘‹


I’d like to share a project I’ve been working on — a modern Tibia outfit generator built with performance and scalability in mind.

It runs entirely on Cloudflare Workers and uses pre-generated TAR asset containers, making it significantly faster and safer than running a traditional generator on your own server. No heavy disk I/O, no PHP bottlenecks, no server load spikes — everything is handled at the edge.
The core rendering logic is inspired by @Gesior.pl Outiftter PHP Code, but refactored to JavaScript and optimized using WASM libraries to achieve near-native performance.

What Makes It Different?​

Instead of loading dozens of PNG files per render, each outfit is stored as a single .tar file containing all frames and templates.
This allows:
  • ⚔ Single asset fetch per outfit
  • šŸŽØ Real-time colorization (head, body, legs, feet)
  • 🧩 Addon support (1–3)
  • šŸŽ Mount support (with independent mount colors)
  • šŸ” Static or animated output
  • šŸŽ¬ Animated GIF generation via WASM (gifski-wasm)
  • šŸŒ Edge execution (very low latency globally)

API Examples​

Static Outfit​

Animated Outfit​



Technical Architecture​

  • Offline Node pipeline generates .tar asset containers
  • Worker fetches + parses TAR from static asset (no ZIP, no heavy decompression)
  • PNG frames decoded and colorized on the edge
  • Optional GIF encoding via WASM
  • Optimized for minimal network overhead
The generator is designed to scale properly and avoid the common bottlenecks found in older hosted PHP-based generator.

šŸ“¦ Source Code​


GitHub:
šŸ‘‰

🧪 Looking For Feedback​

If anyone wants to:
  • Test it
  • Contribute
  • Suggest improvements
  • Add WebP support
  • Integrate into their OT server
Let me know šŸ™‚


 
Alright… I’ll admit it: this is actually reallygood!


Running an outfit generator on Cloudflare Workers with proper caching and a clean API is the kind of modern solution this scene should’ve had years ago. Packaging assets efficiently, real-time colorization, WASM for GIFs… it’s not just ā€œcoolā€, it’s competent and that’s rare.


You basically removed the usual problems: slow servers, PHP bottlenecks, random downtime, and ā€œit works on my machineā€ energy.


So yeah. Annoyingly solid work. Keep going. šŸ‘
 
Back
Top