AmmoTrack is a full-stack, self-hosted ammunition price tracking platform inspired by AmmoSeek. It scrapes ammo retailer websites, stores historical prices in a TimescaleDB time-series database, serves a Vue.js dashboard with price charts, and sends Discord alerts when prices hit your threshold.
| Component | Technology |
|---|---|
| Web scraper | crawl4ai + asyncio |
| LLM extraction | Ollama (self-hosted GPU) or OpenRouter (cloud, free tier) |
| Database | PostgreSQL + TimescaleDB |
| Backend API | Django + Django REST Framework |
| Frontend | Vue.js 3 + Tailwind CSS + ApexCharts |
| Discord bot | discord.py (existing PewPewBoyzBot extended) |
| Orchestration | Docker Compose |
cp .env.example .env
# Edit .env — set DISCORD_TOKEN, DB_PASSWORD, DJANGO_SECRET_KEY, API_SECRET_KEYFull local stack with self-hosted DB + GPU Ollama:
docker compose --profile local-db --profile gpu up -dLocal DB + OpenRouter LLM (no GPU required):
# Set LLM_PROVIDER=openrouter and OPENROUTER_API_KEY in .env first
docker compose --profile local-db up -dExternal DB + OpenRouter:
# Set DB_HOST to your external DB in .env, LLM_PROVIDER=openrouter
docker compose up -ddocker compose exec backend python manage.py createsuperuserdocker compose exec ollama ollama pull llama3.2:3b| Service | URL |
|---|---|
| Web dashboard | http://localhost |
| Django admin (direct) | http://localhost:8001/admin |
| crawl4ai dashboard | http://localhost:11235/dashboard |
- Log in as Admin → Sites in the nav
- Click + Add Site, enter the URL and scrape interval
- Leave CSS Schema blank to use LLM extraction (works immediately)
- Click ▶ Trigger Scrape Now to test it
- Once working, inspect the page with DevTools and add a CSS schema for faster, free scraping
| Command | Description |
|---|---|
/ammo prices <caliber> |
Show current cheapest prices |
/ammo track <caliber> [max_cpr] [manufacturer] |
Create a price drop alert |
/ammo alerts |
List your active alerts |
/ammo untrack <id> |
Delete an alert |
PewPewBoyzBot/
├── main.py # Discord bot entrypoint
├── cogs/ # Discord cogs (existing + ammo_alerts.py)
├── utils/ # Existing bot utilities
├── backend/ # Django API
│ ├── apps/ammo/ # Models: Site, Product, Listing, PricePoint
│ ├── apps/alerts/ # Alert model + check endpoint
│ └── apps/accounts/ # User auth (login, user management)
├── scraper/ # Standalone scraper service
│ ├── main.py # Async poll loop
│ ├── pipeline.py # crawl4ai → LLM → DB
│ ├── llm_client.py # Ollama/OpenRouter adapter
│ └── site_configs/ # Example CSS schemas
└── frontend/ # Vue.js dashboard
└── src/
├── views/ # BrowseView, ProductDetail, Analytics, Alerts
└── views/admin/ # Sites, ScrapeLogs, Users