开源软件名称(OpenSource Name):crafatar/crafatar开源软件地址(OpenSource Url):https://github.com/crafatar/crafatar开源编程语言(OpenSource Language):JavaScript 79.2%开源软件介绍(OpenSource Introduction):CrafatarCrafatar serves Minecraft avatars based on the skin for use in external applications. Inspired by Gravatar (hence the name) and Minotar. Image manipulation is done by lwip. 3D renders are created with node-canvas / cairo. Contributions welcome!There are usually a few open issues. ExamplesUsage / DocumentationPlease visit the website for details. ContactInstallationDockerdocker network create crafatar
docker run --net crafatar -d --name redis redis
docker run --net crafatar -v crafatar-images:/crafatar/images -e REDIS_URL=redis://redis -p 3000:3000 crafatar/crafatar Manual
Crafatar is now available at http://0.0.0.0:3000. Configration / Environment variablesSee the Operational notesinodesCrafatar stores a lot of images on disk. For avatars, these are 8×8 px PNG images with an average file size of ~90 bytes. This can lead to issues on file systems such as ext4, which (by default) has a bytes-per-inode ratio of 16Kb. With thousands of files with an average file size below this ratio, you will run out of available inodes before running out of disk space. (Note that this will still be reported as Consider using a different file system, changing the inode ratio, or deleting files before the inode limit is reached. disk space and memory usageEventually you will run out of disk space and/or redis will be out of memory. Make sure to delete image files and/or flush redis before this happens. Testsnpm 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 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论