MCPcopy
hub / github.com/Snouzy/workout-cool

github.com/Snouzy/workout-cool @v1.3.2 sqlite

repository ↗ · DeepWiki ↗ · release v1.3.2 ↗
1,193 symbols 3,198 edges 559 files 69 documented · 6%
README

Workout.cool Logo

Workout.cool

Modern fitness coaching platform with comprehensive exercise database

Contributors
Forks
Stars
Issues Repository Size
MIT License

<a href="https://discord.gg/NtrsUBuHUB">
  <img src="https://img.shields.io/badge/Discord-Join%20Community-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Discord">
</a>
<a href="https://ko-fi.com/workoutcool">
  <img src="https://img.shields.io/badge/Ko--fi-Support%20Project-FF5E5B?style=for-the-badge&logo=ko-fi&logoColor=white" alt="Ko-fi">
</a>

Deutsch | Español | français | 日本語 | 한국어 | Português | Русский | 中文

Table of Contents

Contributors

Sponsors

They are helping making workout.cool free and open-source for everyone :

Vercel OSS Program

lj020326 lj020326 lucasnevespereira lucasnevespereira

About

A comprehensive fitness coaching platform that allows create workout plans for you, track progress, and access a vast exercise database with detailed instructions and video demonstrations.

🎯 Project Origin & Motivation

This project was born from a personal mission to revive and improve upon a previous fitness platform. As the primary contributor to the original workout.lol project, I witnessed its journey and abandonment. 🥹

The Story Behind workout.cool

  • 🏗️ Original Contributor: I was the main contributor to workout.lol
  • 💼 Business Challenges: The original project faced major hurdles with exercise video partnerships (no reliable video provider) could be established
  • 💰 Project Sale: Due to these partnership issues, the project was sold to another party
  • 📉 Abandonment: The new owner quickly realized that exercise video licensing costs were prohibitively expensive, began to be sick and abandoned the entire project
  • 🔄 Revival Attempts: For the past 9 months, I've been trying to reconnect with the new stakeholder
  • 📧 Radio Silence: Despite multiple (15) attempts, there has been no response
  • 🚀 New Beginning: Rather than let this valuable work disappear, I decided to create a fresh, modern implementation

Why workout.cool Exists

Someone had to step up.

The opensource fitness community deserves better than broken promises and abandoned platforms.

I'm not building this for profit.

This isn't just a revival : it's an evolution. workout.cool represents everything the original project could have been, with the reliability, modern approach, and maintenance that the fitness open source community deserves.

👥 From the Community, For the Community

I'm not just a developer : I'm a user who refused to let our community down.

I experienced firsthand the frustration of watching a beloved tool slowly disappear. Like many of you, I had workouts saved, progress tracked, and a routine built around the platform.

My Mission: Rescue & Revive.

If you were part of the original workout.lol community, welcome back! If you're new here, welcome to the future of fitness platform management.

Quick Start

Prerequisites

Installation

  1. Clone the repository

bash git clone https://github.com/Snouzy/workout-cool.git cd workout-cool

  1. Choose your installation method:

🐳 With Docker

Docker Installation

  1. Copy environment variables

bash cp .env.example .env

  1. Start everything for development:

sh make dev

  • This will start the database in Docker, run migrations, seed the DB, and start the Next.js dev server.
  • To stop services run make down

  • Open your browser Navigate to http://localhost:3000

💻 Without Docker

Manual Installation

  1. Install dependencies

bash pnpm install

  1. Copy environment variables

bash cp .env.example .env

  1. Set up PostgreSQL database

  2. If you don't already have it, install PostgreSQL locally

  3. Create a database named workout_cool : createdb -h localhost -p 5432 -U postgres workout_cool

  4. Run database migrations

bash npx prisma migrate dev

  1. Seed the database (optional)

See the - Exercise database import section

  1. Start the development server

bash pnpm dev

  1. Open your browser Navigate to http://localhost:3000

