Skip to content

Advanced Settings

Configure Socket.IO, external integrations, performance tuning, and other advanced BrickTracker features.

Socket.IO Configuration

Basic Socket Settings

Optional: Namespace of the Socket.IO socket

bash
BK_SOCKET_NAMESPACE=bricksocket

Optional: Namespace of the Socket.IO path

bash
BK_SOCKET_PATH=bricksocket

Optional: Disable threading on the task executed by the socket. You should not need to change this parameter unless you are debugging something with the socket itself.

bash
BK_NO_THREADED_SOCKET=false

Available variables for link customization:

  • {part}: Part number (e.g., "3001")
  • {color}: Color ID (e.g., "4" for red)
  • {figure}: Minifigure ID (e.g., "sw001")
  • {set}: Set number (e.g., "10255-1")
  • {path}: Instruction file path
  • {theme}: Theme ID
  • {year}: Set year

Optional: Pattern of the link to Bricklink for a part. Will be passed to Python .format(). Supports {part} and {color} parameters. BrickLink part numbers and color IDs are used when available.

bash
BK_BRICKLINK_LINK_PART_PATTERN=https://www.bricklink.com/v2/catalog/catalogitem.page?P={part}&C={color}

Optional: Pattern of the link to Bricklink for a set. Will be passed to Python .format(). Supports {set_num} parameter. Set numbers in format like '10255-1' are used.

bash
BK_BRICKLINK_LINK_SET_PATTERN=https://www.bricklink.com/v2/catalog/catalogitem.page?S={set_num}

Rebrickable

Custom link patterns (use {variables} for substitution)

Optional: Pattern of the link to Rebrickable for a minifigure. Will be passed to Python .format()

bash
BK_REBRICKABLE_LINK_MINIFIGURE_PATTERN=https://rebrickable.com/minifigs/{figure}

Optional: Pattern of the link to Rebrickable for a part. Will be passed to Python .format()

bash
BK_REBRICKABLE_LINK_PART_PATTERN=https://rebrickable.com/parts/{part}/_/{color}

Optional: Pattern of the link to Rebrickable for instructions. Will be passed to Python .format()

bash
BK_REBRICKABLE_LINK_INSTRUCTIONS_PATTERN=https://rebrickable.com/instructions/{path}

Optional: Pattern of the link to Rebrickable for instructions. Will be passed to Python .format()

bash
BK_REBRICKABLE_LINK_INSTRUCTIONS_PATTERN=https://rebrickable.com/instructions/{path}

INFO

Change these if you want custom images for your parts, sets and minifigures that are missing images

Optional: URL of the image representing a missing image in Rebrickable

bash
BK_REBRICKABLE_IMAGE_NIL=https://rebrickable.com/static/img/nil.png

Optional: URL of the image representing a missing minifigure image in Rebrickable

bash
BK_REBRICKABLE_IMAGE_NIL_MINIFIGURE=https://rebrickable.com/static/img/nil_mf.jpg

Peeron Integration

Optional: Pattern for Peeron instruction page URLs. Will be passed to Python .format()

bash
BK_PEERON_INSTRUCTION_PATTERN=http://peeron.com/scans/{set_number}-{version_number}

Optional: Pattern for Peeron thumbnail URLs. Will be passed to Python .format()

bash
BK_PEERON_THUMBNAIL_PATTERN=http://belay.peeron.com/thumbs/{set_number}-{version_number}/

Optional: Pattern for Peeron scan URLs. Will be passed to Python .format()

bash
BK_PEERON_SCAN_PATTERN=http://belay.peeron.com/scans/{set_number}-{version_number}/

Peeron

Optional: Delay between Peeron page downloads (milliseconds). Recommendation: Don't go below 100ms to avoid being blocked

bash
BK_PEERON_DOWNLOAD_DELAY=1000

Optional: Minimum acceptable image size (pixels). Use case: Filters out error placeholder images

bash
BK_PEERON_MIN_IMAGE_SIZE=100

User Agent

Optional: User-Agent to use when querying Rebrickable and Peeron outside of the Rebrick python library

bash
BK_USER_AGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

Released under the MIT License.