{"repo":"nodecraft/crafthead","free":true,"listed":false,"github":"https://github.com/nodecraft/crafthead","clone":"git clone https://github.com/nodecraft/crafthead.git","description":"Super scalable Minecraft & Hytale avatar generation, built on Cloudflare Workers","language":"Rust","stars":110,"topics":["cloudflare-workers","minecraft","minecraft-avatar","typescript","rust","hacktoberfest"],"license":"MIT","category":"game-templates","readme_excerpt":"Crafthead Crafthead is a highly scalable, serverless Minecraft avatar rendering solution built on Cloudflare Workers. It runs on any of Cloudflare's 200+ datacenters worldwide with minimal latency. Note : if you're a causal browser and wound up here, you probably want to go to Crafthead.net, the public instance of Crafthead I run. Features Extremely fast Supports UUID fetching (dashed or not dashed) and username lookups Renders avatars from 8px to 300px Overall breakdown Crafthead is split into two primary components: the request handler frontend, written in TypeScript, and the image generation logic, written in Rust and invoked by TypeScript by way of WebAssembly. This means it is possible to use Crafthead's image generation from within the browser, provided you had another method of loading the skins from the browser. However, the most convenient way to use Crafthead is to use the publicly-hosted instance that does the rendering on Cloudflare's extensive edge network. The request handler (located under the worker directory) receives every request to Crafthead. It first parses each request to figure out what it is asking for. If Crafthead can't determine what the request is, it will use Cloudflare Workers Sites to serve the index page or a 404 page. Once it has determined what is to be retrieved (and misses the top-level cache), each request is \"normalized\" (essentially, this entails changing all username requests to use UUIDs instead) and the skin is looked up (all stages o","default_branch":null,"files":null,"tree":[],"storefront":"/r/nodecraft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nodecraft/crafthead/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}