Exercise Database Import

The project includes a comprehensive exercise database. To import a sample of exercises:

Prerequisites for Import

  1. Prepare your CSV file

Your CSV should have these columns:

id,name,name_en,description,description_en,full_video_url,full_video_image_url,introduction,introduction_en,slug,slug_en,attribute_name,attribute_value

You can use the provided example.

Import Commands

# Import exercises from a CSV file
pnpm run import:exercises-full /path/to/your/exercises.csv

# Example with the provided sample data
pnpm run import:exercises-full ./data/sample-exercises.csv

CSV Format Example

id,name,name_en,description,description_en,full_video_url,full_video_image_url,introduction,introduction_en,slug,slug_en,attribute_name,attribute_value
157,"Fentes arrières à la barre","Barbell Reverse Lunges","

Stand upright...

","

Stand upright...

",https://youtube.com/...,https://img.youtube.com/...,slug-fr,slug-en,TYPE,STRENGTH
157,"Fentes arrières à la barre","Barbell Reverse Lunges","

Stand upright...

","

Stand upright...

",https://youtube.com/...,https://img.youtube.com/...,slug-fr,slug-en,PRIMARY_MUSCLE,QUADRICEPS

Want unlimited exercise for local development ?

Just ask chatGPT with the prompt from ./scripts/import-exercises-with-attributes.prompt.md

Project Architecture

This project follows Feature-Sliced Design (FSD) principles with Next.js App Router:

src/
├── app/ # Next.js pages, routes and layouts
├── processes/ # Business flows (multi-feature)
├── widgets/ # Composable UI with logic (Sidebar, Header)
├── features/ # Business units (auth, exercise-management)
├── entities/ # Domain entities (user, exercise, workout)
├── shared/ # Shared code (UI, lib, config, types)
└── styles/ # Global CSS, themes

Architecture Principles

  • Feature-driven: Each feature is independent and reusable
  • Clear domain isolation: sharedentitiesfeatureswidgetsapp
  • Consistency: Between business logic, UI, and data layers

Example Feature Structure

