Minimalist, AI-powered fitness app for consistent training. Connects to Strava, surfaces calm generative feedback on workouts, and keeps the UI focused on insight over noise.
Live: aivery-five.vercel.app
- Frontend & Backend: Next.js (App Router)
- Database: MongoDB Atlas
- Authentication & Data Sync: Strava API
- AI Services: Grok (xAI) — configurable via
GROK_MODEL/LLM_MODEL_*env vars - Payments: Stripe
| Folder / File | Purpose |
|---|---|
pages/ |
Traditional Next.js pages and API routes |
app/ |
App Router structure (routes, layouts, metadata) |
components/ |
Reusable UI components |
lib/ |
Core logic (AI insights, API logic, DB access) |
scripts/ |
One-off migration/repair/data scripts |
public/ |
Static assets |
__deprecated__/ |
Archived unused code (for review, not deleted) |
docs/ |
Internal markdown docs for codebase, DB, prompts |
-
docs/codebase-overview.md
Inventory of every file in the repo with usage status and purpose. -
docs/database-schema.md
Schema and structure of MongoDB collections (users, workouts, logs, etc.). -
docs/prompts.md
Overview of prompt formats used for workout summaries, quotes, insights.
git clone https://github.com/cophi-dev/aivery.git
cd aivery
npm install
# Copy and edit environment variables (Grok-only)
cp .env.local.example .env.local 2>/dev/null || true
# Set GROK_API_KEY, MONGODB_URI, Strava credentials, NEXTAUTH_SECRET in .env.local