---
# nuzlocke-tracker-sgp4
title: Fetch and store badge images locally
status: completed
type: task
priority: normal
created_at: 2026-02-08T20:57:15Z
updated_at: 2026-02-08T21:13:34Z
---

Badge images are currently loaded via remote URLs, which can lead to missing images if the remote source is unavailable. Download all badge images and store them locally as part of the seed script's export function.

The seed script already fetches badge URLs when exporting boss battle data — extend this to also download the actual badge image files and save them to a local assets directory. Update badge image references to point to the local copies.

## Checklist

- [ ] Extend the seed script export function to download badge images from the URLs found in boss battle data
- [ ] Store downloaded badge images in a local assets directory (e.g. `frontend/public/badges/` or similar)
- [ ] Update badge image URL references to use the local paths instead of remote URLs
- [ ] Handle edge cases (missing URLs, download failures, duplicate filenames)