features/
└── exercise-management/
├── ui/ # UI components (ExerciseForm, ExerciseCard)
├── model/ # Hooks, state management (useExercises)
├── lib/ # Utilities (exercise-helpers)
└── api/ # Server actions or API calls

Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Workflow

  1. Create an issue for the feature/bug you want to work on. Say that you will work on it (or no)
  2. Fork the repository
  3. Create your feature|fix|chore|refactor branch (git checkout -b feature/amazing-feature)
  4. Make your changes following our code standards
  5. Commit your changes (git commit -m 'feat: add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request (one issue = one PR)

📋 For complete contribution guidelines, see our Contributing Guide

Code Style

  • Follow TypeScript best practices
  • Use Feature-Sliced Design architecture
  • Write meaningful commit messages

Deployment / Self-hosting

📖 For detailed self-hosting instructions, see our Complete Self-hosting Guide

📺 You can also watch a 3-minute video guide on self-hosting Workout.Cool.

To seed the database with the sample exercises, set the SEED_SAMPLE_DATA env variable to true.

Using Docker

# Build the Docker image
docker build -t yourusername/workout-cool .

# Run the container
docker run -p 3000:3000 --env-file .env.production yourusername/workout-cool

Using Docker Compose

DATABASE_URL

Update the host to point to the postgres service instead of localhost DATABASE_URL=postgresql://username:password@postgres:5432/workout_cool

docker compose up -d

Manual Deployment

# Build the application
pnpm build

# Run database migrations
export DATABASE_URL="your-production-db-url"
npx prisma migrate deploy

# Start the production server
pnpm start

Resources

License

This project is licensed under the MIT License. See the LICENSE file for details.

MIT License

🤝 Join the Rescue Mission

This is about rebuilding what we lost, together.

How You Can Help

  • 🌟 Star this repo to show the world our community is alive and thriving
  • 💬 Join our Discord to connect with other fitness enthusiasts and developers
  • 🐛 Report issues you find. I'm listening to every single one
  • 💡 Share your feature requests finally, someone who will actually implement them !
  • 🔄 Spread the word to fellow fitness enthusiasts who lost hope
  • 🤝 Contribute code if you're a developer : let's build this together

Discord

Product Hunt

💖 Sponsor This Project

Appear in the README and on the website as supporter by donating:

Sponsor on Ko-fi    

If you believe in open-source fitness tools and want to help this project thrive,

consider buying me a coffee ☕ or sponsoring the continued development.

Your support helps cover hosting costs, exercise database updates, and continuous improvement.

Thank you for keeping <st

Extension points exported contracts — how you extend this code

SlugData (Interface)
* Utility functions for getting localized slugs
src/shared/lib/locale-slug.ts
RevenueCatWebhookEvent (Interface)
* RevenueCat Webhook Handler * * Processes RevenueCat webhook events for subscription lifecycle management * Follows
app/api/webhooks/revenuecat/route.ts
Session (Interface)
(no doc)
nextauth.d.ts
ResetPasswordEmailProps (Interface)
(no doc)
emails/ResetPasswordEmail.tsx
ContactSupportEmailProps (Interface)
(no doc)
emails/ContactSupportEmail.tsx
VerifyEmailProps (Interface)
(no doc)
emails/VerifyEmail.tsx
BaseEmailLayoutProps (Interface)
(no doc)
emails/utils/BaseEmailLayout.tsx
Navigator (Interface)
(no doc)
src/index.d.ts

Core symbols most depended-on inside this repo

cn
called by 218
src/shared/lib/utils.ts
getMuscleClasses
called by 80
src/features/workout-builder/ui/muscle-selection.tsx
getServerUrl
called by 44
src/shared/lib/server-url.ts
brandedToast
called by 18
src/components/ui/toast.tsx
generateSlug
called by 18
src/shared/lib/slug.ts
getExerciseAttributesValueOf
called by 17
src/entities/exercise/shared/muscles.tsx
getMobileCompatibleSession
called by 16
src/shared/api/mobile-auth.ts
getI18nField
called by 15
src/shared/lib/i18n-mapper.ts

Shape

Function 841
Interface 269
Method 58
Class 24
Enum 1

Languages

TypeScript100%

Modules by API surface

src/features/admin/programs/ui/edit-sets-modal.tsx15 symbols
src/shared/lib/premium/premium.service.ts14 symbols
src/features/workout-builder/ui/workout-stepper.tsx14 symbols
src/components/ui/dialog-stack.tsx14 symbols
src/features/admin/programs/ui/add-exercise-modal.tsx13 symbols
app/[locale]/(app)/tools/bmi-calculator/bmi-calculator.utils.ts13 symbols
src/shared/types/statistics.types.ts12 symbols
src/shared/lib/premium/providers/stripe-provider.ts11 symbols
src/features/release-notes/types/notification.ts11 symbols
src/features/programs/lib/translations-mapper.ts11 symbols
src/shared/lib/revenuecat/revenuecat.config.ts10 symbols
src/features/workout-session/ui/workout-session-set.tsx10 symbols

Dependencies from manifests, versioned

@auth/prisma-adapter2.8.0 · 1×
@better-auth/expo1.2.12 · 1×
@dnd-kit/core6.3.1 · 1×
@dnd-kit/modifiers9.0.0 · 1×
@dnd-kit/sortable10.0.0 · 1×
@dnd-kit/utilities3.2.2 · 1×
@eslint/compat1.2.7 · 1×
@eslint/eslintrc3.3.1 · 1×
@eslint/js9.28.0 · 1×
@hookform/resolvers5.0.1 · 1×
@next/bundle-analyzer15.3.4 · 1×
@next/eslint-plugin-next15.2.4 · 1×

Datastores touched

workout-coolDatabase · 1 repos

For agents

$ claude mcp add workout-cool \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact