- Joined
- Dec 30, 2007
- Messages
- 539
- Solutions
- 5
- Reaction score
- 220
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.
This allows:
GitHub:
github.com
If anyone wants to:

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
Source Code
GitHub:
GitHub - gunzino/tibia-outfit-worker: Generate Tibia outfit images serverless inside the Cloudflare Cloud.
Generate Tibia outfit images serverless inside the Cloudflare Cloud. - gunzino/tibia-outfit-worker
Looking For Feedback
If anyone wants to:- Test it
- Contribute
- Suggest improvements
- Add WebP support
- Integrate into their OT server