NitroCraft is a Minecraft avatar/render API built on Nitro and minecraft-toolkit.
1.6K
repgraphics/nitrocraft is a self-hosted Minecraft avatar/render API built with Nitro and minecraft-toolkit.
uuid/username)redis, memory, or none)docker run -d --name nitrocraft \
-p 3000:3000 \
-v nitrocraft-images:/home/app/nitrocraft/images \
-e NODE_ENV=production \
-e BIND=0.0.0.0 \
-e EXTERNAL_URL=http://localhost:3000 \
-e CACHE_BACKEND=memory \
docker.io/repgraphics/nitrocraft:latest
Open http://localhost:3000.
docker network create nitrocraft
docker volume create nitrocraft-images
docker run -d --name nitrocraft-redis --network nitrocraft redis:7-alpine
docker run -d --name nitrocraft \
--network nitrocraft \
-p 3000:3000 \
-v nitrocraft-images:/home/app/nitrocraft/images \
-e NODE_ENV=production \
-e BIND=0.0.0.0 \
-e EXTERNAL_URL=http://localhost:3000 \
-e CACHE_BACKEND=redis \
-e REDIS_URL=redis://nitrocraft-redis:6379 \
docker.io/repgraphics/nitrocraft:latest
docker compose up -d
Replace {uuid} with a valid Minecraft UUID:
/avatars/{uuid}?size=160&overlay/skins/{uuid}/capes/{uuid}/renders/head/{uuid}?scale=6&overlay/renders/body/{uuid}?scale=6&overlay/players/{uuid-or-username}/status/mcCACHE_BACKEND: redis, memory, or noneREDIS_URL: required when CACHE_BACKEND=redisCORS_ORIGIN: empty/All allows all originsREQUESTS_RATE_LIMIT: inbound per-IP rate limit (empty disables)REQUESTS_RATE_LIMIT_WINDOW_MS: limiter window in msSESSIONS_RATE_LIMIT: outbound Mojang session requests/secSTATUS_ALLOW_PRIVATE_TARGETS: allow private/local /status/* probes (false recommended)DEFAULT_REDIRECT_ALLOWLIST: allowlist for external default= redirect hostsPORT, BIND, EXTERNAL_URLcanvas runtime libraries (already included in this image).Content type
Image
Digest
sha256:15d96019a…
Size
134.3 MB
Last updated
8 months ago
docker pull repgraphics/nitrocraft