/dicebear-api-sca

DiceBear Avatars API build on Fastify ⚡️

Primary LanguageTypeScriptMIT LicenseMIT


DiceBear Avatars API

DiceBear Avatars API build on fastify

Start application

git clone git@github.com:dicebear/api.git
cd api

npm install
npm start

Environment variables

PORT

  • Default: 3000

ADDRESS

  • Default: 0.0.0.0

ENABLE_LOGGER

  • Default: 1

ENABLE_PNG

  • Default: 1

PNG_SIZE_MIN

  • Default: 1

PNG_SIZE_MAX

  • Default: 256

ENABLE_PNG_EXIF

ENABLE_JPEG

  • Default: 1

JPEG_SIZE_MIN

  • Default: 1

JPEG_SIZE_MAX

  • Default: 256

ENABLE_JPEG_EXIF

ENABLE_VERSION_4_4

  • Default: 1

ENABLE_VERSION_4_5

  • Default: 1

ENABLE_VERSION_4_6

  • Default: 1

ENABLE_VERSION_4_7

  • Default: 1

ENABLE_VERSION_4_8

  • Default: 1

ENABLE_VERSION_4_9

  • Default: 1

ENABLE_VERSION_4_10

  • Default: 1

ENABLE_VERSION_5_0

  • Default: 1

CACHE_CONTROL_STATS

  • Default: 3600 (1 hour)

CACHE_CONTROL_AVATARS

  • Default: 31536000 (1 year)