mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
This led to a crash when a cape or skin was not stored on disk. The function caled skins.save_image and returned that function's lwip image object instead of the expected buffer. skins.save_image also no longer returns the image object because it's not used anywhere
Crafatar

[Crafatar](https://crafatar.com) serves Minecraft avatars based on the skin for use in external applications.
Inspired by [Gravatar](https://gravatar.com) (hence the name) and [Minotar](https://minotar.net).
Image manipulation is done by lwip. 3D renders are created with node-canvas / cairo.
Contributions welcome!
There are usually a few open issues.
We welcome any opinions or advice in discussions as well as pull requests.
Issues tagged with
show where we could especially need your help!
Examples
Usage / Documentation
Please visit the website for details.
Contact
- You can follow us on twitter
- Open an issue on GitHub
- You can join IRC in #crafatar on irc.esper.net.
Installation
Have a look at crafatar/setup to see how we set things up at Crafatar.
For more info about local setup, Heroku, or Dokku please see Installation on the wiki.
Tests
npm test
If you want to debug failing tests:
# show logs during tests
env VERBOSE_TEST=true npm test
It can be helpful to monitor redis commands to debug caching errors:
redis-cli monitor
Languages
JavaScript
79.5%
EJS
13.6%
CSS
5.3%
Shell
0.9%
Dockerfile
0.7%