# Core Module Index

## Configuration (`src/core/config/`)
- `config-loader.ts` — Load and validate environment variables
- `database.ts` — PostgreSQL connection pool
- `redis.ts` — Redis client and cache helpers
- `user-context.ts` — User context utilities

## Plugins (`src/core/plugins/`)
- `auth.plugin.ts` — Auth0 JWT via JWKS (@fastify/jwt, get-jwks)
- `error.plugin.ts` — Error handling
- `logging.plugin.ts` — Request logging

## Logging (`src/core/logging/`)
- `logger.ts` — Structured logging (Winston)

## Middleware
- `middleware/user-context.ts` — User ID extraction from JWT

## Storage (`src/core/storage/`)
- `storage.service.ts` — Storage abstraction
- `adapters/filesystem.adapter.ts` — Filesystem storage adapter

