{"id":28995474,"url":"https://github.com/Snouzy/workout-cool","last_synced_at":"2025-06-25T05:02:52.118Z","repository":{"id":298515729,"uuid":"1000235209","full_name":"Snouzy/workout-cool","owner":"Snouzy","description":"🏋 Modern open-source fitness coaching platform. Create workout plans, track progress, and access a comprehensive exercise database.","archived":false,"fork":false,"pushed_at":"2025-06-18T20:02:06.000Z","size":1497,"stargazers_count":815,"open_issues_count":1,"forks_count":26,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-18T20:35:22.778Z","etag":null,"topics":["coach","exercise","feature-sliced-design","fitness","gym","health","nextjs","open-source","postgresql","prisma","radix-ui","react","shadcn-ui","tailwindcss","training","typescript","webapp","workout"],"latest_commit_sha":null,"homepage":"https://workout.cool","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Snouzy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":["ko-fi.com/workoutcool","buymeacoffee.com/workout_cool"]}},"created_at":"2025-06-11T13:19:26.000Z","updated_at":"2025-06-18T20:34:52.000Z","dependencies_parsed_at":"2025-06-11T14:46:35.061Z","dependency_job_id":"d7d2a0ab-b538-457b-9953-21d9c2359b4b","html_url":"https://github.com/Snouzy/workout-cool","commit_stats":null,"previous_names":["snouzy/workout-cool"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Snouzy/workout-cool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snouzy%2Fworkout-cool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snouzy%2Fworkout-cool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snouzy%2Fworkout-cool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snouzy%2Fworkout-cool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Snouzy","download_url":"https://codeload.github.com/Snouzy/workout-cool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snouzy%2Fworkout-cool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261807929,"owners_count":23212683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coach","exercise","feature-sliced-design","fitness","gym","health","nextjs","open-source","postgresql","prisma","radix-ui","react","shadcn-ui","tailwindcss","training","typescript","webapp","workout"],"created_at":"2025-06-25T05:01:09.047Z","updated_at":"2025-06-25T05:02:52.107Z","avatar_url":"https://github.com/Snouzy.png","language":"TypeScript","funding_links":["ko-fi.com/workoutcool","buymeacoffee.com/workout_cool","https://ko-fi.com/workoutcool","https://buymeacoffee.com/workout_cool"],"categories":["前端开发框架及项目","TypeScript"],"sub_categories":["管理面板"],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"public/logo.png\" alt=\"Workout.cool Logo\" width=\"120\" height=\"120\"\u003e\n\u003ch1\u003eWorkout.cool\u003c/h1\u003e\n\u003ch3\u003e\u003cem\u003eModern fitness coaching platform with comprehensive exercise database\u003c/em\u003e\u003c/h3\u003e\n\u003cp\u003e\n\u003cimg src=\"https://img.shields.io/github/contributors/Snouzy/workout-cool?style=plastic\" alt=\"Contributors\"\u003e\n\u003cimg src=\"https://img.shields.io/github/forks/Snouzy/workout-cool\" alt=\"Forks\"\u003e\n\u003cimg src=\"https://img.shields.io/github/stars/Snouzy/workout-cool\" alt=\"Stars\"\u003e\n\u003cimg src=\"https://img.shields.io/github/issues/Snouzy/workout-cool\" alt=\"Issues\"\u003e\n\u003cimg src=\"https://img.shields.io/github/repo-size/Snouzy/workout-cool\" alt=\"Repository Size\"\u003e\n\u003ca href=\"LICENSE\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg\" alt=\"MIT License\"\u003e\n\u003c/a\u003e\n\n\u003cp\u003e\n    \u003ca href=\"https://discord.gg/NtrsUBuHUB\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Discord-Join%20Community-5865F2?style=for-the-badge\u0026logo=discord\u0026logoColor=white\" alt=\"Discord\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://ko-fi.com/workoutcool\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/Ko--fi-Support%20Project-FF5E5B?style=for-the-badge\u0026logo=ko-fi\u0026logoColor=white\" alt=\"Ko-fi\"\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\n## Table of Contents\n\n- [About](#about)\n- [Project Origin \u0026 Motivation](#-project-origin--motivation)\n- [Quick Start](#quick-start)\n- [Exercise Database Import](#exercise-database-import)\n- [Project Architecture](#project-architecture)\n- [Roadmap](#roadmap)\n- [Contributing](#contributing)\n- [Deployment / Self-hosting](#deployment)\n- [Resources](#resources)\n- [License](#license)\n- [Sponsor This Project](#-sponsor-this-project)\n\n## Contributors\n\n\u003ca href=\"https://github.com/Snouzy/workout-cool/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=Snouzy/workout-cool\u0026nocache=1\" /\u003e\n\u003c/a\u003e\n\n## Sponsors\n\n\u003cdiv\u003e\n  \u003ch4\u003eThey are helping making workout.cool free and open-source for everyone :\u003c/h4\u003e\n\n\u003ca href=\"https://vercel.com/oss\"\u003e\n  \u003cimg alt=\"Vercel OSS Program\" src=\"https://vercel.com/oss/program-badge.svg\" /\u003e\n\u003c/a\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n  \u003ctable\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/lj020326\"\u003e\n          \u003cimg src=\"https://github.com/lj020326.png\" width=\"50px;\" alt=\"lj020326\"/\u003e\n          \u003cbr /\u003e\n          \u003csub\u003e\u003cb\u003elj020326\u003c/b\u003e\u003c/sub\u003e\n          \u003cbr /\u003e\n        \u003c/a\u003e\n      \u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/lucasnevespereira\"\u003e\n          \u003cimg src=\"https://github.com/lucasnevespereira.png\" width=\"50px;\" alt=\"lucasnevespereira\"/\u003e\n          \u003cbr /\u003e\n          \u003csub\u003e\u003cb\u003elucasnevespereira\u003c/b\u003e\u003c/sub\u003e\n          \u003cbr /\u003e\n        \u003c/a\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/table\u003e\n\n\u003c/div\u003e\n\n## About\n\nA comprehensive fitness coaching platform that allows create workout plans for you, track progress, and access a vast exercise database with\ndetailed instructions and video demonstrations.\n\n## 🎯 Project Origin \u0026 Motivation\n\nThis project was born from a personal mission to revive and improve upon a previous fitness platform. As the **primary contributor** to the\noriginal [workout.lol](https://github.com/workout-lol/workout-lol) project, I witnessed its journey and abandonment. 🥹\n\n### The Story Behind **_workout.cool_**\n\n- 🏗️ **Original Contributor**: I was the main contributor to workout.lol\n- 💼 **Business Challenges**: The original project faced major hurdles with exercise video partnerships (no reliable video provider) could\n  be established\n- 💰 **Project Sale**: Due to these partnership issues, the project was sold to another party\n- 📉 **Abandonment**: The new owner quickly realized that **exercise video licensing costs were prohibitively expensive**, began to be sick\n  and abandoned the entire project\n- 🔄 **Revival Attempts**: For the past **9 months**, I've been trying to reconnect with the new stakeholder\n- 📧 **Radio Silence**: Despite multiple (15) attempts, there has been no response\n- 🚀 **New Beginning**: Rather than let this valuable work disappear, I decided to create a fresh, modern implementation\n\n### Why **_workout.cool_** Exists\n\n**Someone had to step up.**\n\nThe opensource fitness community deserves better than broken promises and abandoned platforms.\n\nI'm not building this for profit.\n\nThis isn't just a revival : it's an evolution. **workout.cool** represents everything the original project could have been, with the\nreliability, modern approach, and **maintenance** that the fitness open source community deserves.\n\n## 👥 From the Community, For the Community\n\n**I'm not just a developer : I'm a user who refused to let our community down.**\n\nI experienced firsthand the frustration of watching a beloved tool slowly disappear. Like many of you, I had workouts saved, progress\ntracked, and a routine built around the platform.\n\n### My Mission: Rescue \u0026 Revive.\n\n_If you were part of the original workout.lol community, welcome back! If you're new here, welcome to the future of fitness platform\nmanagement._\n\n## Quick Start\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/) (v18+)\n- [pnpm](https://pnpm.io/) (v8+)\n- [Docker](https://www.docker.com/)\n\n### Installation\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/Snouzy/workout-cool.git\n   cd workout-cool\n   ```\n\n2. **Choose your installation method:**\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e🐳 With Docker\u003c/b\u003e\u003c/summary\u003e\n\n### Docker Installation\n\n1. **Copy environment variables**\n\n   ```bash\n   cp .env.example .env\n   ```\n\n2. **Start everything for development:**\n\n   ```sh\n   make dev\n   ```\n\n   - This will start the database in Docker, run migrations, seed the DB, and start the Next.js dev server.\n   - To stop services run `make down`\n\n3. **Open your browser** Navigate to [http://localhost:3000](http://localhost:3000)\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e💻 Without Docker\u003c/b\u003e\u003c/summary\u003e\n\n### Manual Installation\n\n1. **Install dependencies**\n\n   ```bash\n   pnpm install\n   ```\n\n2. **Copy environment variables**\n\n   ```bash\n   cp .env.example .env\n   ```\n\n3. **Set up PostgreSQL database**\n\n   - If you don't already have it, install PostgreSQL locally\n   - Create a database named `workout_cool` : `createdb -h localhost -p 5432 -U postgres workout_cool`\n\n4. **Run database migrations**\n\n   ```bash\n   npx prisma migrate dev\n   ```\n\n5. **Seed the database (optional)**\n\nSee the - [Exercise database import section](#exercise-database-import)\n\n6. **Start the development server**\n\n   ```bash\n   pnpm dev\n   ```\n\n7. **Open your browser** Navigate to [http://localhost:3000](http://localhost:3000)\n\n\u003c/details\u003e\n\n## Exercise Database Import\n\nThe project includes a comprehensive exercise database. To import a sample of exercises:\n\n### Prerequisites for Import\n\n1. **Prepare your CSV file**\n\nYour CSV should have these columns:\n\n```\nid,name,name_en,description,description_en,full_video_url,full_video_image_url,introduction,introduction_en,slug,slug_en,attribute_name,attribute_value\n```\n\nYou can use the provided example.\n\n### Import Commands\n\n```bash\n# Import exercises from a CSV file\npnpm run import:exercises-full /path/to/your/exercises.csv\n\n# Example with the provided sample data\npnpm run import:exercises-full ./data/sample-exercises.csv\n```\n\n### CSV Format Example\n\n```csv\nid,name,name_en,description,description_en,full_video_url,full_video_image_url,introduction,introduction_en,slug,slug_en,attribute_name,attribute_value\n157,\"Fentes arrières à la barre\",\"Barbell Reverse Lunges\",\"\u003cp\u003eStand upright...\u003c/p\u003e\",\"\u003cp\u003eStand upright...\u003c/p\u003e\",https://youtube.com/...,https://img.youtube.com/...,slug-fr,slug-en,TYPE,STRENGTH\n157,\"Fentes arrières à la barre\",\"Barbell Reverse Lunges\",\"\u003cp\u003eStand upright...\u003c/p\u003e\",\"\u003cp\u003eStand upright...\u003c/p\u003e\",https://youtube.com/...,https://img.youtube.com/...,slug-fr,slug-en,PRIMARY_MUSCLE,QUADRICEPS\n```\n\nWant unlimited exercise for local development ?\n\nJust ask chatGPT with the prompt from `./scripts/import-exercises-with-attributes.prompt.md`\n\n## Project Architecture\n\nThis project follows **Feature-Sliced Design (FSD)** principles with Next.js App Router:\n\n```\nsrc/\n├── app/ # Next.js pages, routes and layouts\n├── processes/ # Business flows (multi-feature)\n├── widgets/ # Composable UI with logic (Sidebar, Header)\n├── features/ # Business units (auth, exercise-management)\n├── entities/ # Domain entities (user, exercise, workout)\n├── shared/ # Shared code (UI, lib, config, types)\n└── styles/ # Global CSS, themes\n```\n\n### Architecture Principles\n\n- **Feature-driven**: Each feature is independent and reusable\n- **Clear domain isolation**: `shared` → `entities` → `features` → `widgets` → `app`\n- **Consistency**: Between business logic, UI, and data layers\n\n### Example Feature Structure\n\n```\nfeatures/\n└── exercise-management/\n├── ui/ # UI components (ExerciseForm, ExerciseCard)\n├── model/ # Hooks, state management (useExercises)\n├── lib/ # Utilities (exercise-helpers)\n└── api/ # Server actions or API calls\n```\n\n## Contributing\n\nWe welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.\n\n### Development Workflow\n\n1. **Create an issue** for the feature/bug you want to work on. Say that you will work on it (or no)\n2. Fork the repository\n3. Create your feature|fix|chore|refactor branch (`git checkout -b feature/amazing-feature`)\n4. Make your changes following our [code standards](#code-style)\n5. Commit your changes (`git commit -m 'feat: add amazing feature'`)\n6. Push to the branch (`git push origin feature/amazing-feature`)\n7. Open a Pull Request (one issue = one PR)\n\n**📋 For complete contribution guidelines, see our [Contributing Guide](CONTRIBUTING.md)**\n\n### Code Style\n\n- Follow TypeScript best practices\n- Use Feature-Sliced Design architecture\n- Write meaningful commit messages\n\n## Deployment / Self-hosting\n\n\u003e 📖 **For detailed self-hosting instructions, see our [Complete Self-hosting Guide](docs/SELF-HOSTING.md)**\n\nTo seed the database with the sample exercises, set the `SEED_SAMPLE_DATA` env variable to `true`.\n\n### Using Docker\n\n```bash\n# Build the Docker image\ndocker build -t yourusername/workout-cool .\n\n# Run the container\ndocker run -p 3000:3000 --env-file .env.production yourusername/workout-cool\n```\n\n### Using Docker Compose\n\n#### DATABASE_URL\n\nUpdate the `host` to point to the `postgres` service instead of `localhost`\n`DATABASE_URL=postgresql://username:password@postgres:5432/workout_cool`\n\n```bash\ndocker compose up -d\n```\n\n### Manual Deployment\n\n```bash\n# Build the application\npnpm build\n\n# Run database migrations\nexport DATABASE_URL=\"your-production-db-url\"\nnpx prisma migrate deploy\n\n# Start the production server\npnpm start\n```\n\n## Resources\n\n- [Feature-Sliced Design](https://feature-sliced.design/)\n- [Next.js Documentation](https://nextjs.org/docs)\n- [Prisma Documentation](https://www.prisma.io/docs/)\n- [Better Auth](https://github.com/better-auth/better-auth)\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n\n## 🤝 Join the Rescue Mission\n\n**This is about rebuilding what we lost, together.**\n\n### How You Can Help\n\n- 🌟 **Star this repo** to show the world our community is alive and thriving\n- 💬 **Join our Discord** to connect with other fitness enthusiasts and developers\n- 🐛 **Report issues** you find. I'm listening to every single one\n- 💡 **Share your feature requests** finally, someone who will actually implement them !\n- 🔄 **Spread the word** to fellow fitness enthusiasts who lost hope\n- 🤝 **Contribute code** if you're a developer : let's build this together\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://discord.gg/NtrsUBuHUB\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Discord-Join%20Our%20Community-5865F2?style=for-the-badge\u0026logo=discord\u0026logoColor=white\" alt=\"Discord\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\u003cbr\u003e\n  \u003ca href=\"https://www.producthunt.com/products/workout-cool?embed=true\u0026utm_source=badge-featured\u0026utm_medium=badge\u0026utm_source=badge-workout\u0026#0045;cool\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=980519\u0026theme=light\u0026t=1750436372984\" alt=\"Product Hunt\" width=\"180\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n## 💖 Sponsor This Project\n\nAppear in the README and on the website as supporter by donating:\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://ko-fi.com/workoutcool\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://ko-fi.com/img/githubbutton_sm.svg\" alt=\"Sponsor on Ko-fi\" /\u003e\n  \u003c/a\u003e\n  \u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003c!-- TODO: setup --\u003e\n  \u003c!-- \u003ca href=\"https://buymeacoffee.com/workout_cool\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\" /\u003e\n  \u003c/a\u003e --\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\" style=\"margin-top:20px;\"\u003e\n  \u003cem\u003eIf you believe in open-source fitness tools and want to help this project thrive,\u003cbr\u003e\n  consider buying me a coffee ☕ or sponsoring the continued development.\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Your support helps cover hosting costs, exercise database updates, and continuous improvement.\u003cbr\u003e\n  Thank you for keeping \u003cstrong\u003eworkout.cool\u003c/strong\u003e alive and evolving 💪\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSnouzy%2Fworkout-cool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSnouzy%2Fworkout-cool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSnouzy%2Fworkout-cool/lists"}