# Scripts Overview

Automation scripts organized by purpose.



Automation scripts organized by purpose.

## Directory Structure [#directory-structure]

```text
scripts/
├── build/          # Build-time automation
│   ├── download-unsplash.js
│   └── compress-images.mjs
├── content/        # Content processing
│   └── prepare-chatbot.js
├── setup/          # One-time setup helpers
│   └── spotify-token.js
└── training-data/  # Generated chatbot data
```

## Categories [#categories]

### Build Scripts [#build-scripts]

* **download-unsplash.js** - Downloads Unsplash images via API
* **compress-images.mjs** - Compresses oversized images in `public/` using sharp

### Content Scripts [#content-scripts]

* **prepare-chatbot.js** - Extracts content for AI chatbot training

## Usage Workflow [#usage-workflow]

```bash
# Download Unsplash images locally
bun run download:images:unsplash

# Compress oversized public images
node scripts/build/compress-images.mjs

# Prepare chatbot data
bun run prepare-chatbot-data

# Start development
bun run dev
```
