{"id":23318556,"url":"https://github.com/ericc-ch/shorts","last_synced_at":"2025-07-09T09:15:33.741Z","repository":{"id":253604962,"uuid":"843995317","full_name":"ericc-ch/shorts","owner":"ericc-ch","description":"Better TikTok/YouTube Shorts content generator","archived":false,"fork":false,"pushed_at":"2025-01-17T02:25:04.000Z","size":1106,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T01:23:08.574Z","etag":null,"topics":["ai","automation","llm","video-generator"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericc-ch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-08-18T03:57:18.000Z","updated_at":"2025-03-02T02:29:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"0509c701-9e95-4ea4-b8bd-ed1591aeea95","html_url":"https://github.com/ericc-ch/shorts","commit_stats":null,"previous_names":["ericc-ch/shorts"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ericc-ch/shorts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericc-ch%2Fshorts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericc-ch%2Fshorts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericc-ch%2Fshorts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericc-ch%2Fshorts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericc-ch","download_url":"https://codeload.github.com/ericc-ch/shorts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericc-ch%2Fshorts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264428789,"owners_count":23606692,"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":["ai","automation","llm","video-generator"],"created_at":"2024-12-20T17:17:25.822Z","updated_at":"2025-07-09T09:15:33.709Z","avatar_url":"https://github.com/ericc-ch.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shorts\n\nShorts is an automatic video generator for TikTok/YouTube Shorts/Instagram. It streamlines the process of creating engaging short-form videos by automating content generation, script writing, and video rendering.\n\n## Features\n\n- **Automated Video Generation**: Convert text content into engaging short-form videos\n- **Multi-Platform Support**: Generate videos optimized for TikTok, YouTube Shorts, and Instagram\n- **AI-Powered Script Generation**: Utilizes Google's Gemini API for creative script writing\n- **High-Quality Text-to-Speech**: Microsoft Edge TTS integration for natural-sounding voiceovers\n- **Microservices Architecture**: Scalable and maintainable system design\n- **Message Queue System**: Efficient task processing with RabbitMQ\n- **Modern UI**: Responsive and intuitive interface built with React and shadcn/ui\n\n## Video Types\n\nCurrently, the app supports two types of video generation:\n\n1. **Crackbot Reaction** (`CRACKBOT_REACTION`)\n   - Creates reaction-style videos with AI commentary\n   - Features background video with synchronized subtitles\n   - Supports custom voice selection\n   - Automatically generates engaging reactions\n\n2. **Crackbot Story** (`CRACKBOT_STORY`)\n   - Generates storytelling-format videos\n   - AI-powered narrative generation\n   - Custom voice narration\n   - Synchronized visual elements\n\n## Architecture\n\nThe project follows a microservices architecture with the following components:\n\n- **Frontend Web** (`/apps/frontend-web`): React-based user interface\n- **Gateway** (`/apps/gateway`): API gateway service handling client requests\n- **Renderer** (`/apps/renderer`): Video rendering service using Remotion\n- **Script Generator** (`/apps/script-gen`): AI-powered content generation service\n\n### Tech Stack\n\n**Frontend:**\n- React with TypeScript\n- shadcn/ui for UI components\n- Modern development tools (ESLint, Prettier)\n\n**Backend:**\n- Bun runtime for high performance\n- Hono as the web framework\n- SQLite for data persistence\n- RabbitMQ for message queuing\n- Docker for containerization\n- Gemini API for AI content generation\n- Microsoft Edge TTS for voice synthesis\n\n## Prerequisites\n\n- Docker and Docker Compose\n- Bun runtime (latest version)\n- Node.js 18+ (for development)\n- Google Cloud API key (for Gemini API)\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/shorts.git\n   cd shorts\n   ```\n\n2. Copy the example environment file and configure your settings:\n   ```bash\n   cp .env.example .env\n   ```\n\n3. Configure the following environment variables in `.env`:\n   - `GOOGLE_API_KEY`: Your Google Cloud API key\n   - Other necessary environment variables (refer to `.env.example`)\n\n4. Install dependencies:\n   ```bash\n   bun install\n   ```\n\n## Development\n\nStart the development server:\n```bash\nbun run dev\n```\n\nThis will start all services in development mode with hot reloading.\n\n## Production Deployment\n\n1. Build the Docker containers:\n   ```bash\n   docker-compose build\n   ```\n\n2. Start the services:\n   ```bash\n   docker-compose up -d\n   ```\n\n## Project Structure\n\n```\nshorts/\n├── apps/\n│   ├── frontend-web/    # React frontend application\n│   ├── gateway/         # API Gateway service\n│   ├── renderer/        # Video rendering service\n│   └── script-gen/      # Script generation service\n├── packages/            # Shared packages and utilities\n├── compose.yaml         # Docker Compose configuration\n└── package.json         # Project configuration and scripts\n```\n\n## Available Scripts\n\n- `bun run dev`: Start development server\n- `bun run format`: Format code with Prettier\n- `bun run lint`: Run ESLint\n- `bun run test`: Run all tests\n- `bun run test:apps`: Run tests for apps\n- `bun run test:packages`: Run tests for shared packages\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## Roadmap\n\n- [ ] Schema synchronization between Frontend and Backend\n- [ ] Additional video template types\n- [ ] Framework upgrades (NestJS, Remix)\n- [ ] Enhanced AI capabilities\n- [ ] Performance optimizations\n\n## Technical Details\n\n### Message Queue System\nRabbitMQ handles asynchronous communication between services:\n- Video rendering requests\n- Script generation tasks\n- Status updates\n\n### Database Schema\nSQLite database stores:\n- User data\n- Video metadata\n- Generation history\n- System configurations\n\n### API Gateway\nThe gateway service:\n- Routes client requests\n- Handles authentication\n- Manages service discovery\n- Implements rate limiting\n\n### Video Rendering\nRemotion handles:\n- Frame-by-frame rendering\n- Audio synchronization\n- Video composition\n- Export in multiple formats\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Docker Containers Not Starting**\n   - Check Docker logs: `docker-compose logs`\n   - Verify environment variables\n   - Ensure ports are not in use\n\n2. **Video Generation Failures**\n   - Check RabbitMQ queue status\n   - Verify Remotion configuration\n   - Check system resources\n\n3. **API Key Issues**\n   - Verify Google Cloud API key is valid\n   - Check API quota limits\n   - Ensure proper environment variable setup\n\n## License\n\nThis project is licensed under the Mozilla Public License Version 2.0 - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericc-ch%2Fshorts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericc-ch%2Fshorts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericc-ch%2Fshorts/lists"}